summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2009-08-13 00:57:17 +0000
committerRichard M. Stallman <rms@gnu.org>2009-08-13 00:57:17 +0000
commit8cdba32b6c064e3812944ca7d36fbd2e70dfeba8 (patch)
tree5d31a8b0f656a6b35cfa2004ac18def6e39f9a70 /lisp/simple.el
parent99910cf46a463a2f9cd3f960ebd26577a3ad8abe (diff)
downloademacs-8cdba32b6c064e3812944ca7d36fbd2e70dfeba8.tar.gz
(next-error-move-function): New variable.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el9
1 files changed, 8 insertions, 1 deletions
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.
Major modes providing compile-like functionality should set this variable
to indicate to `next-error' that this is a candidate buffer and how
to navigate in it.")
-
(make-variable-buffer-local 'next-error-function)
+(defvar next-error-move-function nil
+ "Function to use to move to an error locus.
+It takes two arguments, a buffer position in the error buffer
+and a buffer position in the error locus buffer.
+The buffer for the error locus should already be current.
+nil means use goto-char using the second argument position.")
+(make-variable-buffer-local 'next-error-move-function)
+
(defsubst next-error-buffer-p (buffer
&optional avoid-current
extra-test-inclusive