=== modified file 'doc/lispref/loading.texi' --- old/doc/lispref/loading.texi 2014-01-01 07:43:34 +0000 +++ new/doc/lispref/loading.texi 2014-03-04 22:12:52 +0000 @@ -411,12 +411,35 @@ directory. Such a situation might indicate a problem in the way Emacs was installed. +Files named @file{.dir-locals.el} are not reported by this command. +These files specify directory local variables, see @ref{Directory +Local Variables}. It is normal that it exists multiple files with +this name. But see the command @code{list-dir-locals-shadows} +below. + When called from Lisp, this function prints a message listing the shadowed files, instead of displaying them in a buffer. If the -optional argument @code{stringp} is non-@code{nil}, it instead returns +optional argument @var{stringp} is non-@code{nil}, it instead returns the shadowed files as a string. @end deffn +@deffn Command list-dir-locals-shadows &optional stringp path +This command displays a list of @file{.dir-locals.el} files that shadow other +such files. + +A @file{.dir-locals.el} file will shadow any other such file higher up +in the directory tree. Sometimes this is what you want, +sometimes it is not. + +If the optional argument @var{stringp} is non-@code{nil}, returns any +shadows as a string. Otherwise, if interactive shows any shadows in a +buffer; else prints a message listing any shadows. + +The optional argument @var{path} is the directory or list of directories +to examine. It defaults to the value of @code{load-path}. +@end deffn + + @node Loading Non-ASCII @section Loading Non-@acronym{ASCII} Characters