diff options
author | Richard M. Stallman <rms@gnu.org> | 2009-08-13 00:57:17 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2009-08-13 00:57:17 +0000 |
commit | 8cdba32b6c064e3812944ca7d36fbd2e70dfeba8 (patch) | |
tree | 5d31a8b0f656a6b35cfa2004ac18def6e39f9a70 /lisp/simple.el | |
parent | 99910cf46a463a2f9cd3f960ebd26577a3ad8abe (diff) | |
download | emacs-8cdba32b6c064e3812944ca7d36fbd2e70dfeba8.tar.gz |
(next-error-move-function): New variable.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 9 |
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 |