emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6539eb0588 07/10: Prevent .dir-locals.el from being byte-compiled


From: Philip Kaludercic
Subject: master 6539eb0588 07/10: Prevent .dir-locals.el from being byte-compiled
Date: Fri, 14 Oct 2022 12:30:37 -0400 (EDT)

branch: master
commit 6539eb05889c783d782f114d9c072208d3080561
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    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)
---
 .dir-locals.el  | 2 +-
 lisp/files-x.el | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.dir-locals.el b/.dir-locals.el
index 84617a7980..f7c73031cc 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -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)
diff --git a/lisp/files-x.el b/lisp/files-x.el
index da1e44e250..f6d5d6cc27 100644
--- a/lisp/files-x.el
+++ b/lisp/files-x.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]