aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-10-26 15:56:15 +0000
committerGerd Moellmann1999-10-26 15:56:15 +0000
commit95ed62c7aa98bdfd2e330537fe589f08b0d4fe27 (patch)
tree790e7bcd05d31f4892521333a84a3a883044bddd
parent10a61062c495f36a49df4f03cddd0fe86e0fe445 (diff)
downloademacs-95ed62c7aa98bdfd2e330537fe589f08b0d4fe27.tar.gz
emacs-95ed62c7aa98bdfd2e330537fe589f08b0d4fe27.zip
Patch from rms.
-rw-r--r--lispref/variables.texi14
1 files changed, 8 insertions, 6 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi
index b37af877b3c..7f3ce15f1b0 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -98,14 +98,16 @@ x
98@vindex nil 98@vindex nil
99@vindex t 99@vindex t
100@kindex setting-constant 100@kindex setting-constant
101@cindex keyword symbol
101 102
102 In Emacs Lisp, certain symbols normally evaluate to themselves. These 103 In Emacs Lisp, certain symbols normally evaluate to themselves. These
103include @code{nil} and @code{t}, as well as any symbol whose name starts 104include @code{nil} and @code{t}, as well as any symbol whose name starts
104with @samp{:}. These symbols cannot be rebound, nor can their values be 105with @samp{:} (these are called @dfn{keywords}). These symbols cannot
105changed. Any attempt to set or bind @code{nil} or @code{t} signals a 106be rebound, nor can their values be changed. Any attempt to set or bind
106@code{setting-constant} error. The same is true for a symbol whose name 107@code{nil} or @code{t} signals a @code{setting-constant} error. The
107starts with @samp{:} (if it is interned in the standard obarray), except 108same is true for a keyword (a symbol whose name starts with @samp{:}),
108that you are allowed to set such a symbol to itself. 109if it is interned in the standard obarray, except that setting such a
110symbol to itself is not an error.
109 111
110@example 112@example
111@group 113@group
@@ -121,7 +123,7 @@ nil @equiv{} 'nil
121@defvar keyword-symbols-constant-flag 123@defvar keyword-symbols-constant-flag
122@tindex keyword-symbols-constant-flag 124@tindex keyword-symbols-constant-flag
123If this variable is @code{nil}, you are allowed to set and bind symbols 125If this variable is @code{nil}, you are allowed to set and bind symbols
124whose names start with @samp{:} as you wish. This is to make it 126whose names start with @samp{:} however you wish. This is to make it
125possible to run old Lisp programs which do that. 127possible to run old Lisp programs which do that.
126@end defvar 128@end defvar
127 129