diff options
| author | Richard M. Stallman | 2005-04-23 16:35:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-23 16:35:19 +0000 |
| commit | 0ea50e431bdff36f89a5821ac49513a5accf65a1 (patch) | |
| tree | 0a1267899536e81a8607f707c6c93c396a306687 | |
| parent | 31c8450e3d6e9003cfd73f78d80cf527c0e05a8a (diff) | |
| download | emacs-0ea50e431bdff36f89a5821ac49513a5accf65a1.tar.gz emacs-0ea50e431bdff36f89a5821ac49513a5accf65a1.zip | |
(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.
| -rw-r--r-- | lisp/progmodes/compile.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 129a01f5498..0cc70386be8 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -710,7 +710,7 @@ FILE should be (ABSOLUTE-FILENAME) or (RELATIVE-FILENAME . DIRNAME) or nil." | |||
| 710 | `(,(car elt) | 710 | `(,(car elt) |
| 711 | (compilation-directory-properties | 711 | (compilation-directory-properties |
| 712 | ,(car elt) ,(cdr elt)) | 712 | ,(car elt) ,(cdr elt)) |
| 713 | t)) | 713 | t t)) |
| 714 | (cdr compilation-directory-matcher))))) | 714 | (cdr compilation-directory-matcher))))) |
| 715 | 715 | ||
| 716 | ;; Compiler warning/error lines. | 716 | ;; Compiler warning/error lines. |
| @@ -733,11 +733,12 @@ FILE should be (ABSOLUTE-FILENAME) or (RELATIVE-FILENAME . DIRNAME) or nil." | |||
| 733 | ;; allowed `line' to be a function that computed the actual | 733 | ;; allowed `line' to be a function that computed the actual |
| 734 | ;; error location. Let's do our best. | 734 | ;; error location. Let's do our best. |
| 735 | `(,(car item) | 735 | `(,(car item) |
| 736 | (0 (compilation-compat-error-properties | 736 | (0 (save-match-data |
| 737 | (funcall ',line (cons (match-string ,file) | 737 | (compilation-compat-error-properties |
| 738 | (cons default-directory | 738 | (funcall ',line (cons (match-string ,file) |
| 739 | ',(nthcdr 4 item))) | 739 | (cons default-directory |
| 740 | ,(if col `(match-string ,col))))) | 740 | ',(nthcdr 4 item))) |
| 741 | ,(if col `(match-string ,col)))))) | ||
| 741 | (,file compilation-error-face t)) | 742 | (,file compilation-error-face t)) |
| 742 | 743 | ||
| 743 | (unless (or (null (nth 5 item)) (integerp (nth 5 item))) | 744 | (unless (or (null (nth 5 item)) (integerp (nth 5 item))) |
| @@ -1589,6 +1590,8 @@ If nil, don't scroll the compilation output window." | |||
| 1589 | (point)))) | 1590 | (point)))) |
| 1590 | (set-window-point w mk)) | 1591 | (set-window-point w mk)) |
| 1591 | 1592 | ||
| 1593 | (defvar next-error-highlight-timer) | ||
| 1594 | |||
| 1592 | (defun compilation-goto-locus (msg mk end-mk) | 1595 | (defun compilation-goto-locus (msg mk end-mk) |
| 1593 | "Jump to an error corresponding to MSG at MK. | 1596 | "Jump to an error corresponding to MSG at MK. |
| 1594 | All arguments are markers. If END-MK is non-nil, mark is set there | 1597 | All arguments are markers. If END-MK is non-nil, mark is set there |