comparison lispref/variables.texi @ 27528:5b4130fa5ab6

keywordp, user-variable-p change.
author Dave Love <fx@gnu.org>
date Mon, 31 Jan 2000 12:48:43 +0000
parents 10e53615a9d2
children cc4885ac4603
comparison
equal deleted inserted replaced
27527:c961bfd66c60 27528:5b4130fa5ab6
126 If this variable is @code{nil}, you are allowed to set and bind symbols 126 If this variable is @code{nil}, you are allowed to set and bind symbols
127 whose names start with @samp{:} however you wish. This is to make it 127 whose names start with @samp{:} however you wish. This is to make it
128 possible to run old Lisp programs which do that. 128 possible to run old Lisp programs which do that.
129 @end defvar 129 @end defvar
130 130
131 @defun keywordp object
132 @tindex keywordp
133 function returns @code{t} if @var{object} is a symbol whose name
134 starts with @samp{:}, interned in the standard obarray, and returns
135 @code{nil} otherwise.
136 @end defun
137
131 @node Local Variables 138 @node Local Variables
132 @section Local Variables 139 @section Local Variables
133 @cindex binding local variables 140 @cindex binding local variables
134 @cindex local variables 141 @cindex local variables
135 @cindex local binding 142 @cindex local binding
554 This function returns @code{t} if @var{variable} is a user option---a 561 This function returns @code{t} if @var{variable} is a user option---a
555 variable intended to be set by the user for customization---and 562 variable intended to be set by the user for customization---and
556 @code{nil} otherwise. (Variables other than user options exist for the 563 @code{nil} otherwise. (Variables other than user options exist for the
557 internal purposes of Lisp programs, and users need not know about them.) 564 internal purposes of Lisp programs, and users need not know about them.)
558 565
559 User option variables are distinguished from other variables by the 566 User option variables are distinguished from other variables either
560 first character of the @code{variable-documentation} property. If the 567 though being declared using @code{defcustom}@footnote{They may also be
561 property exists and is a string, and its first character is @samp{*}, 568 declared equivalently in @file{cus-start.el}.} or by the first character
562 then the variable is a user option. 569 of their @code{variable-documentation} property. If the property exists
570 and is a string, and its first character is @samp{*}, then the variable
571 is a user option.
563 @end defun 572 @end defun
564 573
565 @kindex variable-interactive 574 @kindex variable-interactive
566 If a user option variable has a @code{variable-interactive} property, 575 If a user option variable has a @code{variable-interactive} property,
567 the @code{set-variable} command uses that value to control reading the 576 the @code{set-variable} command uses that value to control reading the