]> code.delx.au - gnu-emacs/blobdiff - lispref/variables.texi
(Text Terminal Colors): Remove description of tty-display-color-cells.
[gnu-emacs] / lispref / variables.texi
index 097961e98bdbe556c8eb404fb101237f1017db98..5d19cbefd0ea67200dcc1f6c294b04c2e0b2ee5e 100644 (file)
@@ -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