aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el9
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2084098d0c8..cf1fc8c0aa8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-08-13 Richard Stallman <rms@gnu.org>
2
3 * simple.el (next-error-move-function): New variable.
4
12009-08-12 Juri Linkov <juri@jurta.org> 52009-08-12 Juri Linkov <juri@jurta.org>
2 6
3 * progmodes/grep.el (lgrep): Ensure that `default-directory' is 7 * progmodes/grep.el (lgrep): Ensure that `default-directory' is
diff --git a/lisp/simple.el b/lisp/simple.el
index ad8e71fc6b5..a01073c5d70 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -183,9 +183,16 @@ of the errors before moving.
183Major modes providing compile-like functionality should set this variable 183Major modes providing compile-like functionality should set this variable
184to indicate to `next-error' that this is a candidate buffer and how 184to indicate to `next-error' that this is a candidate buffer and how
185to navigate in it.") 185to navigate in it.")
186
187(make-variable-buffer-local 'next-error-function) 186(make-variable-buffer-local 'next-error-function)
188 187
188(defvar next-error-move-function nil
189 "Function to use to move to an error locus.
190It takes two arguments, a buffer position in the error buffer
191and a buffer position in the error locus buffer.
192The buffer for the error locus should already be current.
193nil means use goto-char using the second argument position.")
194(make-variable-buffer-local 'next-error-move-function)
195
189(defsubst next-error-buffer-p (buffer 196(defsubst next-error-buffer-p (buffer
190 &optional avoid-current 197 &optional avoid-current
191 extra-test-inclusive 198 extra-test-inclusive