1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 16:10:46 -08:00

vc-do-command: Don't print a spurious newline

* lisp/vc/vc-dispatcher.el (vc-do-command): Don't print a
spurious newline.  Don't omit the format string with 'message'.
(Bug#79650)
This commit is contained in:
Sean Whitton 2025-10-18 17:30:21 +01:00
parent c66680d001
commit 0b4079ddb6

View file

@ -469,9 +469,11 @@ case, and the process object in the asynchronous case."
(pop-to-buffer (current-buffer))
(goto-char (point-min))
(shrink-window-if-larger-than-buffer))
(when noninteractive
(when-let* (noninteractive
(out (string-trim (buffer-string)))
(_ (not (string-empty-p out))))
(with-current-buffer buffer
(message (string-trim (buffer-string)))))
(message "%s" out)))
(error "Failed (%s): %s"
(if (integerp status)
(format "status %d" status)