aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/compile.el17
2 files changed, 12 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4d231a84e0c..72b4848f595 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-10-12 Sam Steingold <sds@gnu.org>
2
3 * progmodes/compile.el (compilation-next-error-function): Fix the
4 timestamps if the buffer has been visited before
5
12009-10-12 Glenn Morris <rgm@gnu.org> 62009-10-12 Glenn Morris <rgm@gnu.org>
2 7
3 * net/tramp-smb.el (tramp-smb-do-file-attributes-with-stat): 8 * net/tramp-smb.el (tramp-smb-do-file-attributes-with-stat):
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index a20f14ced91..7b2d21cf310 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1944,16 +1944,13 @@ This is the value of `next-error-function' in Compilation buffers."
1944 ;; (`omake -P' polls filesystem for changes and recompiles when needed 1944 ;; (`omake -P' polls filesystem for changes and recompiles when needed
1945 ;; in the same process and buffer). 1945 ;; in the same process and buffer).
1946 ;; So, recalculate all markers for that file. 1946 ;; So, recalculate all markers for that file.
1947 (unless (and (nth 3 loc) (marker-buffer (nth 3 loc)) 1947 (unless (and (nth 3 loc) (marker-buffer (nth 3 loc)) (nthcdr 4 loc)
1948 ;; There may be no timestamp info if the loc is a `fake-loc'. 1948 ;; There may be no timestamp info if the loc is a `fake-loc',
1949 ;; So we skip the time-check here, although we should maybe 1949 ;; but we just checked that the file has been visited before!
1950 ;; change `compilation-fake-loc' to add timestamp info. 1950 (equal (nth 4 loc)
1951 (or (null (nth 4 loc)) 1951 (setq timestamp
1952 (equal (nth 4 loc) 1952 (with-current-buffer (marker-buffer (nth 3 loc))
1953 (setq timestamp 1953 (visited-file-modtime)))))
1954 (with-current-buffer
1955 (marker-buffer (nth 3 loc))
1956 (visited-file-modtime))))))
1957 (with-current-buffer (compilation-find-file marker (caar (nth 2 loc)) 1954 (with-current-buffer (compilation-find-file marker (caar (nth 2 loc))
1958 (cadr (car (nth 2 loc)))) 1955 (cadr (car (nth 2 loc))))
1959 (save-restriction 1956 (save-restriction