# HG changeset patch # User Richard M. Stallman # Date 1250125037 0 # Node ID 81a43a652b4b8cb7b69618f811c674fcaa2c1a44 # Parent bad609d63d3c30cfc46ee3a233ad71e11bb57cd7 (next-error-move-function): New variable. diff -r bad609d63d3c -r 81a43a652b4b lisp/ChangeLog --- 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 + + * simple.el (next-error-move-function): New variable. + 2009-08-12 Juri Linkov * progmodes/grep.el (lgrep): Ensure that `default-directory' is diff -r bad609d63d3c -r 81a43a652b4b lisp/simple.el --- 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