changeset 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 bad609d63d3c
children 9caaade61f03
files lisp/ChangeLog lisp/simple.el
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Aug 12 20:56:25 2009 +0000
+++ b/lisp/ChangeLog	Thu Aug 13 00:57:17 2009 +0000
@@ -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
--- a/lisp/simple.el	Wed Aug 12 20:56:25 2009 +0000
+++ b/lisp/simple.el	Thu Aug 13 00:57:17 2009 +0000
@@ -183,9 +183,16 @@
 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