+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
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