(next-error-move-function): New variable.
This commit is contained in:
parent
99910cf46a
commit
8cdba32b6c
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-08-13 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* simple.el (next-error-move-function): New variable.
|
||||
|
||||
2009-08-12 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* progmodes/grep.el (lgrep): Ensure that `default-directory' is
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue