aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKaushal Modi2017-11-28 19:17:48 +0200
committerEli Zaretskii2017-11-28 19:17:48 +0200
commit0540df10e63ba624a775cfe1bba4124456591cf5 (patch)
tree9a016173e21ae7ed1100ee260cffe3e4814b96e7 /doc
parentf2441ab3204274cba16f5cab19e98db61d468fb7 (diff)
downloademacs-0540df10e63ba624a775cfe1bba4124456591cf5.tar.gz
emacs-0540df10e63ba624a775cfe1bba4124456591cf5.zip
Update documentation of '.dir-locals-2.el'
See https://lists.gnu.org/r/emacs-devel/2017-11/msg00649.html for more details. * lisp/files.el (dir-locals-file-2): Remove unused constant. * lisp/files.el (dir-locals-file): Mention ".dir-locals-2.el" in the doc string. * doc/lispref/variables.texi (Directory Local Variables): Mention ".dir-locals-2.el". * etc/NEWS: Replace `dir-locals-file-2' mention with `dir-locals-file'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/variables.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index a871352b004..5bee0f9d82a 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -1919,7 +1919,12 @@ settings to any file in that directory or any of its subdirectories
1919(optionally, you can exclude subdirectories; see below). 1919(optionally, you can exclude subdirectories; see below).
1920If some of the subdirectories have their own @file{.dir-locals.el} 1920If some of the subdirectories have their own @file{.dir-locals.el}
1921files, Emacs uses the settings from the deepest file it finds starting 1921files, Emacs uses the settings from the deepest file it finds starting
1922from the file's directory and moving up the directory tree. The file 1922from the file's directory and moving up the directory tree. This
1923constant is also used to derive the name of a second dir-locals file
1924@file{.dir-locals-2.el}. If this second dir-locals file is present,
1925then that is loaded instead of @file{.dir-locals.el}. This is useful
1926when @file{.dir-locals.el} is under version control in a shared
1927repository and cannot be used for personal customizations. The file
1923specifies local variables as a specially formatted list; see 1928specifies local variables as a specially formatted list; see
1924@ref{Directory Variables, , Per-directory Local Variables, emacs, The 1929@ref{Directory Variables, , Per-directory Local Variables, emacs, The
1925GNU Emacs Manual}, for more details. 1930GNU Emacs Manual}, for more details.