diff options
| author | André Spiegel | 2000-11-16 16:40:59 +0000 |
|---|---|---|
| committer | André Spiegel | 2000-11-16 16:40:59 +0000 |
| commit | d9ed410081d6c60a5a0fa85e45bcf1c49984723a (patch) | |
| tree | facc4f03b13924193f88db2a77d9e409ab77c1c4 | |
| parent | b5d1e4644adfaeb0499a7d7cde67839315e935dd (diff) | |
| download | emacs-d9ed410081d6c60a5a0fa85e45bcf1c49984723a.tar.gz emacs-d9ed410081d6c60a5a0fa85e45bcf1c49984723a.zip | |
(vc-do-command): In the asynchronous case, output messages only if the
minibuffer is not active.
| -rw-r--r-- | lisp/vc.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index ff18a5cb7ce..ba1478fdf01 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: FSF (see below for full credits) | 5 | ;; Author: FSF (see below for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.286 2000/11/16 13:39:10 spiegel Exp $ | 8 | ;; $Id: vc.el,v 1.287 2000/11/16 15:26:37 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -641,11 +641,13 @@ that is inserted into the command line before the filename." | |||
| 641 | (if (eq okstatus 'async) | 641 | (if (eq okstatus 'async) |
| 642 | (let ((proc (apply 'start-process command (current-buffer) command | 642 | (let ((proc (apply 'start-process command (current-buffer) command |
| 643 | squeezed))) | 643 | squeezed))) |
| 644 | (message "Running %s in the background..." command) | 644 | (unless (active-minibuffer-window) |
| 645 | (message "Running %s in the background..." command)) | ||
| 645 | ;;(set-process-sentinel proc (lambda (p msg) (delete-process p))) | 646 | ;;(set-process-sentinel proc (lambda (p msg) (delete-process p))) |
| 646 | (set-process-filter proc 'vc-process-filter) | 647 | (set-process-filter proc 'vc-process-filter) |
| 647 | (vc-exec-after | 648 | (vc-exec-after |
| 648 | `(message "Running %s in the background... done" ',command))) | 649 | `(unless (active-minibuffer-window) |
| 650 | (message "Running %s in the background... done" ',command)))) | ||
| 649 | (setq status (apply 'call-process command nil t nil squeezed)) | 651 | (setq status (apply 'call-process command nil t nil squeezed)) |
| 650 | (when (or (not (integerp status)) (and okstatus (< okstatus status))) | 652 | (when (or (not (integerp status)) (and okstatus (< okstatus status))) |
| 651 | (pop-to-buffer (current-buffer)) | 653 | (pop-to-buffer (current-buffer)) |