aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-10-16 02:20:29 +0000
committerChong Yidong2009-10-16 02:20:29 +0000
commit2640fa86dabd7865ec7770796bf751571a0b5d5c (patch)
treedf96f53b579d58106a56f07ce116fd12c9ca8819
parent73874eb74cc9ee5248a1d610ac5991729465fc62 (diff)
downloademacs-2640fa86dabd7865ec7770796bf751571a0b5d5c.tar.gz
emacs-2640fa86dabd7865ec7770796bf751571a0b5d5c.zip
* variables.texi (Constant Variables): Distinguish from defconst
variables. (Defining Variables): Add cindex.
-rw-r--r--doc/lispref/ChangeLog6
-rw-r--r--doc/lispref/variables.texi7
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 @@
12009-10-16 Chong Yidong <cyd@stupidchicken.com>
2
3 * variables.texi (Constant Variables): Distinguish from defconst
4 variables.
5 (Defining Variables): Add cindex.
6
12009-10-15 Chong Yidong <cyd@stupidchicken.com> 72009-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
137These constants are fundamentally different from the ``constants''
138defined using the @code{defconst} special form (@pxref{Defining
139Variables}). A @code{defconst} form serves to inform human readers
140that you do not intend to change the value of a variable, but Emacs
141does 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
523at top level in a file where its value does not matter. 529at 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]
527This special form defines @var{symbol} as a value and initializes it. 534This special form defines @var{symbol} as a value and initializes it.
528It informs a person reading your code that @var{symbol} has a standard 535It informs a person reading your code that @var{symbol} has a standard