*** progmodes/compile.el.~1.476.~ 2008-06-13 18:22:16.000000000 +0200 --- progmodes/compile.el 2008-10-03 14:31:45.718750000 +0200 *************** *** 1280,1289 **** (cons proc compilation-in-progress)))) ;; Now finally cd to where the shell started make/grep/... (setq default-directory thisdir)) ! (if (buffer-local-value 'compilation-scroll-output outbuf) ! (save-selected-window ! (select-window outwin) ! (goto-char (point-max)))) ;; Make it so the next C-x ` will use this buffer. (setq next-error-last-buffer outbuf))) --- 1280,1290 ---- (cons proc compilation-in-progress)))) ;; Now finally cd to where the shell started make/grep/... (setq default-directory thisdir)) ! ! (with-current-buffer (window-buffer outwin) ! (when (local-variable-p 'compilation-scroll-output) ! (goto-char (point-max)))) ! ;; Make it so the next C-x ` will use this buffer. (setq next-error-last-buffer outbuf)))