aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorChong Yidong2012-01-06 18:53:41 +0800
committerChong Yidong2012-01-06 18:53:41 +0800
commit89bd9ccd5bf4c2553bb1403ba71f4ed51dbb09b5 (patch)
treeb2015490fad1c12f4b1504ae299f1f4bcb173ab3 /doc/lispref
parent8034735f6fac4719a402face6d31e97f6c067803 (diff)
downloademacs-89bd9ccd5bf4c2553bb1403ba71f4ed51dbb09b5.tar.gz
emacs-89bd9ccd5bf4c2553bb1403ba71f4ed51dbb09b5.zip
More customization-related documentation updates.
* doc/emacs/custom.texi (Specifying File Variables): The mode: keyword doesn't have to be first anymore. Add example of specifying minor modes. (Directory Variables): Simplify example. Mention application to non-file buffers. (Disabling): Use "initialization file" terminology. (Init Examples): Fix hook example. * doc/lispref/variables.texi (Directory Local Variables): Document hack-dir-local-variables-non-file-buffer. * lisp/files.el (hack-dir-local-variables-non-file-buffer): Add doc. (hack-one-local-variable-eval-safep): Allow 0 arg for minor mode functions, along with 1 and -1.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/variables.texi9
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 883eaf13356..1365e016cca 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12012-01-06 Chong Yidong <cyd@gnu.org>
2
3 * variables.texi (Directory Local Variables): Document
4 hack-dir-local-variables-non-file-buffer.
5
12012-01-06 Glenn Morris <rgm@gnu.org> 62012-01-06 Glenn Morris <rgm@gnu.org>
2 7
3 * maps.texi (Standard Keymaps): Refer to Info-edit by name 8 * maps.texi (Standard Keymaps): Refer to Info-edit by name
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 243da9f373d..5bc9c1157e2 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -1829,6 +1829,15 @@ function works by calling @code{dir-locals-set-class-variables} and
1829@code{dir-locals-set-directory-class}, described below. 1829@code{dir-locals-set-directory-class}, described below.
1830@end defun 1830@end defun
1831 1831
1832@defun hack-dir-local-variables-non-file-buffer
1833This function looks for directory-local variables, and immediately
1834applies them in the current buffer. It is intended to be called in
1835the mode commands for non-file buffers, such as Dired buffers, to let
1836them obey directory-local variable settings. For non-file buffers,
1837Emacs looks for directory-local variables in @code{default-directory}
1838and its parent directories.
1839@end defun
1840
1832@defun dir-locals-set-class-variables class variables 1841@defun dir-locals-set-class-variables class variables
1833This function defines a set of variable settings for the named 1842This function defines a set of variable settings for the named
1834@var{class}, which is a symbol. You can later assign the class to one 1843@var{class}, which is a symbol. You can later assign the class to one