]> git.eshelyaron.com Git - emacs.git/commit
Better support for nil enable-local-variables in vc-find-revision-no-save
authorJuri Linkov <juri@linkov.net>
Mon, 24 Feb 2025 17:51:13 +0000 (19:51 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Feb 2025 09:35:28 +0000 (10:35 +0100)
commitecd3b7b7cdc83210564b0f47a45eefe60cfbe5e3
tree7cf5716ad38c0f7ae04b4735ffaaa0f31889f97e
parent733ead950317f5a8026a984d0b46c41175643e59
Better support for nil enable-local-variables in vc-find-revision-no-save

* lisp/vc/diff-mode.el (diff-syntax-fontify-props):
* lisp/vc/vc.el (vc-find-revision-no-save):
Use enable-local-variables as is only when it's one of these values:
:safe, :all, or nil.  Otherwise, for all remaining values that query,
use :safe.  Also use non-nil 'find-file' arg of 'normal-mode'.
https://lists.gnu.org/archive/html/emacs-devel/2025-02/msg00897.html

(cherry picked from commit 24e8477aa2f5ef228107707078735ade31e5d1c3)
lisp/vc/diff-mode.el
lisp/vc/vc.el