diff options
| author | Paul Eggert | 2011-03-01 17:52:03 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-01 17:52:03 -0800 |
| commit | ba46f4d85a6938273f52a8cdf7e09d9afee61d7f (patch) | |
| tree | 606ec46b703532d463ccddf287f0053430eb1f4a /doc/lispref | |
| parent | d9d0d182da35312ed0d7a9859b9c6a03994d86d8 (diff) | |
| parent | 0dc3e4109e0c41bbf5fdcae0ff1156162719693e (diff) | |
| download | emacs-ba46f4d85a6938273f52a8cdf7e09d9afee61d7f.tar.gz emacs-ba46f4d85a6938273f52a8cdf7e09d9afee61d7f.zip | |
Merge from mainline.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 15 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 23 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 24 |
3 files changed, 44 insertions, 18 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 90eed004d39..1a980f14f3d 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2011-03-01 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * variables.texi (Directory Local Variables): | ||
| 4 | Mention `(subdirs . nil)' alist element. | ||
| 5 | |||
| 6 | 2011-02-28 Glenn Morris <rgm@gnu.org> | ||
| 7 | |||
| 8 | * variables.texi (Directory Local Variables): Mention the optional | ||
| 9 | mtime argument of dir-locals-set-directory-class. (Bug#3577) | ||
| 10 | |||
| 11 | 2011-02-27 Chong Yidong <cyd@stupidchicken.com> | ||
| 12 | |||
| 13 | * minibuf.texi (Minibuffer History): Clarify discussion of | ||
| 14 | minibuffer history lists (Bug#8085). | ||
| 15 | |||
| 1 | 2011-02-19 Eli Zaretskii <eliz@gnu.org> | 16 | 2011-02-19 Eli Zaretskii <eliz@gnu.org> |
| 2 | 17 | ||
| 3 | * elisp.texi: Sync @dircategory with ../../info/dir. | 18 | * elisp.texi: Sync @dircategory with ../../info/dir. |
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 50324a91f5f..07975e64b35 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -433,18 +433,17 @@ expression, thus moving point forward one word. | |||
| 433 | @cindex minibuffer history | 433 | @cindex minibuffer history |
| 434 | @cindex history list | 434 | @cindex history list |
| 435 | 435 | ||
| 436 | A @dfn{minibuffer history list} records previous minibuffer inputs so | 436 | A @dfn{minibuffer history list} records previous minibuffer inputs |
| 437 | the user can reuse them conveniently. A history list is actually a | 437 | so the user can reuse them conveniently. It is a variable whose value |
| 438 | symbol, not a list; it is a variable whose value is a list of strings | 438 | is a list of strings (previous inputs), most recent first. |
| 439 | (previous inputs), most recent first. | 439 | |
| 440 | 440 | There are many separate minibuffer history lists, used for different | |
| 441 | There are many separate history lists, used for different kinds of | 441 | kinds of inputs. It's the Lisp programmer's job to specify the right |
| 442 | inputs. It's the Lisp programmer's job to specify the right history | 442 | history list for each use of the minibuffer. |
| 443 | list for each use of the minibuffer. | 443 | |
| 444 | 444 | You specify a minibuffer history list with the optional @var{hist} | |
| 445 | You specify the history list with the optional @var{hist} argument | 445 | argument to @code{read-from-minibuffer} or @code{completing-read}. |
| 446 | to either @code{read-from-minibuffer} or @code{completing-read}. Here | 446 | Here are the possible values for it: |
| 447 | are the possible values for it: | ||
| 448 | 447 | ||
| 449 | @table @asis | 448 | @table @asis |
| 450 | @item @var{variable} | 449 | @item @var{variable} |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 0cdcaa84d58..a68b2b6dd4e 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1718,7 +1718,8 @@ directory-local variables. The name of the file is | |||
| 1718 | The MS-DOS version of Emacs uses @file{_dir-locals.el} instead, due to | 1718 | The MS-DOS version of Emacs uses @file{_dir-locals.el} instead, due to |
| 1719 | limitations of the DOS filesystems. | 1719 | limitations of the DOS filesystems. |
| 1720 | }. A file by that name in a directory causes Emacs to apply its | 1720 | }. A file by that name in a directory causes Emacs to apply its |
| 1721 | settings to any file in that directory or any of its subdirectories. | 1721 | settings to any file in that directory or any of its subdirectories |
| 1722 | (optionally, you can exclude subdirectories; see below). | ||
| 1722 | If some of the subdirectories have their own @file{.dir-locals.el} | 1723 | If some of the subdirectories have their own @file{.dir-locals.el} |
| 1723 | files, Emacs uses the settings from the deepest file it finds starting | 1724 | files, Emacs uses the settings from the deepest file it finds starting |
| 1724 | from the file's directory and moving up the directory tree. The file | 1725 | from the file's directory and moving up the directory tree. The file |
| @@ -1749,7 +1750,10 @@ file's buffer turns on a mode that is derived from @var{major-mode}, | |||
| 1749 | then the all the variables in the associated @var{alist} are applied; | 1750 | then the all the variables in the associated @var{alist} are applied; |
| 1750 | @var{alist} should be of the form @code{(@var{name} . @var{value})}. | 1751 | @var{alist} should be of the form @code{(@var{name} . @var{value})}. |
| 1751 | A special value @code{nil} for @var{major-mode} means the settings are | 1752 | A special value @code{nil} for @var{major-mode} means the settings are |
| 1752 | applicable to any mode. | 1753 | applicable to any mode. In @var{alist}, you can use a special |
| 1754 | @var{name}: @code{subdirs}. If the associated value is | ||
| 1755 | @code{nil}, the alist is only applied to files in the relevant | ||
| 1756 | directory, not to those in any subdirectories. | ||
| 1753 | 1757 | ||
| 1754 | With the second form of @var{variables}, if @var{directory} is the | 1758 | With the second form of @var{variables}, if @var{directory} is the |
| 1755 | initial substring of the file's directory, then @var{list} is applied | 1759 | initial substring of the file's directory, then @var{list} is applied |
| @@ -1757,12 +1761,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}. | 1761 | of the two forms accepted by this function in @var{variables}. |
| 1758 | @end defun | 1762 | @end defun |
| 1759 | 1763 | ||
| 1760 | @defun dir-locals-set-directory-class directory class | 1764 | @defun dir-locals-set-directory-class directory class &optional mtime |
| 1761 | This function assigns @var{class} to all the files in @code{directory} | 1765 | This function assigns @var{class} to all the files in @code{directory} |
| 1762 | and its subdirectories. Thereafter, all the variable settings | 1766 | and its subdirectories. Thereafter, all the variable settings |
| 1763 | specified for @var{class} will be applied to any visited file in | 1767 | specified for @var{class} will be applied to any visited file in |
| 1764 | @var{directory} and its children. @var{class} must have been already | 1768 | @var{directory} and its children. @var{class} must have been already |
| 1765 | defined by @code{dir-locals-set-class-variables} | 1769 | defined by @code{dir-locals-set-class-variables}. |
| 1770 | |||
| 1771 | Emacs uses this function internally when it loads directory variables | ||
| 1772 | from a @code{.dir-locals.el} file. In that case, the optional | ||
| 1773 | argument @var{mtime} holds the file modification time (as returned by | ||
| 1774 | @code{file-attributes}). Emacs uses this time to check stored | ||
| 1775 | local variables are still valid. If you are assigning a class | ||
| 1776 | directly, not via a file, this argument should be @code{nil}. | ||
| 1766 | @end defun | 1777 | @end defun |
| 1767 | 1778 | ||
| 1768 | @defvar dir-locals-class-alist | 1779 | @defvar dir-locals-class-alist |
| @@ -1772,8 +1783,9 @@ settings. It is updated by @code{dir-locals-set-class-variables}. | |||
| 1772 | 1783 | ||
| 1773 | @defvar dir-locals-directory-cache | 1784 | @defvar dir-locals-directory-cache |
| 1774 | This alist holds directory names, their assigned class names, and | 1785 | This alist holds directory names, their assigned class names, and |
| 1775 | modification times of the associated directory local variables file. | 1786 | modification times of the associated directory local variables file |
| 1776 | It is updated by @code{dir-locals-set-directory-class}. | 1787 | (if there is one). The function @code{dir-locals-set-directory-class} |
| 1788 | updates this list. | ||
| 1777 | @end defvar | 1789 | @end defvar |
| 1778 | 1790 | ||
| 1779 | @node Frame-Local Variables | 1791 | @node Frame-Local Variables |