From f066d8ff9fb6c9f9a73d6017e5178b47341395ea Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 9 Apr 2025 11:04:26 +0800 Subject: [PATCH] ; vc-setup-buffer: Don't pass a string to buffer-live-p. (cherry picked from commit 2310c12658c4b563f9860cb1196bab0d56c6f94d) --- lisp/vc/vc-dispatcher.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 00aea22d563..1b4831d0bd6 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -177,8 +177,9 @@ Another is that undo information is not kept." (defun vc-setup-buffer (buf) "Prepare BUF for executing a slave command and make it current." (let ((camefrom (current-buffer)) - (olddir default-directory)) - (set-buffer (get-buffer-create buf)) + (olddir default-directory) + (buf (get-buffer-create buf))) + (set-buffer buf) (let ((oldproc (get-buffer-process (current-buffer)))) ;; If we wanted to wait for oldproc to finish before doing ;; something, we'd have used vc-eval-after. -- 2.39.5