diff options
| author | Martin Rudalics | 2008-10-04 10:09:46 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-10-04 10:09:46 +0000 |
| commit | e6f3e10423a495db8bd3a33e50f581d46b026452 (patch) | |
| tree | e452297df68909780af5a22994fed22586637f81 | |
| parent | 48e482e6161266672796dea2b3e0c9ed8cf52f50 (diff) | |
| download | emacs-e6f3e10423a495db8bd3a33e50f581d46b026452.tar.gz emacs-e6f3e10423a495db8bd3a33e50f581d46b026452.zip | |
(compilation-start): Make sure to move to point-max
only when we are in the compilation buffer.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 14 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b13f1b48c4c..f110de99cb8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-10-04 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-start): Make sure to move to | ||
| 4 | point-max only when we are in the compilation buffer. (Bug#1073) | ||
| 5 | |||
| 1 | 2008-10-04 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2008-10-04 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * faces.el (x-create-frame-with-faces): Only setup the toolbar if | 8 | * faces.el (x-create-frame-with-faces): Only setup the toolbar if |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 65e8f952b64..79049a49cfb 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1279,11 +1279,15 @@ Returns the compilation buffer created." | |||
| 1279 | (setq compilation-in-progress | 1279 | (setq compilation-in-progress |
| 1280 | (cons proc compilation-in-progress)))) | 1280 | (cons proc compilation-in-progress)))) |
| 1281 | ;; Now finally cd to where the shell started make/grep/... | 1281 | ;; Now finally cd to where the shell started make/grep/... |
| 1282 | (setq default-directory thisdir)) | 1282 | (setq default-directory thisdir) |
| 1283 | (if (buffer-local-value 'compilation-scroll-output outbuf) | 1283 | ;; The following form selected outwin ever since revision 1.183, |
| 1284 | (save-selected-window | 1284 | ;; so possibly messing up point in some other window (bug#1073). |
| 1285 | (select-window outwin) | 1285 | ;; Moved into the scope of with-current-buffer, though still with |
| 1286 | (goto-char (point-max)))) | 1286 | ;; complete disregard for the case when compilation-scroll-output |
| 1287 | ;; equals 'first-error (martin 2008-10-04). | ||
| 1288 | (when compilation-scroll-output | ||
| 1289 | (goto-char (point-max)))) | ||
| 1290 | |||
| 1287 | ;; Make it so the next C-x ` will use this buffer. | 1291 | ;; Make it so the next C-x ` will use this buffer. |
| 1288 | (setq next-error-last-buffer outbuf))) | 1292 | (setq next-error-last-buffer outbuf))) |
| 1289 | 1293 | ||