From: Philip Kaludercic Date: Mon, 12 Feb 2024 16:37:16 +0000 (+0100) Subject: Allow using 'vc-prepare-patch' in non-VC buffers X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=00a22ccdf6dcadbdf45879d88a8554f36972d95e;p=emacs.git Allow using 'vc-prepare-patch' in non-VC buffers * lisp/vc/vc.el (vc-prepare-patch): Remove 'vc-ensure-vc-buffer', as it is not necessary to verify this for the command to work. (cherry picked from commit 6aeeae68885e09a7253a0076d0f81cc46b37f20d) --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index f612daaa569..ca6efeabac2 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -3639,7 +3639,6 @@ marked revisions, use those." (read-string "Subject: " "[PATCH] " nil nil t)) revs))) (save-current-buffer - (vc-ensure-vc-buffer) (let ((patches (mapcar (lambda (rev) (vc-call-backend (vc-responsible-backend default-directory)