diff options
| author | Richard M. Stallman | 2003-07-14 15:56:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-14 15:56:49 +0000 |
| commit | a1c0746110fd41e3edbe9f743147bc27727f3616 (patch) | |
| tree | a11021be94b7c4e5f125afb21b5cf133ca2e7240 | |
| parent | cee6bbce9c637c1621f70c48b26ff85a399b63d8 (diff) | |
| download | emacs-a1c0746110fd41e3edbe9f743147bc27727f3616.tar.gz emacs-a1c0746110fd41e3edbe9f743147bc27727f3616.zip | |
(Creating Buffer-Local): Add buffer-local-value.
(Variable Aliases): Clarify defvralias.
| -rw-r--r-- | lispref/variables.texi | 14 |
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 | ||
| 1322 | This returns the value of @var{variable} that is currently in | ||
| 1323 | effect 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 |
| 1322 | This function returns a list describing the buffer-local variables in | 1328 | This function returns a list describing the buffer-local variables in |
| 1323 | buffer @var{buffer}. (If @var{buffer} is omitted, the current buffer is | 1329 | buffer @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 | |||
| 1666 | to keep the old name as an @emph{alias} of the new one for | 1672 | to keep the old name as an @emph{alias} of the new one for |
| 1667 | compatibility. You can do this with @code{defvaralias}. | 1673 | compatibility. 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 |
| 1670 | This function defines the symbol @var{alias-var} as a variable alias | 1676 | This function defines the symbol @var{alias-var} as a variable alias |
| 1671 | for symbol @var{base-var}. This means that retrieving the value of | 1677 | for 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 |
| 1673 | value of @var{alias-var} changes the value of @var{base-var}. | 1679 | value of @var{alias-var} changes the value of @var{base-var}. |
| 1674 | 1680 | ||
| 1675 | If the @var{docstring} argument is present, it specifies the documentation for | 1681 | If 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}, | 1682 | documentation for @var{alias-var}; otherwise, the alias gets the same |
| 1677 | if any. | 1683 | documentation 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 |