diff options
| author | Stefan Monnier | 2011-02-01 11:33:17 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-02-01 11:33:17 -0500 |
| commit | 7d1166478188fe1fe014d3b64c22641c4fac6a25 (patch) | |
| tree | ebd33ca0377bab511c7c580098b0bf600e5f207a | |
| parent | 99c2a4e37a2bfb6a7576f4421d6b22f12a325b51 (diff) | |
| download | emacs-7d1166478188fe1fe014d3b64c22641c4fac6a25.tar.gz emacs-7d1166478188fe1fe014d3b64c22641c4fac6a25.zip | |
* lisp/progmodes/compile.el (compilation-next-error): Check there's
a message before using it.
Fixes: debbugs:7941
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 5 |
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c134e21ea79..d482991e7c4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-next-error): Check there's | ||
| 4 | a message before using it (bug#7941). | ||
| 5 | |||
| 1 | 2011-02-01 Jay Belanger <jay.p.belanger@gmail.com> | 6 | 2011-02-01 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 7 | ||
| 3 | * calc/calc-mtx.el (math-lud-pivot-check): New function. | 8 | * calc/calc-mtx.el (math-lud-pivot-check): New function. |
| @@ -6,8 +11,8 @@ | |||
| 6 | 11 | ||
| 7 | 2011-01-31 Alan Mackenzie <acm@muc.de> | 12 | 2011-01-31 Alan Mackenzie <acm@muc.de> |
| 8 | 13 | ||
| 9 | * progmodes/cc-cmds.el (c-forward-over-illiterals): Continue | 14 | * progmodes/cc-cmds.el (c-forward-over-illiterals): |
| 10 | parsing if we encounter a naked # (Bug#7595). | 15 | Continue parsing if we encounter a naked # (Bug#7595). |
| 11 | (c-beginning-of-statement): Avoid loop in locating the beginning | 16 | (c-beginning-of-statement): Avoid loop in locating the beginning |
| 12 | of a macro. | 17 | of a macro. |
| 13 | 18 | ||
| @@ -34,8 +39,8 @@ | |||
| 34 | 39 | ||
| 35 | 2011-01-31 Kenichi Handa <handa@m17n.org> | 40 | 2011-01-31 Kenichi Handa <handa@m17n.org> |
| 36 | 41 | ||
| 37 | * international/quail.el (quail-keyboard-layout-alist): Remove | 42 | * international/quail.el (quail-keyboard-layout-alist): |
| 38 | superfluous SPC for "pc105-uk" (bug#7927). | 43 | Remove superfluous SPC for "pc105-uk" (bug#7927). |
| 39 | 44 | ||
| 40 | 2011-01-31 Glenn Morris <rgm@gnu.org> | 45 | 2011-01-31 Glenn Morris <rgm@gnu.org> |
| 41 | 46 | ||
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 5dde9ba9a98..df8e044d20a 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -2140,7 +2140,7 @@ looking for the next message." | |||
| 2140 | (or pt (setq pt (point))) | 2140 | (or pt (setq pt (point))) |
| 2141 | (let* ((msg (get-text-property pt 'compilation-message)) | 2141 | (let* ((msg (get-text-property pt 'compilation-message)) |
| 2142 | ;; `loc', `msg', and `last' are used by the compilation-loop macro. | 2142 | ;; `loc', `msg', and `last' are used by the compilation-loop macro. |
| 2143 | (loc (compilation--message->loc msg)) | 2143 | (loc (and msg (compilation--message->loc msg))) |
| 2144 | last) | 2144 | last) |
| 2145 | (if (zerop n) | 2145 | (if (zerop n) |
| 2146 | (unless (or msg ; find message near here | 2146 | (unless (or msg ; find message near here |
| @@ -2154,8 +2154,7 @@ looking for the next message." | |||
| 2154 | (line-end-position))) | 2154 | (line-end-position))) |
| 2155 | (or (setq msg (get-text-property pt 'compilation-message)) | 2155 | (or (setq msg (get-text-property pt 'compilation-message)) |
| 2156 | (setq pt (point))))) | 2156 | (setq pt (point))))) |
| 2157 | (setq last (compilation--loc->file-struct | 2157 | (setq last (compilation--loc->file-struct loc)) |
| 2158 | (compilation--message->loc msg))) | ||
| 2159 | (if (>= n 0) | 2158 | (if (>= n 0) |
| 2160 | (compilation-loop > compilation-next-single-property-change 1- | 2159 | (compilation-loop > compilation-next-single-property-change 1- |
| 2161 | (if (get-buffer-process (current-buffer)) | 2160 | (if (get-buffer-process (current-buffer)) |