diff lisp/vc.el @ 80398:1a844d29f8e3

(vc-do-command): Don't show internal temp buffers.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 29 Mar 2008 19:37:56 +0000
parents a92a30bae128
children
line wrap: on
line diff
--- a/lisp/vc.el	Sat Mar 29 00:48:57 2008 +0000
+++ b/lisp/vc.el	Sat Mar 29 19:37:56 2008 +0000
@@ -1047,9 +1047,14 @@
 	  (when (and (not (eq t okstatus))
                      (or (not (integerp status))
                          (and okstatus (< okstatus status))))
-	    (pop-to-buffer (current-buffer))
-	    (goto-char (point-min))
-	    (shrink-window-if-larger-than-buffer)
+            ;; Don't show internal temp buffers.  Especially since, together
+            ;; with with-temp-buffer and pop-up-frames, this can result in
+            ;; bugs where with-temp-buffer ends up not preserving
+            ;; current-buffer (because kill-buffer doesn't preserve it).
+            (unless (eq ?\s (aref (buffer-name (current-buffer)) 0))
+              (pop-to-buffer (current-buffer))
+              (goto-char (point-min))
+              (shrink-window-if-larger-than-buffer))
 	    (error "Running %s...FAILED (%s)" command
 		   (if (integerp status) (format "status %d" status) status))))
 	(if vc-command-messages