[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6135654: * lisp/vc/vc-dispatcher.el (vc-do-command)
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] master 6135654: * lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t |
Date: |
Sun, 19 May 2019 16:16:08 -0400 (EDT) |
branch: master
commit 613565494d048ec758d5051484a17fdeccd42f00
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>
* lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t
in active minibuffer. (Bug#34939)
---
lisp/vc/vc-dispatcher.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index edbb83f..c4b327a 100644
--- a/lisp/vc/vc-dispatcher.el
+++ b/lisp/vc/vc-dispatcher.el
@@ -324,7 +324,8 @@ case, and the process object in the asynchronous case."
(apply 'start-file-process command (current-buffer)
command squeezed))))
(when vc-command-messages
- (message "Running in background: %s" full-command))
+ (let ((inhibit-message (eq (selected-window)
(active-minibuffer-window))))
+ (message "Running in background: %s" full-command)))
;; Get rid of the default message insertion, in case we don't
;; set a sentinel explicitly.
(set-process-sentinel proc #'ignore)
@@ -332,11 +333,13 @@ case, and the process object in the asynchronous case."
(setq status proc)
(when vc-command-messages
(vc-run-delayed
- (let ((message-truncate-lines t))
+ (let ((message-truncate-lines t)
+ (inhibit-message (eq (selected-window)
(active-minibuffer-window))))
(message "Done in background: %s" full-command)))))
;; Run synchronously
(when vc-command-messages
- (message "Running in foreground: %s" full-command))
+ (let ((inhibit-message (eq (selected-window)
(active-minibuffer-window))))
+ (message "Running in foreground: %s" full-command)))
(let ((buffer-undo-list t))
(setq status (apply 'process-file command nil t nil squeezed)))
(when (and (not (eq t okstatus))
@@ -350,7 +353,8 @@ case, and the process object in the asynchronous case."
(if (integerp status) (format "status %d" status) status)
full-command))
(when vc-command-messages
- (message "Done (status=%d): %s" status full-command))))
+ (let ((inhibit-message (eq (selected-window)
(active-minibuffer-window))))
+ (message "Done (status=%d): %s" status full-command)))))
(vc-run-delayed
(run-hook-with-args 'vc-post-command-functions
command file-or-list flags))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6135654: * lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t,
Juri Linkov <=