diff options
| author | Gerd Moellmann | 1999-10-26 15:56:15 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-26 15:56:15 +0000 |
| commit | 95ed62c7aa98bdfd2e330537fe589f08b0d4fe27 (patch) | |
| tree | 790e7bcd05d31f4892521333a84a3a883044bddd | |
| parent | 10a61062c495f36a49df4f03cddd0fe86e0fe445 (diff) | |
| download | emacs-95ed62c7aa98bdfd2e330537fe589f08b0d4fe27.tar.gz emacs-95ed62c7aa98bdfd2e330537fe589f08b0d4fe27.zip | |
Patch from rms.
| -rw-r--r-- | lispref/variables.texi | 14 |
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 |
| 103 | include @code{nil} and @code{t}, as well as any symbol whose name starts | 104 | include @code{nil} and @code{t}, as well as any symbol whose name starts |
| 104 | with @samp{:}. These symbols cannot be rebound, nor can their values be | 105 | with @samp{:} (these are called @dfn{keywords}). These symbols cannot |
| 105 | changed. Any attempt to set or bind @code{nil} or @code{t} signals a | 106 | be 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 |
| 107 | starts with @samp{:} (if it is interned in the standard obarray), except | 108 | same is true for a keyword (a symbol whose name starts with @samp{:}), |
| 108 | that you are allowed to set such a symbol to itself. | 109 | if it is interned in the standard obarray, except that setting such a |
| 110 | symbol 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 |
| 123 | If this variable is @code{nil}, you are allowed to set and bind symbols | 125 | If this variable is @code{nil}, you are allowed to set and bind symbols |
| 124 | whose names start with @samp{:} as you wish. This is to make it | 126 | whose names start with @samp{:} however you wish. This is to make it |
| 125 | possible to run old Lisp programs which do that. | 127 | possible to run old Lisp programs which do that. |
| 126 | @end defvar | 128 | @end defvar |
| 127 | 129 | ||