aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-04-20 12:04:05 -0400
committerChong Yidong2010-04-20 12:04:05 -0400
commit790c2e44de7d6fcddceab31f1d18b1beb00267f3 (patch)
tree45c3e52602d55dfcbf390692df92102ac44df011
parent808ecc4e18128c336d4fa9fa54409fdc00616370 (diff)
downloademacs-790c2e44de7d6fcddceab31f1d18b1beb00267f3.tar.gz
emacs-790c2e44de7d6fcddceab31f1d18b1beb00267f3.zip
Revert 2009-10-12 change to compilation-next-error-function (Bug#5983).
* progmodes/compile.el (compilation-next-error-function): Revert 2009-10-12 change (Bug#5983).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/compile.el17
2 files changed, 15 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index adbe4f08827..6cf40c75d6c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-04-20 Chong Yidong <cyd@stupidchicken.com>
2
3 * progmodes/compile.el (compilation-next-error-function): Revert
4 2009-10-12 change (Bug#5983).
5
12010-04-20 Dan Nicolaescu <dann@ics.uci.edu> 62010-04-20 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * vc-hg.el (vc-hg-state): Use HGRCPATH, not HGRC. 8 * vc-hg.el (vc-hg-state): Use HGRCPATH, not HGRC.
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 7e013b87c19..6bb31ca5cc4 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1950,13 +1950,16 @@ This is the value of `next-error-function' in Compilation buffers."
1950 ;; (`omake -P' polls filesystem for changes and recompiles when needed 1950 ;; (`omake -P' polls filesystem for changes and recompiles when needed
1951 ;; in the same process and buffer). 1951 ;; in the same process and buffer).
1952 ;; So, recalculate all markers for that file. 1952 ;; So, recalculate all markers for that file.
1953 (unless (and (nth 3 loc) (marker-buffer (nth 3 loc)) (nthcdr 4 loc) 1953 (unless (and (nth 3 loc) (marker-buffer (nth 3 loc))
1954 ;; There may be no timestamp info if the loc is a `fake-loc', 1954 ;; There may be no timestamp info if the loc is a `fake-loc'.
1955 ;; but we just checked that the file has been visited before! 1955 ;; So we skip the time-check here, although we should maybe
1956 (equal (nth 4 loc) 1956 ;; change `compilation-fake-loc' to add timestamp info.
1957 (setq timestamp 1957 (or (null (nth 4 loc))
1958 (with-current-buffer (marker-buffer (nth 3 loc)) 1958 (equal (nth 4 loc)
1959 (visited-file-modtime))))) 1959 (setq timestamp
1960 (with-current-buffer
1961 (marker-buffer (nth 3 loc))
1962 (visited-file-modtime))))))
1960 (with-current-buffer (compilation-find-file marker (caar (nth 2 loc)) 1963 (with-current-buffer (compilation-find-file marker (caar (nth 2 loc))
1961 (cadr (car (nth 2 loc)))) 1964 (cadr (car (nth 2 loc))))
1962 (save-restriction 1965 (save-restriction