Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2640fa86
Commit
2640fa86
authored
Oct 16, 2009
by
Chong Yidong
Browse files
* variables.texi (Constant Variables): Distinguish from defconst
variables. (Defining Variables): Add cindex.
parent
73874eb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+6
-0
doc/lispref/variables.texi
doc/lispref/variables.texi
+7
-0
No files found.
doc/lispref/ChangeLog
View file @
2640fa86
2009
-
10
-
16
Chong
Yidong
<
cyd
@
stupidchicken
.
com
>
*
variables
.
texi
(
Constant
Variables
):
Distinguish
from
defconst
variables
.
(
Defining
Variables
):
Add
cindex
.
2009
-
10
-
15
Chong
Yidong
<
cyd
@
stupidchicken
.
com
>
*
os
.
texi
(
Time
of
Day
):
Clarify
that
the
microsecond
part
is
...
...
doc/lispref/variables.texi
View file @
2640fa86
...
...
@@ -134,6 +134,12 @@ starts with @samp{:}, interned in the standard obarray, and returns
@code{nil} otherwise.
@end defun
These constants are fundamentally different from the ``constants''
defined using the @code{defconst} special form (@pxref{Defining
Variables}). A @code{defconst} form serves to inform human readers
that you do not intend to change the value of a variable, but Emacs
does not raise an error if you actually change it.
@node Local Variables
@section Local Variables
@cindex binding local variables
...
...
@@ -523,6 +529,7 @@ The @code{defvar} form returns @var{symbol}, but it is normally used
at top level in a file where its value does not matter.
@end defspec
@cindex constant variables
@defspec defconst symbol value [doc-string]
This special form defines @var{symbol} as a value and initializes it.
It informs a person reading your code that @var{symbol} has a standard
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment