]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve documentation of '.dir-locals.el'
authorEli Zaretskii <eliz@gnu.org>
Mon, 27 Jan 2025 13:19:06 +0000 (15:19 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:09:41 +0000 (12:09 +0100)
* doc/lispref/variables.texi (Directory Local Variables):
* doc/emacs/custom.texi (Directory Variables): Document that
'.dir-locals-2.el' must be in the same directory as
'.dir-locals.el'.  (Bug#75890)

(cherry picked from commit 5d021a711a9885100e4ab9d5bb286505a2a16827)

doc/emacs/custom.texi
doc/lispref/variables.texi

index 36aef8c84f635f8812a5b22a347bbda07aab7401..3b1f2c69d0ea156e813f7acf2c918848821569e4 100644 (file)
@@ -1420,10 +1420,11 @@ this search is skipped for remote files.  If needed, the search can be
 extended for remote files by setting the variable
 @code{enable-remote-dir-locals} to @code{t}.
 
-  You can also use @file{.dir-locals-2.el}; if found, Emacs loads it
-in addition to @file{.dir-locals.el}.  This is useful when
-@file{.dir-locals.el} is under version control in a shared repository
-and can't be used for personal customizations.
+  You can also use @file{.dir-locals-2.el}; if found in the same
+directory as @file{.dir-locals.el}, Emacs loads it in addition to
+@file{.dir-locals.el}.  This is useful when @file{.dir-locals.el} is
+under version control in a shared repository and can't be used for
+personal customizations.
 
   The @file{.dir-locals.el} file should hold a specially-constructed
 list, which maps major mode names (symbols) to alists
index a2bb18344776be306eb2037c5d37cf302b730e5a..f44ba777072915e0a0f662ec72ba3beb8b6ed7e2 100644 (file)
@@ -2212,8 +2212,9 @@ If some of the subdirectories have their own @file{.dir-locals.el}
 files, Emacs uses the settings from the deepest file it finds starting
 from the file's directory and moving up the directory tree.  This
 constant is also used to derive the name of a second dir-locals file
-@file{.dir-locals-2.el}.  If this second dir-locals file is present,
-then that is loaded in addition to @file{.dir-locals.el}.  This is useful
+@file{.dir-locals-2.el}.  If this second dir-locals file is present in
+the same directory as @file{.dir-locals.el}, then it will be loaded in
+addition to @file{.dir-locals.el}.  This is useful
 when @file{.dir-locals.el} is under version control in a shared
 repository and cannot be used for personal customizations.  The file
 specifies local variables as a specially formatted list; see