Commit bccc6e3d authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(compile-internal): Use save-selected-window.

parent 8e70c858
......@@ -816,10 +816,9 @@ exited abnormally with code %d\n"
(compilation-handle-exit 'bizarre status status))))
(message "Executing `%s'...done" command)))
(if compilation-scroll-output
(let ((currbuf (current-buffer)))
(select-window outwin)
(goto-char (point-max))
(select-window (get-buffer-window currbuf)))))
(goto-char (point-max)))))
;; Make it so the next C-x ` will use this buffer.
(setq compilation-last-buffer outbuf)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment