Commit 790c2e44 authored by Chong Yidong's avatar Chong Yidong

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).
parent 808ecc4e
2010-04-20 Chong Yidong <cyd@stupidchicken.com>
* progmodes/compile.el (compilation-next-error-function): Revert
2009-10-12 change (Bug#5983).
2010-04-20 Dan Nicolaescu <dann@ics.uci.edu>
* vc-hg.el (vc-hg-state): Use HGRCPATH, not HGRC.
......
......@@ -1950,13 +1950,16 @@ This is the value of `next-error-function' in Compilation buffers."
;; (`omake -P' polls filesystem for changes and recompiles when needed
;; in the same process and buffer).
;; So, recalculate all markers for that file.
(unless (and (nth 3 loc) (marker-buffer (nth 3 loc)) (nthcdr 4 loc)
;; There may be no timestamp info if the loc is a `fake-loc',
;; but we just checked that the file has been visited before!
(equal (nth 4 loc)
(setq timestamp
(with-current-buffer (marker-buffer (nth 3 loc))
(visited-file-modtime)))))
(unless (and (nth 3 loc) (marker-buffer (nth 3 loc))
;; There may be no timestamp info if the loc is a `fake-loc'.
;; So we skip the time-check here, although we should maybe
;; change `compilation-fake-loc' to add timestamp info.
(or (null (nth 4 loc))
(equal (nth 4 loc)
(setq timestamp
(with-current-buffer
(marker-buffer (nth 3 loc))
(visited-file-modtime))))))
(with-current-buffer (compilation-find-file marker (caar (nth 2 loc))
(cadr (car (nth 2 loc))))
(save-restriction
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment