aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2009-08-13 00:58:54 +0000
committerRichard M. Stallman2009-08-13 00:58:54 +0000
commit1fc01b083c6e8be87a06e24afcba9a4dc2b6ca09 (patch)
treec2a1e8ec2643fa6a33d6836e99f08badbafbe50b
parent8cdba32b6c064e3812944ca7d36fbd2e70dfeba8 (diff)
downloademacs-1fc01b083c6e8be87a06e24afcba9a4dc2b6ca09.tar.gz
emacs-1fc01b083c6e8be87a06e24afcba9a4dc2b6ca09.zip
* progmodes/compile.el (compilation-goto-locus): Use next-error-move-function.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/compile.el6
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cf1fc8c0aa8..c4268c45cac 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-08-13 Richard Stallman <rms@gnu.org> 12009-08-13 Richard Stallman <rms@gnu.org>
2 2
3 * progmodes/compile.el (compilation-goto-locus):
4 Use next-error-move-function.
5
3 * simple.el (next-error-move-function): New variable. 6 * simple.el (next-error-move-function): New variable.
4 7
52009-08-12 Juri Linkov <juri@jurta.org> 82009-08-12 Juri Linkov <juri@jurta.org>
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 6249f50cc9c..a20f14ced91 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2078,10 +2078,12 @@ and overlay is highlighted between MK and END-MK."
2078 (if (window-dedicated-p (selected-window)) 2078 (if (window-dedicated-p (selected-window))
2079 (pop-to-buffer (marker-buffer mk)) 2079 (pop-to-buffer (marker-buffer mk))
2080 (switch-to-buffer (marker-buffer mk)))) 2080 (switch-to-buffer (marker-buffer mk))))
2081 ;; If narrowing gets in the way of going to the right place, widen.
2082 (unless (eq (goto-char mk) (point)) 2081 (unless (eq (goto-char mk) (point))
2082 ;; If narrowing gets in the way of going to the right place, widen.
2083 (widen) 2083 (widen)
2084 (goto-char mk)) 2084 (if next-error-move-function
2085 (funcall next-error-move-function msg mk)
2086 (goto-char mk)))
2085 (if end-mk 2087 (if end-mk
2086 (push-mark end-mk t) 2088 (push-mark end-mk t)
2087 (if mark-active (setq mark-active))) 2089 (if mark-active (setq mark-active)))