aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-05-19 23:16:01 +0300
committerJuri Linkov2019-05-19 23:16:01 +0300
commit613565494d048ec758d5051484a17fdeccd42f00 (patch)
tree303be168eeea855a5aed17efa2b97c19741e8cba
parent82db17d0d1231c4aa26e837f37428c44a67663ea (diff)
downloademacs-613565494d048ec758d5051484a17fdeccd42f00.tar.gz
emacs-613565494d048ec758d5051484a17fdeccd42f00.zip
* lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t
in active minibuffer. (Bug#34939)
-rw-r--r--lisp/vc/vc-dispatcher.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index edbb83f3df7..c4b327a3f01 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."
324 (apply 'start-file-process command (current-buffer) 324 (apply 'start-file-process command (current-buffer)
325 command squeezed)))) 325 command squeezed))))
326 (when vc-command-messages 326 (when vc-command-messages
327 (message "Running in background: %s" full-command)) 327 (let ((inhibit-message (eq (selected-window) (active-minibuffer-window))))
328 (message "Running in background: %s" full-command)))
328 ;; Get rid of the default message insertion, in case we don't 329 ;; Get rid of the default message insertion, in case we don't
329 ;; set a sentinel explicitly. 330 ;; set a sentinel explicitly.
330 (set-process-sentinel proc #'ignore) 331 (set-process-sentinel proc #'ignore)
@@ -332,11 +333,13 @@ case, and the process object in the asynchronous case."
332 (setq status proc) 333 (setq status proc)
333 (when vc-command-messages 334 (when vc-command-messages
334 (vc-run-delayed 335 (vc-run-delayed
335 (let ((message-truncate-lines t)) 336 (let ((message-truncate-lines t)
337 (inhibit-message (eq (selected-window) (active-minibuffer-window))))
336 (message "Done in background: %s" full-command))))) 338 (message "Done in background: %s" full-command)))))
337 ;; Run synchronously 339 ;; Run synchronously
338 (when vc-command-messages 340 (when vc-command-messages
339 (message "Running in foreground: %s" full-command)) 341 (let ((inhibit-message (eq (selected-window) (active-minibuffer-window))))
342 (message "Running in foreground: %s" full-command)))
340 (let ((buffer-undo-list t)) 343 (let ((buffer-undo-list t))
341 (setq status (apply 'process-file command nil t nil squeezed))) 344 (setq status (apply 'process-file command nil t nil squeezed)))
342 (when (and (not (eq t okstatus)) 345 (when (and (not (eq t okstatus))
@@ -350,7 +353,8 @@ case, and the process object in the asynchronous case."
350 (if (integerp status) (format "status %d" status) status) 353 (if (integerp status) (format "status %d" status) status)
351 full-command)) 354 full-command))
352 (when vc-command-messages 355 (when vc-command-messages
353 (message "Done (status=%d): %s" status full-command)))) 356 (let ((inhibit-message (eq (selected-window) (active-minibuffer-window))))
357 (message "Done (status=%d): %s" status full-command)))))
354 (vc-run-delayed 358 (vc-run-delayed
355 (run-hook-with-args 'vc-post-command-functions 359 (run-hook-with-args 'vc-post-command-functions
356 command file-or-list flags)) 360 command file-or-list flags))