Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
80397:9f51ca9e6082 | 80398:1a844d29f8e3 |
---|---|
1045 (let ((buffer-undo-list t)) | 1045 (let ((buffer-undo-list t)) |
1046 (setq status (apply 'process-file command nil t nil squeezed))) | 1046 (setq status (apply 'process-file command nil t nil squeezed))) |
1047 (when (and (not (eq t okstatus)) | 1047 (when (and (not (eq t okstatus)) |
1048 (or (not (integerp status)) | 1048 (or (not (integerp status)) |
1049 (and okstatus (< okstatus status)))) | 1049 (and okstatus (< okstatus status)))) |
1050 (pop-to-buffer (current-buffer)) | 1050 ;; Don't show internal temp buffers. Especially since, together |
1051 (goto-char (point-min)) | 1051 ;; with with-temp-buffer and pop-up-frames, this can result in |
1052 (shrink-window-if-larger-than-buffer) | 1052 ;; bugs where with-temp-buffer ends up not preserving |
1053 ;; current-buffer (because kill-buffer doesn't preserve it). | |
1054 (unless (eq ?\s (aref (buffer-name (current-buffer)) 0)) | |
1055 (pop-to-buffer (current-buffer)) | |
1056 (goto-char (point-min)) | |
1057 (shrink-window-if-larger-than-buffer)) | |
1053 (error "Running %s...FAILED (%s)" command | 1058 (error "Running %s...FAILED (%s)" command |
1054 (if (integerp status) (format "status %d" status) status)))) | 1059 (if (integerp status) (format "status %d" status) status)))) |
1055 (if vc-command-messages | 1060 (if vc-command-messages |
1056 (message "Running %s...OK" command))) | 1061 (message "Running %s...OK" command))) |
1057 (vc-exec-after | 1062 (vc-exec-after |