Mercurial > emacs
changeset 26200:798aeda17389
Patch from rms.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 26 Oct 1999 15:56:15 +0000 |
parents | bfbec2b68fd6 |
children | 097072728e80 |
files | lispref/variables.texi |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/variables.texi Tue Oct 26 15:53:43 1999 +0000 +++ b/lispref/variables.texi Tue Oct 26 15:56:15 1999 +0000 @@ -98,14 +98,16 @@ @vindex nil @vindex t @kindex setting-constant +@cindex keyword symbol In Emacs Lisp, certain symbols normally evaluate to themselves. These include @code{nil} and @code{t}, as well as any symbol whose name starts -with @samp{:}. These symbols cannot be rebound, nor can their values be -changed. Any attempt to set or bind @code{nil} or @code{t} signals a -@code{setting-constant} error. The same is true for a symbol whose name -starts with @samp{:} (if it is interned in the standard obarray), except -that you are allowed to set such a symbol to itself. +with @samp{:} (these are called @dfn{keywords}). These symbols cannot +be rebound, nor can their values be changed. Any attempt to set or bind +@code{nil} or @code{t} signals a @code{setting-constant} error. The +same is true for a keyword (a symbol whose name starts with @samp{:}), +if it is interned in the standard obarray, except that setting such a +symbol to itself is not an error. @example @group @@ -121,7 +123,7 @@ @defvar keyword-symbols-constant-flag @tindex keyword-symbols-constant-flag If this variable is @code{nil}, you are allowed to set and bind symbols -whose names start with @samp{:} as you wish. This is to make it +whose names start with @samp{:} however you wish. This is to make it possible to run old Lisp programs which do that. @end defvar