From bcc110a10f6c42f2f45187870db8880fd087bd5c Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 8 Mar 2025 17:09:30 +0800 Subject: [PATCH] vc-log-internal-common: Kill all local variables * lisp/vc/vc.el (vc-log-internal-common): Kill all local variables, even permanent-local ones (bug#44698). (cherry picked from commit a546225e1a86f16188897edef899a48f3c78e136) --- lisp/vc/vc.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index a2bd24a2042..7479702df7e 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -2988,6 +2988,9 @@ Each function runs in the log output buffer without args.") rev-buff-func) (let (retval (buffer (get-buffer-create buffer-name))) (with-current-buffer buffer + ;; Ensure we drop any directory-local variables from the last + ;; directory from which a log buffer was generated (bug#44698). + (kill-all-local-variables 'kill-permanent) (setq-local vc-log-view-type type)) (setq retval (funcall backend-func backend buffer-name type files)) (with-current-buffer buffer -- 2.39.5