diff options
| author | Chong Yidong | 2012-01-06 18:53:41 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-01-06 18:53:41 +0800 |
| commit | 89bd9ccd5bf4c2553bb1403ba71f4ed51dbb09b5 (patch) | |
| tree | b2015490fad1c12f4b1504ae299f1f4bcb173ab3 /doc/lispref | |
| parent | 8034735f6fac4719a402face6d31e97f6c067803 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 9 |
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 @@ | |||
| 1 | 2012-01-06 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * variables.texi (Directory Local Variables): Document | ||
| 4 | hack-dir-local-variables-non-file-buffer. | ||
| 5 | |||
| 1 | 2012-01-06 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 | ||
| 1833 | This function looks for directory-local variables, and immediately | ||
| 1834 | applies them in the current buffer. It is intended to be called in | ||
| 1835 | the mode commands for non-file buffers, such as Dired buffers, to let | ||
| 1836 | them obey directory-local variable settings. For non-file buffers, | ||
| 1837 | Emacs looks for directory-local variables in @code{default-directory} | ||
| 1838 | and 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 |
| 1833 | This function defines a set of variable settings for the named | 1842 | This 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 |