# HG changeset patch # User Richard M. Stallman # Date 1114274119 0 # Node ID 51f159119616446c3695cbd808db988e19cfaf3f # Parent d9c520f08ec6619cdfc60e828ea34603f73209f0 (next-error-highlight-timer): New defvar. (compilation-mode-font-lock-keywords): Specify t for LAXMATCH when matching directories. Save match data around compilation-compat-error-properties form. diff -r d9c520f08ec6 -r 51f159119616 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Sat Apr 23 16:24:59 2005 +0000 +++ b/lisp/progmodes/compile.el Sat Apr 23 16:35:19 2005 +0000 @@ -710,7 +710,7 @@ `(,(car elt) (compilation-directory-properties ,(car elt) ,(cdr elt)) - t)) + t t)) (cdr compilation-directory-matcher))))) ;; Compiler warning/error lines. @@ -733,11 +733,12 @@ ;; allowed `line' to be a function that computed the actual ;; error location. Let's do our best. `(,(car item) - (0 (compilation-compat-error-properties - (funcall ',line (cons (match-string ,file) - (cons default-directory - ',(nthcdr 4 item))) - ,(if col `(match-string ,col))))) + (0 (save-match-data + (compilation-compat-error-properties + (funcall ',line (cons (match-string ,file) + (cons default-directory + ',(nthcdr 4 item))) + ,(if col `(match-string ,col)))))) (,file compilation-error-face t)) (unless (or (null (nth 5 item)) (integerp (nth 5 item))) @@ -1589,6 +1590,8 @@ (point)))) (set-window-point w mk)) +(defvar next-error-highlight-timer) + (defun compilation-goto-locus (msg mk end-mk) "Jump to an error corresponding to MSG at MK. All arguments are markers. If END-MK is non-nil, mark is set there