]> git.eshelyaron.com Git - emacs.git/commitdiff
(next-error-move-function): New variable.
authorRichard M. Stallman <rms@gnu.org>
Thu, 13 Aug 2009 00:57:17 +0000 (00:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 13 Aug 2009 00:57:17 +0000 (00:57 +0000)
lisp/ChangeLog
lisp/simple.el

index 2084098d0c89b0b7743c5ab8d1e38aadc5b0feba..cf1fc8c0aa8acf936e9d66a7da7f4ce7c8733215 100644 (file)
@@ -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
index ad8e71fc6b51c0abbe30faebd62290bafb5beda5..a01073c5d70d7c67c4714d8c871b1a58388e4c19 100644 (file)
@@ -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