# HG changeset patch # User Richard M. Stallman # Date 1072734723 0 # Node ID d5e80b7f29170b50eb457d5e69779f1bc62a0fd3 # Parent 0f3abb6bbf2747d20bfdbc9d7b2f64930363b734 (Creating Buffer-Local): Add local-variable-if-set-p. diff -r 0f3abb6bbf27 -r d5e80b7f2917 lispref/variables.texi --- a/lispref/variables.texi Mon Dec 29 21:51:29 2003 +0000 +++ b/lispref/variables.texi Mon Dec 29 21:52:03 2003 +0000 @@ -1335,6 +1335,12 @@ @code{nil}. @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. +@end defun + @defun buffer-local-value variable buffer This function returns the buffer-local binding of @var{variable} (a symbol) in buffer @var{buffer}. If @var{variable} does not have a