diff options
| author | Stefan Monnier | 2013-10-07 01:15:48 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-10-07 01:15:48 -0400 |
| commit | 55ca2c0df0b7bdc2c425c17cc74dfc08a9ad236c (patch) | |
| tree | 329355229e2a4d308b2f437707ad676b38bb68d7 | |
| parent | 731fc3aec85564ab026964dd4dee361f786bcfa3 (diff) | |
| download | emacs-55ca2c0df0b7bdc2c425c17cc74dfc08a9ad236c.tar.gz emacs-55ca2c0df0b7bdc2c425c17cc74dfc08a9ad236c.zip | |
* lisp/progmodes/compile.el (compilation-parse-errors):
Use compilation--put-prop.
(compilation--ensure-parse): Check compilation-multiline.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bceb4959171..0d9b4b10d6c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2013-10-07 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2013-10-07 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * progmodes/compile.el (compilation-parse-errors): | ||
| 4 | Use compilation--put-prop. | ||
| 5 | (compilation--ensure-parse): Check compilation-multiline. | ||
| 6 | |||
| 3 | * emacs-lisp/easymenu.el (easy-menu-create-menu): Use closures. | 7 | * emacs-lisp/easymenu.el (easy-menu-create-menu): Use closures. |
| 4 | 8 | ||
| 5 | * emacs-lisp/lisp-mode.el (eval-defun-2): Simplify, using lexical-binding. | 9 | * emacs-lisp/lisp-mode.el (eval-defun-2): Simplify, using lexical-binding. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index e25be05fb09..3b86ddc1567 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1354,9 +1354,7 @@ to `compilation-error-regexp-alist' if RULES is nil." | |||
| 1354 | (eq (car face) 'face) | 1354 | (eq (car face) 'face) |
| 1355 | (or (symbolp (cadr face)) | 1355 | (or (symbolp (cadr face)) |
| 1356 | (stringp (cadr face)))) | 1356 | (stringp (cadr face)))) |
| 1357 | (put-text-property | 1357 | (compilation--put-prop mn 'font-lock-face (cadr face)) |
| 1358 | (match-beginning mn) (match-end mn) | ||
| 1359 | 'font-lock-face (cadr face)) | ||
| 1360 | (add-text-properties | 1358 | (add-text-properties |
| 1361 | (match-beginning mn) (match-end mn) | 1359 | (match-beginning mn) (match-end mn) |
| 1362 | (nthcdr 2 face))) | 1360 | (nthcdr 2 face))) |
| @@ -1394,6 +1392,9 @@ to `compilation-error-regexp-alist' if RULES is nil." | |||
| 1394 | (move-marker compilation--parsed limit) | 1392 | (move-marker compilation--parsed limit) |
| 1395 | (goto-char start) | 1393 | (goto-char start) |
| 1396 | (forward-line 0) ;Not line-beginning-position: ignore (comint) fields. | 1394 | (forward-line 0) ;Not line-beginning-position: ignore (comint) fields. |
| 1395 | (while (and (not (bobp)) | ||
| 1396 | (get-text-property (1- (point)) 'compilation-multiline)) | ||
| 1397 | (forward-line -1)) | ||
| 1397 | (with-silent-modifications | 1398 | (with-silent-modifications |
| 1398 | (compilation--parse-region (point) compilation--parsed))))) | 1399 | (compilation--parse-region (point) compilation--parsed))))) |
| 1399 | nil) | 1400 | nil) |