aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/compile.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 216efddb0a9..2e51b100684 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -816,10 +816,9 @@ exited abnormally with code %d\n"
816 (compilation-handle-exit 'bizarre status status)))) 816 (compilation-handle-exit 'bizarre status status))))
817 (message "Executing `%s'...done" command))) 817 (message "Executing `%s'...done" command)))
818 (if compilation-scroll-output 818 (if compilation-scroll-output
819 (let ((currbuf (current-buffer))) 819 (save-selected-window
820 (select-window outwin) 820 (select-window outwin)
821 (goto-char (point-max)) 821 (goto-char (point-max)))))
822 (select-window (get-buffer-window currbuf)))))
823 ;; Make it so the next C-x ` will use this buffer. 822 ;; Make it so the next C-x ` will use this buffer.
824 (setq compilation-last-buffer outbuf))) 823 (setq compilation-last-buffer outbuf)))
825 824