diff options
| -rw-r--r-- | lisp/progmodes/compile.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 2ec9edae9e9..a9544f2585f 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -853,9 +853,10 @@ The current buffer should be the desired compilation output buffer." | |||
| 853 | (while | 853 | (while |
| 854 | (if (null next-error) | 854 | (if (null next-error) |
| 855 | (progn | 855 | (progn |
| 856 | (if move (if (> move 0) | 856 | (and move (/= move 1) |
| 857 | (error "Moved past last error") | 857 | (error (if (> move 0) |
| 858 | (error "Moved back past first error"))) | 858 | "Moved past last error") |
| 859 | "Moved back past first error")) | ||
| 859 | (compilation-forget-errors) | 860 | (compilation-forget-errors) |
| 860 | (error (concat compilation-error-message | 861 | (error (concat compilation-error-message |
| 861 | (and (get-buffer-process (current-buffer)) | 862 | (and (get-buffer-process (current-buffer)) |