Prevent .dir-locals.el from being byte-compiled

* 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)
This commit is contained in:
Philip Kaludercic 2022-10-05 19:45:27 +02:00
parent db69681759
commit 6539eb0588
No known key found for this signature in database
GPG key ID: F2C3CC513DB89F66
2 changed files with 2 additions and 2 deletions

View 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)

View 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