aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-07-14 15:56:49 +0000
committerRichard M. Stallman2003-07-14 15:56:49 +0000
commita1c0746110fd41e3edbe9f743147bc27727f3616 (patch)
treea11021be94b7c4e5f125afb21b5cf133ca2e7240
parentcee6bbce9c637c1621f70c48b26ff85a399b63d8 (diff)
downloademacs-a1c0746110fd41e3edbe9f743147bc27727f3616.tar.gz
emacs-a1c0746110fd41e3edbe9f743147bc27727f3616.zip
(Creating Buffer-Local): Add buffer-local-value.
(Variable Aliases): Clarify defvralias.
-rw-r--r--lispref/variables.texi14
1 files changed, 10 insertions, 4 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi
index 268b8788500..bbed104a42b 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -1318,6 +1318,12 @@ This returns @code{t} if @var{variable} is buffer-local in buffer
1318@code{nil}. 1318@code{nil}.
1319@end defun 1319@end defun
1320 1320
1321@defun buffer-local-value variable buffer
1322This returns the value of @var{variable} that is currently in
1323effect in @var{buffer}. If it has no buffer-local binding in
1324@var{buffer}, this function returns the default value.
1325@end defun
1326
1321@defun buffer-local-variables &optional buffer 1327@defun buffer-local-variables &optional buffer
1322This function returns a list describing the buffer-local variables in 1328This function returns a list describing the buffer-local variables in
1323buffer @var{buffer}. (If @var{buffer} is omitted, the current buffer is 1329buffer @var{buffer}. (If @var{buffer} is omitted, the current buffer is
@@ -1666,15 +1672,15 @@ chosen, or because its meaning has partly changed---it can be useful
1666to keep the old name as an @emph{alias} of the new one for 1672to keep the old name as an @emph{alias} of the new one for
1667compatibility. You can do this with @code{defvaralias}. 1673compatibility. You can do this with @code{defvaralias}.
1668 1674
1669@defun defvaralias alias-var base-var [docstring] 1675@defun defvaralias alias-var base-var &optional docstring
1670This function defines the symbol @var{alias-var} as a variable alias 1676This function defines the symbol @var{alias-var} as a variable alias
1671for symbol @var{base-var}. This means that retrieving the value of 1677for symbol @var{base-var}. This means that retrieving the value of
1672@var{alias-var} returns the value of @var{base-var}, and changing the 1678@var{alias-var} returns the value of @var{base-var}, and changing the
1673value of @var{alias-var} changes the value of @var{base-var}. 1679value of @var{alias-var} changes the value of @var{base-var}.
1674 1680
1675If the @var{docstring} argument is present, it specifies the documentation for 1681If the @var{docstring} argument is non-@code{nil}, it specifies the
1676@var{alias-var}; otherwise, it has the same documentation as @var{base-var}, 1682documentation for @var{alias-var}; otherwise, the alias gets the same
1677if any. 1683documentation as @var{base-var} has, if any.
1678@end defun 1684@end defun
1679 1685
1680@defun indirect-variable variable 1686@defun indirect-variable variable