diff options
| author | Roland McGrath | 1994-04-25 22:31:41 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-04-25 22:31:41 +0000 |
| commit | 5d1fa1a04e52737ede05caa9acb2e463987e2a7f (patch) | |
| tree | 228c4386864eed340128c0673690b7801dd48095 | |
| parent | f5e09c8b1b15167937acff84e6294d51ffce12c3 (diff) | |
| download | emacs-5d1fa1a04e52737ede05caa9acb2e463987e2a7f.tar.gz emacs-5d1fa1a04e52737ede05caa9acb2e463987e2a7f.zip | |
(compilation-next-error-locus): Use compilation-error-message instead of
"Moved past last error" when MOVE is 1 (default value).
| -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)) |