diff options
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. | |||
| 183 | Major modes providing compile-like functionality should set this variable | 183 | Major modes providing compile-like functionality should set this variable |
| 184 | to indicate to `next-error' that this is a candidate buffer and how | 184 | to indicate to `next-error' that this is a candidate buffer and how |
| 185 | to navigate in it.") | 185 | to 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. | ||
| 190 | It takes two arguments, a buffer position in the error buffer | ||
| 191 | and a buffer position in the error locus buffer. | ||
| 192 | The buffer for the error locus should already be current. | ||
| 193 | nil 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 |