]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent .dir-locals.el from being byte-compiled
authorPhilip Kaludercic <philipk@posteo.net>
Wed, 5 Oct 2022 17:45:27 +0000 (19:45 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Fri, 14 Oct 2022 16:07:53 +0000 (18:07 +0200)
* lisp/files-x.el (modify-dir-local-variable): Add a 'no-byte-compile'
file local variable when generating a .dir-locals.el
file.
* .dir-locals.el:  Add 'no-byte-compile'.  (Bug#58486)

.dir-locals.el
lisp/files-x.el

index 84617a79807d44b74948ed1aca43d0c3f1d1c42d..f7c73031cc8be9f191cfd4d91678811223b6b5f9 100644 (file)
@@ -1,4 +1,4 @@
-;;; Directory Local Variables
+;;; Directory Local Variables         -*- no-byte-compile: t; -*-
 ;;; For more information see (info "(emacs) Directory Variables")
 
 ((nil . ((tab-width . 8)
index da1e44e2504b12c38d3f58df2e0c50c8f23dc97f..f6d5d6cc272d354c60305e44941ef93af692e1e4 100644 (file)
@@ -489,7 +489,7 @@ from the MODE alist ignoring the input argument VALUE."
                               dir-locals-directory-cache))
 
       ;; Insert modified alist of directory-local variables.
-      (insert ";;; Directory Local Variables\n")
+      (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
               (sort variables