aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2011-03-01 17:52:03 -0800
committerPaul Eggert2011-03-01 17:52:03 -0800
commitba46f4d85a6938273f52a8cdf7e09d9afee61d7f (patch)
tree606ec46b703532d463ccddf287f0053430eb1f4a /doc/lispref
parentd9d0d182da35312ed0d7a9859b9c6a03994d86d8 (diff)
parent0dc3e4109e0c41bbf5fdcae0ff1156162719693e (diff)
downloademacs-ba46f4d85a6938273f52a8cdf7e09d9afee61d7f.tar.gz
emacs-ba46f4d85a6938273f52a8cdf7e09d9afee61d7f.zip
Merge from mainline.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog15
-rw-r--r--doc/lispref/minibuf.texi23
-rw-r--r--doc/lispref/variables.texi24
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 @@
12011-03-01 Glenn Morris <rgm@gnu.org>
2
3 * variables.texi (Directory Local Variables):
4 Mention `(subdirs . nil)' alist element.
5
62011-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
112011-02-27 Chong Yidong <cyd@stupidchicken.com>
12
13 * minibuf.texi (Minibuffer History): Clarify discussion of
14 minibuffer history lists (Bug#8085).
15
12011-02-19 Eli Zaretskii <eliz@gnu.org> 162011-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
437the user can reuse them conveniently. A history list is actually a 437so the user can reuse them conveniently. It is a variable whose value
438symbol, not a list; it is a variable whose value is a list of strings 438is 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 441kinds of inputs. It's the Lisp programmer's job to specify the right
442inputs. It's the Lisp programmer's job to specify the right history 442history list for each use of the minibuffer.
443list 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 445argument to @code{read-from-minibuffer} or @code{completing-read}.
446to either @code{read-from-minibuffer} or @code{completing-read}. Here 446Here are the possible values for it:
447are 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
1718The MS-DOS version of Emacs uses @file{_dir-locals.el} instead, due to 1718The MS-DOS version of Emacs uses @file{_dir-locals.el} instead, due to
1719limitations of the DOS filesystems. 1719limitations 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
1721settings to any file in that directory or any of its subdirectories. 1721settings to any file in that directory or any of its subdirectories
1722(optionally, you can exclude subdirectories; see below).
1722If some of the subdirectories have their own @file{.dir-locals.el} 1723If some of the subdirectories have their own @file{.dir-locals.el}
1723files, Emacs uses the settings from the deepest file it finds starting 1724files, Emacs uses the settings from the deepest file it finds starting
1724from the file's directory and moving up the directory tree. The file 1725from 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},
1749then the all the variables in the associated @var{alist} are applied; 1750then 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})}.
1751A special value @code{nil} for @var{major-mode} means the settings are 1752A special value @code{nil} for @var{major-mode} means the settings are
1752applicable to any mode. 1753applicable 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
1756directory, not to those in any subdirectories.
1753 1757
1754With the second form of @var{variables}, if @var{directory} is the 1758With the second form of @var{variables}, if @var{directory} is the
1755initial substring of the file's directory, then @var{list} is applied 1759initial 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
1757of the two forms accepted by this function in @var{variables}. 1761of 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
1761This function assigns @var{class} to all the files in @code{directory} 1765This function assigns @var{class} to all the files in @code{directory}
1762and its subdirectories. Thereafter, all the variable settings 1766and its subdirectories. Thereafter, all the variable settings
1763specified for @var{class} will be applied to any visited file in 1767specified 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
1765defined by @code{dir-locals-set-class-variables} 1769defined by @code{dir-locals-set-class-variables}.
1770
1771Emacs uses this function internally when it loads directory variables
1772from a @code{.dir-locals.el} file. In that case, the optional
1773argument @var{mtime} holds the file modification time (as returned by
1774@code{file-attributes}). Emacs uses this time to check stored
1775local variables are still valid. If you are assigning a class
1776directly, 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
1774This alist holds directory names, their assigned class names, and 1785This alist holds directory names, their assigned class names, and
1775modification times of the associated directory local variables file. 1786modification times of the associated directory local variables file
1776It is updated by @code{dir-locals-set-directory-class}. 1787(if there is one). The function @code{dir-locals-set-directory-class}
1788updates this list.
1777@end defvar 1789@end defvar
1778 1790
1779@node Frame-Local Variables 1791@node Frame-Local Variables