vc-dir--count-outgoing: Bind enable-local-variables

* lisp/vc/vc-dir.el (vc-dir--count-outgoing): Bind
enable-local-variables (bug#81233).  Do not merge to master.
This commit is contained in:
Sean Whitton 2026-06-25 14:12:48 +01:00
parent e486f2d975
commit e050c74581

View file

@ -1433,7 +1433,13 @@ therefore also disable the fetching."
(defun vc-dir--count-outgoing (backend)
"Call `vc--count-outgoing' with a delayed message and local quits."
(let ((inhibit-quit t))
(let ((inhibit-quit t)
;; Hack for bug#81233 for the Emacs 30 release.
(enable-local-variables
(if (memq enable-local-variables '(:safe :all nil))
enable-local-variables
;; Ignore other values that query.
:safe)))
(prog1
(with-local-quit
(with-delayed-message