diff options
| -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 9be1104a256..2bb357cf8a1 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-25 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-18 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-02-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * elisp.texi: Sync @dircategory with ../../info/dir. | 8 | * elisp.texi: Sync @dircategory with ../../info/dir. |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 18343b4dc85..1c86a7eb65c 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1759,12 +1759,19 @@ recursively by following the above rules; @var{list} should be of one | |||
| 1759 | of the two forms accepted by this function in @var{variables}. | 1759 | of the two forms accepted by this function in @var{variables}. |
| 1760 | @end defun | 1760 | @end defun |
| 1761 | 1761 | ||
| 1762 | @defun dir-locals-set-directory-class directory class | 1762 | @defun dir-locals-set-directory-class directory class &optional mtime |
| 1763 | This function assigns @var{class} to all the files in @code{directory} | 1763 | This function assigns @var{class} to all the files in @code{directory} |
| 1764 | and its subdirectories. Thereafter, all the variable settings | 1764 | and its subdirectories. Thereafter, all the variable settings |
| 1765 | specified for @var{class} will be applied to any visited file in | 1765 | specified for @var{class} will be applied to any visited file in |
| 1766 | @var{directory} and its children. @var{class} must have been already | 1766 | @var{directory} and its children. @var{class} must have been already |
| 1767 | defined by @code{dir-locals-set-class-variables} | 1767 | defined by @code{dir-locals-set-class-variables}. |
| 1768 | |||
| 1769 | Emacs uses this function internally when it loads directory variables | ||
| 1770 | from a @code{.dir-locals.el} file. In that case, the optional | ||
| 1771 | argument @var{mtime} holds the file modification time (as returned by | ||
| 1772 | @code{file-attributes}). Emacs uses this time to check stored | ||
| 1773 | local variables are still valid. If you are assigning a class | ||
| 1774 | directly, not via a file, this argument should be @code{nil}. | ||
| 1768 | @end defun | 1775 | @end defun |
| 1769 | 1776 | ||
| 1770 | @defvar dir-locals-class-alist | 1777 | @defvar dir-locals-class-alist |
| @@ -1774,8 +1781,9 @@ settings. It is updated by @code{dir-locals-set-class-variables}. | |||
| 1774 | 1781 | ||
| 1775 | @defvar dir-locals-directory-cache | 1782 | @defvar dir-locals-directory-cache |
| 1776 | This alist holds directory names, their assigned class names, and | 1783 | This alist holds directory names, their assigned class names, and |
| 1777 | modification times of the associated directory local variables file. | 1784 | modification times of the associated directory local variables file |
| 1778 | It is updated by @code{dir-locals-set-directory-class}. | 1785 | (if there is one). The function @code{dir-locals-set-directory-class} |
| 1786 | updates this list. | ||
| 1779 | @end defvar | 1787 | @end defvar |
| 1780 | 1788 | ||
| 1781 | @node Frame-Local Variables | 1789 | @node Frame-Local Variables |