Commit 1a5432bc authored by Chong Yidong's avatar Chong Yidong
Browse files

Fix doc of local-variable-if-set-p.

* doc/lispref/variables.texi (Creating Buffer-Local): Fix description of

* src/data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
parent cee2e90d
2012-09-07 Chong Yidong <>
* 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)
......@@ -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
2012-09-07 Chong Yidong <>
* data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
2012-09-07 Paul Eggert <>
More signal-handler cleanup (Bug#12327).
......@@ -1882,12 +1882,12 @@ BUFFER defaults to the current buffer. */)
DEFUN ("local-variable-if-set-p", Flocal_variable_if_set_p, Slocal_variable_if_set_p,
1, 2, 0,
doc: /* Non-nil if VARIABLE will be local in buffer BUFFER when set there.
More precisely, this means that setting the variable \(with `set' or`setq'),
while it does not have a `let'-style binding that was made in BUFFER,
will produce a buffer local binding. See Info node
`(elisp)Creating Buffer-Local'.
BUFFER defaults to the current buffer. */)
doc: /* Non-nil if VARIABLE is local in buffer BUFFER when set there.
BUFFER defaults to the current buffer.
More precisely, return non-nil if either VARIABLE already has a local
value in BUFFER, or if VARIABLE is automatically buffer-local (see
`make-variable-buffer-local'). */)
(register Lisp_Object variable, Lisp_Object buffer)
struct Lisp_Symbol *sym;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment