]> git.eshelyaron.com Git - emacs.git/commitdiff
vc-log-internal-common: Kill all local variables
authorSean Whitton <spwhitton@spwhitton.name>
Sat, 8 Mar 2025 09:09:30 +0000 (17:09 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 10:28:19 +0000 (11:28 +0100)
* 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

index a2bd24a20427a64b324f83667990e6cd5ac87f98..7479702df7ed572855b89b69c5d712c9e2043fb7 100644 (file)
@@ -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