@@ -324,19 +324,22 @@ case, and the process object in the asynchronous case."
324
324
(apply 'start-file-process command (current-buffer )
325
325
command squeezed))))
326
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
329
; ; Get rid of the default message insertion, in case we don't
329
330
; ; set a sentinel explicitly.
330
331
(set-process-sentinel proc #'ignore )
331
332
(set-process-filter proc 'vc-process-filter )
332
333
(setq status proc)
333
334
(when vc-command-messages
334
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
338
(message " Done in background: %s " full-command)))))
337
339
; ; Run synchronously
338
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
343
(let ((buffer-undo-list t ))
341
344
(setq status (apply 'process-file command nil t nil squeezed)))
342
345
(when (and (not (eq t okstatus))
@@ -350,7 +353,8 @@ case, and the process object in the asynchronous case."
350
353
(if (integerp status) (format " status %d " status) status)
351
354
full-command))
352
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
358
(vc-run-delayed
355
359
(run-hook-with-args 'vc-post-command-functions
356
360
command file-or-list flags))
0 commit comments