aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-07-30 17:38:24 +0000
committerStefan Monnier2007-07-30 17:38:24 +0000
commitb956d64f8087f9ef4a72718d918f87fe59609694 (patch)
treecb21dc44937a554cc7c709887fe21dccb617cbc7
parent05b6a3f3c05b3d8589a67926f19bfda8d03b71bd (diff)
downloademacs-b956d64f8087f9ef4a72718d918f87fe59609694.tar.gz
emacs-b956d64f8087f9ef4a72718d918f87fe59609694.zip
(compilation-forget-errors): Reset compilation-auto-jump-to-next.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/compile.el11
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d23489d3956..8ef17eb7f71 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-07-30 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/compile.el (compilation-forget-errors):
4 Reset compilation-auto-jump-to-next.
5
12007-07-30 Michael Olson <mwolson@gnu.org> 62007-07-30 Michael Olson <mwolson@gnu.org>
2 7
3 * cus-edit.el (custom-group-save): Fix void function definition 8 * cus-edit.el (custom-group-save): Fix void function definition
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index ceb9a7b924d..2710066c2cd 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2050,9 +2050,9 @@ The file-structure looks like this:
2050 ;; compilation-error-list) to point-min, but that was only meaningful for 2050 ;; compilation-error-list) to point-min, but that was only meaningful for
2051 ;; the internal uses of compilation-forget-errors: all calls from external 2051 ;; the internal uses of compilation-forget-errors: all calls from external
2052 ;; packages seem to be followed by a move of compilation-parsing-end to 2052 ;; packages seem to be followed by a move of compilation-parsing-end to
2053 ;; something equivalent to point-max. So we speculatively move 2053 ;; something equivalent to point-max. So we heuristically move
2054 ;; compilation-current-error to point-max (since the external package 2054 ;; compilation-current-error to point-max (since the external package
2055 ;; won't know that it should do it). --stef 2055 ;; won't know that it should do it). --Stef
2056 (setq compilation-current-error nil) 2056 (setq compilation-current-error nil)
2057 (let* ((proc (get-buffer-process (current-buffer))) 2057 (let* ((proc (get-buffer-process (current-buffer)))
2058 (mark (if proc (process-mark proc))) 2058 (mark (if proc (process-mark proc)))
@@ -2063,7 +2063,12 @@ The file-structure looks like this:
2063 ;; we need to put ours just before the insertion point rather 2063 ;; we need to put ours just before the insertion point rather
2064 ;; than at the insertion point. If that's not possible, then 2064 ;; than at the insertion point. If that's not possible, then
2065 ;; don't use a marker. --Stef 2065 ;; don't use a marker. --Stef
2066 (if (> pos (point-min)) (copy-marker (1- pos)) pos)))) 2066 (if (> pos (point-min)) (copy-marker (1- pos)) pos)))
2067 ;; Again, since this command is used in buffers that contain several
2068 ;; compilations, to set the beginning of "this compilation", it's a good
2069 ;; place to reset compilation-auto-jump-to-next.
2070 (set (make-local-variable 'compilation-auto-jump-to-next)
2071 compilation-auto-jump-to-first-error))
2067 2072
2068;;;###autoload 2073;;;###autoload
2069(add-to-list 'auto-mode-alist '("\\.gcov\\'" . compilation-mode)) 2074(add-to-list 'auto-mode-alist '("\\.gcov\\'" . compilation-mode))