From 0b4079ddb6027b577b2085017ef7b7f462b437cd Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 18 Oct 2025 17:30:21 +0100 Subject: [PATCH] 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) --- lisp/vc/vc-dispatcher.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 78173786705..54154190dad 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -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)