]> git.eshelyaron.com Git - emacs.git/commitdiff
Add no-byte-compile to the ".dir-locals.el" auto-insert template
authorStefan Kangas <stefankangas@gmail.com>
Sat, 15 Oct 2022 11:07:29 +0000 (13:07 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 15 Oct 2022 11:07:29 +0000 (13:07 +0200)
* lisp/autoinsert.el (auto-insert-alist): Add the no-byte-compile
cookie to the ".dir-locals.el" template.

lisp/autoinsert.el
lisp/files-x.el

index 580f6b3ced2edff2e79668ec4d5f9e91db489ce9..51d939151cedb40e84477655a2be7fa5b6954542 100644 (file)
@@ -168,7 +168,7 @@ If this contains a %s, that will be replaced by the matching rule."
 
     (".dir-locals.el"
      nil
-     ";;; Directory Local Variables\n"
+     ";;; Directory Local Variables         -*- no-byte-compile: t; -*-\n"
      ";;; For more information see (info \"(emacs) Directory Variables\")\n\n"
      "(("
      '(setq v1 (let (modes)
index f6d5d6cc272d354c60305e44941ef93af692e1e4..0131d495f27aff0f5df8ffec2454cda64acac2df 100644 (file)
@@ -489,6 +489,8 @@ from the MODE alist ignoring the input argument VALUE."
                               dir-locals-directory-cache))
 
       ;; Insert modified alist of directory-local variables.
+      ;; When changing this, also update the ".dir-locals.el" file for
+      ;; Emacs itself, as well as the template in autoinsert.el.
       (insert ";;; Directory Local Variables            -*- no-byte-compile: t -*-\n")
       (insert ";;; For more information see (info \"(emacs) Directory Variables\")\n\n")
       (princ (dir-locals-to-string