diff options
| author | Richard M. Stallman | 2009-08-13 00:57:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2009-08-13 00:57:17 +0000 |
| commit | 8cdba32b6c064e3812944ca7d36fbd2e70dfeba8 (patch) | |
| tree | 5d31a8b0f656a6b35cfa2004ac18def6e39f9a70 | |
| parent | 99910cf46a463a2f9cd3f960ebd26577a3ad8abe (diff) | |
| download | emacs-8cdba32b6c064e3812944ca7d36fbd2e70dfeba8.tar.gz emacs-8cdba32b6c064e3812944ca7d36fbd2e70dfeba8.zip | |
(next-error-move-function): New variable.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
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 @@ | |||
| 1 | 2009-08-13 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * simple.el (next-error-move-function): New variable. | ||
| 4 | |||
| 1 | 2009-08-12 Juri Linkov <juri@jurta.org> | 5 | 2009-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. | |||
| 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 |