X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/26236f6d9c903a219fb1a1000f7fce17cc2bf5c3..d0997f103e59252edd7d245a90ec8b622c154a92:/lispref/variables.texi diff --git a/lispref/variables.texi b/lispref/variables.texi index 097961e98b..5d19cbefd0 100644 --- a/lispref/variables.texi +++ b/lispref/variables.texi @@ -1359,6 +1359,13 @@ Note that storing new values into the @sc{cdr}s of cons cells in this list does @emph{not} change the buffer-local values of the variables. @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 +buffer-local binding in buffer @var{buffer}, it returns the default +value (@pxref{Default Value}) of @var{variable} instead. +@end defun + @deffn Command kill-local-variable variable This function deletes the buffer-local binding (if any) for @var{variable} (a symbol) in the current buffer. As a result, the @@ -1666,12 +1673,12 @@ chosen, or because its meaning has partly changed---it can be useful to keep the old name as an @emph{alias} of the new one for compatibility. You can do this with @code{defvaralias}. -@defmacro defvaralias alias-var base-var +@defmac defvaralias alias-var base-var This function defines the symbol @var{alias-var} as a variable alias for symbol @var{base-var}. This means that retrieving the value of @var{alias-var} returns the value of @var{base-var}, and changing the value of @var{alias-var} changes the value of @var{base-var}. -@end defmacro +@end defmac @defun indirect-variable variable This function returns the variable at the end of the chain of aliases