diff options
author | Chong Yidong <[email protected]> | 2012-09-07 22:15:59 +0800 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2012-09-07 22:15:59 +0800 |
commit | 1a5432bc0480ab64dd7ac5d57d1025bdc3f0402b (patch) | |
tree | e56bc5c1142d83a8654c54cce5b3499c64afa5d8 /doc | |
parent | cee2e90d475f6d9dbdb7e92a127b65faa342665c (diff) |
Fix doc of local-variable-if-set-p.
* doc/lispref/variables.texi (Creating Buffer-Local): Fix description of
local-variable-if-set-p.
* src/data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/ChangeLog | 3 | ||||
-rw-r--r-- | doc/lispref/variables.texi | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 9a747838c2..4bd7210d7d 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,8 @@ 2012-09-07 Chong Yidong <[email protected]> + * variables.texi (Creating Buffer-Local): Fix description of + local-variable-if-set-p (Bug#10713). + * eval.texi (Intro Eval): Add index entry for sexp (Bug#12233). * windows.texi (Display Action Functions) diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 3b078e7e19..c5b66757ac 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi @@ -1302,9 +1302,10 @@ This returns @code{t} if @var{variable} is buffer-local in buffer @end defun @defun local-variable-if-set-p variable &optional buffer -This returns @code{t} if @var{variable} will become buffer-local in -buffer @var{buffer} (which defaults to the current buffer) if it is -set there. +This returns @code{t} if @var{variable} either has a buffer-local +value in buffer @var{buffer}, or is automatically buffer-local. +Otherwise, it returns @code{nil}. If omitted or @code{nil}, +@var{buffer} defaults to the current buffer. @end defun @defun buffer-local-value variable buffer |