]> code.delx.au - gnu-emacs/blobdiff - doc/lispref/variables.texi
Merge from trunk.
[gnu-emacs] / doc / lispref / variables.texi
index 243da9f373dc68ab5dff057e61c8c2501e0083a1..5bc9c1157e2dda091a592433116293b0a1015d56 100644 (file)
@@ -1829,6 +1829,15 @@ function works by calling @code{dir-locals-set-class-variables} and
 @code{dir-locals-set-directory-class}, described below.
 @end defun
 
+@defun hack-dir-local-variables-non-file-buffer
+This function looks for directory-local variables, and immediately
+applies them in the current buffer.  It is intended to be called in
+the mode commands for non-file buffers, such as Dired buffers, to let
+them obey directory-local variable settings.  For non-file buffers,
+Emacs looks for directory-local variables in @code{default-directory}
+and its parent directories.
+@end defun
+
 @defun dir-locals-set-class-variables class variables
 This function defines a set of variable settings for the named
 @var{class}, which is a symbol.  You can later assign the class to one