Mercurial > emacs
comparison lisp/simple.el @ 104246:81a43a652b4b
(next-error-move-function): New variable.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 13 Aug 2009 00:57:17 +0000 |
parents | e9dfa3ace3bb |
children | 23a181f64ba5 |
comparison
equal
deleted
inserted
replaced
104245:bad609d63d3c | 104246:81a43a652b4b |
---|---|
181 RESET is a boolean which, if non-nil, says to go back to the beginning | 181 RESET is a boolean which, if non-nil, says to go back to the beginning |
182 of the errors before moving. | 182 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) |
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) | |
188 | 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 |
192 extra-test-exclusive) | 199 extra-test-exclusive) |