diff options
| author | Glenn Morris | 2011-02-27 17:07:29 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-27 17:07:29 -0800 |
| commit | 2b0c7330457b8ca42375c92ada7dc7cefb0fa9fb (patch) | |
| tree | b924eb1c22ab3bce643676162ef039f250782661 /doc/lispref | |
| parent | df7f0d0b10ce31a6f1a8b7e979e120c695699d5a (diff) | |
| parent | d1f61aaf6f0b6a2cf2bbb7eaf5631f8b580568d4 (diff) | |
| download | emacs-2b0c7330457b8ca42375c92ada7dc7cefb0fa9fb.tar.gz emacs-2b0c7330457b8ca42375c92ada7dc7cefb0fa9fb.zip | |
Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 16 |
2 files changed, 17 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index e0df108f8b6..c8925715f74 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * variables.texi (Directory Local Variables): Mention the optional | ||
| 4 | mtime argument of dir-locals-set-directory-class. (Bug#3577) | ||
| 5 | |||
| 1 | 2011-02-27 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-02-27 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * minibuf.texi (Minibuffer History): Clarify discussion of | 8 | * minibuf.texi (Minibuffer History): Clarify discussion of |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 0cdcaa84d58..c6af304416c 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1757,12 +1757,19 @@ recursively by following the above rules; @var{list} should be of one | |||
| 1757 | of the two forms accepted by this function in @var{variables}. | 1757 | of the two forms accepted by this function in @var{variables}. |
| 1758 | @end defun | 1758 | @end defun |
| 1759 | 1759 | ||
| 1760 | @defun dir-locals-set-directory-class directory class | 1760 | @defun dir-locals-set-directory-class directory class &optional mtime |
| 1761 | This function assigns @var{class} to all the files in @code{directory} | 1761 | This function assigns @var{class} to all the files in @code{directory} |
| 1762 | and its subdirectories. Thereafter, all the variable settings | 1762 | and its subdirectories. Thereafter, all the variable settings |
| 1763 | specified for @var{class} will be applied to any visited file in | 1763 | specified for @var{class} will be applied to any visited file in |
| 1764 | @var{directory} and its children. @var{class} must have been already | 1764 | @var{directory} and its children. @var{class} must have been already |
| 1765 | defined by @code{dir-locals-set-class-variables} | 1765 | defined by @code{dir-locals-set-class-variables}. |
| 1766 | |||
| 1767 | Emacs uses this function internally when it loads directory variables | ||
| 1768 | from a @code{.dir-locals.el} file. In that case, the optional | ||
| 1769 | argument @var{mtime} holds the file modification time (as returned by | ||
| 1770 | @code{file-attributes}). Emacs uses this time to check stored | ||
| 1771 | local variables are still valid. If you are assigning a class | ||
| 1772 | directly, not via a file, this argument should be @code{nil}. | ||
| 1766 | @end defun | 1773 | @end defun |
| 1767 | 1774 | ||
| 1768 | @defvar dir-locals-class-alist | 1775 | @defvar dir-locals-class-alist |
| @@ -1772,8 +1779,9 @@ settings. It is updated by @code{dir-locals-set-class-variables}. | |||
| 1772 | 1779 | ||
| 1773 | @defvar dir-locals-directory-cache | 1780 | @defvar dir-locals-directory-cache |
| 1774 | This alist holds directory names, their assigned class names, and | 1781 | This alist holds directory names, their assigned class names, and |
| 1775 | modification times of the associated directory local variables file. | 1782 | modification times of the associated directory local variables file |
| 1776 | It is updated by @code{dir-locals-set-directory-class}. | 1783 | (if there is one). The function @code{dir-locals-set-directory-class} |
| 1784 | updates this list. | ||
| 1777 | @end defvar | 1785 | @end defvar |
| 1778 | 1786 | ||
| 1779 | @node Frame-Local Variables | 1787 | @node Frame-Local Variables |