From: Eli Zaretskii Date: Sun, 20 Nov 2022 10:10:38 +0000 (+0200) Subject: ; Avoid "Local Variables" popups in Emacs tree X-Git-Tag: emacs-29.0.90~1616^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d46d67bef14cd0b9acb4f6a542e720ac34a0f51d;p=emacs.git ; Avoid "Local Variables" popups in Emacs tree * lisp/vc/vc.el (vc-prepare-patches-separately): Add an autoloaded form for the 'safe-local-variable' property. (Bug#59384) --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 990b03b4c7e..fa3d58f770e 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -3347,6 +3347,8 @@ immediately after this one." (lambda (&rest args) (apply #'vc-user-edit-command (apply old args)))))) +;; This is used in .dir-locals.el in the Emacs source tree. +;;;###autoload (put 'vc-prepare-patches-separately 'safe-local-variable 'booleanp) (defcustom vc-prepare-patches-separately t "Whether `vc-prepare-patch' should generate a separate message for each patch. If nil, `vc-prepare-patch' creates a single email message by attaching