diff options
| author | Chong Yidong | 2009-10-16 02:20:29 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-10-16 02:20:29 +0000 |
| commit | 2640fa86dabd7865ec7770796bf751571a0b5d5c (patch) | |
| tree | df96f53b579d58106a56f07ce116fd12c9ca8819 | |
| parent | 73874eb74cc9ee5248a1d610ac5991729465fc62 (diff) | |
| download | emacs-2640fa86dabd7865ec7770796bf751571a0b5d5c.tar.gz emacs-2640fa86dabd7865ec7770796bf751571a0b5d5c.zip | |
* variables.texi (Constant Variables): Distinguish from defconst
variables.
(Defining Variables): Add cindex.
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 833ff8b57ff..42069cd4e94 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-10-16 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * variables.texi (Constant Variables): Distinguish from defconst | ||
| 4 | variables. | ||
| 5 | (Defining Variables): Add cindex. | ||
| 6 | |||
| 1 | 2009-10-15 Chong Yidong <cyd@stupidchicken.com> | 7 | 2009-10-15 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * os.texi (Time of Day): Clarify that the microsecond part is | 9 | * os.texi (Time of Day): Clarify that the microsecond part is |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 89fb19b8d62..4f9f9c17369 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -134,6 +134,12 @@ starts with @samp{:}, interned in the standard obarray, and returns | |||
| 134 | @code{nil} otherwise. | 134 | @code{nil} otherwise. |
| 135 | @end defun | 135 | @end defun |
| 136 | 136 | ||
| 137 | These constants are fundamentally different from the ``constants'' | ||
| 138 | defined using the @code{defconst} special form (@pxref{Defining | ||
| 139 | Variables}). A @code{defconst} form serves to inform human readers | ||
| 140 | that you do not intend to change the value of a variable, but Emacs | ||
| 141 | does not raise an error if you actually change it. | ||
| 142 | |||
| 137 | @node Local Variables | 143 | @node Local Variables |
| 138 | @section Local Variables | 144 | @section Local Variables |
| 139 | @cindex binding local variables | 145 | @cindex binding local variables |
| @@ -523,6 +529,7 @@ The @code{defvar} form returns @var{symbol}, but it is normally used | |||
| 523 | at top level in a file where its value does not matter. | 529 | at top level in a file where its value does not matter. |
| 524 | @end defspec | 530 | @end defspec |
| 525 | 531 | ||
| 532 | @cindex constant variables | ||
| 526 | @defspec defconst symbol value [doc-string] | 533 | @defspec defconst symbol value [doc-string] |
| 527 | This special form defines @var{symbol} as a value and initializes it. | 534 | This special form defines @var{symbol} as a value and initializes it. |
| 528 | It informs a person reading your code that @var{symbol} has a standard | 535 | It informs a person reading your code that @var{symbol} has a standard |