]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-start): Always set compilation-last-buffer and return it.
authorKim F. Storm <storm@cua.dk>
Fri, 19 Mar 2004 00:21:43 +0000 (00:21 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 19 Mar 2004 00:21:43 +0000 (00:21 +0000)
lisp/progmodes/compile.el

index 8b820d074721f860631d680ae15dc268d8e8a7af..34611d3aa37b5d3114650053b8b4a048d93536ab 100644 (file)
@@ -927,9 +927,9 @@ exited abnormally with code %d\n"
     (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 compilation-last-buffer outbuf))))
+         (goto-char (point-max))))
+    ;; Make it so the next C-x ` will use this buffer.
+    (setq compilation-last-buffer outbuf)))
 
 (defun compilation-set-window-height (window)
   "Set the height of WINDOW according to `compilation-window-height'."