diff options
| author | Sean Whitton | 2025-10-18 17:30:21 +0100 |
|---|---|---|
| committer | Sean Whitton | 2025-10-18 17:30:21 +0100 |
| commit | 0b4079ddb6027b577b2085017ef7b7f462b437cd (patch) | |
| tree | f683f41ebaaf3fc41829c7f97b5c54b88ee46731 | |
| parent | c66680d0018f07a57e908d3b2971ceefc1b8fbd8 (diff) | |
| download | emacs-0b4079ddb6027b577b2085017ef7b7f462b437cd.tar.gz emacs-0b4079ddb6027b577b2085017ef7b7f462b437cd.zip | |
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)
| -rw-r--r-- | lisp/vc/vc-dispatcher.el | 6 |
1 files 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." | |||
| 469 | (pop-to-buffer (current-buffer)) | 469 | (pop-to-buffer (current-buffer)) |
| 470 | (goto-char (point-min)) | 470 | (goto-char (point-min)) |
| 471 | (shrink-window-if-larger-than-buffer)) | 471 | (shrink-window-if-larger-than-buffer)) |
| 472 | (when noninteractive | 472 | (when-let* (noninteractive |
| 473 | (out (string-trim (buffer-string))) | ||
| 474 | (_ (not (string-empty-p out)))) | ||
| 473 | (with-current-buffer buffer | 475 | (with-current-buffer buffer |
| 474 | (message (string-trim (buffer-string))))) | 476 | (message "%s" out))) |
| 475 | (error "Failed (%s): %s" | 477 | (error "Failed (%s): %s" |
| 476 | (if (integerp status) | 478 | (if (integerp status) |
| 477 | (format "status %d" status) | 479 | (format "status %d" status) |