Mercurial > hg > xemacs-beta
diff man/lispref/variables.texi @ 4905:755ae5b97edb
Change "special form" to "special operator" in our sources.
Add a compatible function alias, and the relevant manual index entries.
src/ChangeLog addition:
2010-01-31 Aidan Kehoe <kehoea@parhasard.net>
* symbols.c (Fspecial_operator_p, syms_of_symbols):
* eval.c (print_subr, Finteractive_p, Ffuncall)
(Ffunction_min_args, Ffunction_max_args, vars_of_eval):
* editfns.c:
* data.c (Fsubr_max_args):
* doc.c (Fbuilt_in_symbol_file):
Change "special form" to "special operator" in our sources.
man/ChangeLog addition:
2010-01-31 Aidan Kehoe <kehoea@parhasard.net>
* xemacs/programs.texi (Defuns):
* lispref/variables.texi (Local Variables, Defining Variables)
(Setting Variables, Default Value):
* lispref/symbols.texi (Definitions):
* lispref/searching.texi (Saving Match Data):
* lispref/positions.texi (Excursions, Narrowing):
* lispref/objects.texi (Primitive Function Type):
* lispref/macros.texi (Defining Macros, Backquote):
* lispref/lispref.texi (Top):
* lispref/intro.texi (A Sample Function Description):
* lispref/help.texi (Help Functions):
* lispref/functions.texi (What Is a Function, Simple Lambda)
(Defining Functions, Calling Functions, Anonymous Functions):
* lispref/frames.texi (Input Focus):
* lispref/eval.texi (Forms, Function Indirection)
(Special Operators, Quoting):
* lispref/edebug-inc.texi (Instrumenting)
(Specification Examples):
* lispref/debugging.texi (Internals of Debugger):
* lispref/control.texi (Control Structures, Sequencing):
(Conditionals, Combining Conditions, Iteration):
(Catch and Throw, Handling Errors):
* lispref/commands.texi (Defining Commands, Using Interactive):
Terminology change; special operator -> special form.
Don't attempt to change this in texinfo.texi or cl.texi, which use
macros I don't understand.
* lispref/macros.texi (Defining Macros): Give an anonymous macro
example here.
* lispref/positions.texi (Excursions):
Correct some documentation that called a couple of macros special
forms.
* lispref/searching.texi (Saving Match Data):
Drop some documentation of how to write code that works with Emacs
18.
* lispref/specifiers.texi (Adding Specifications):
Correct this; #'let-specifier is a macro, not a special operator.
* lispref/windows.texi (Window Configurations)
(Selecting Windows):
Correct this, #'save-selected-window and #'save-window-excursion
are macros, not special operators.
lisp/ChangeLog addition:
2010-01-31 Aidan Kehoe <kehoea@parhasard.net>
* obsolete.el:
* loadhist.el (symbol-file):
* help.el (describe-function-1):
* bytecomp.el: (byte-compile-save-current-buffer):
* byte-optimize.el (byte-optimize-form-code-walker):
* subr.el (subr-arity):
Change "special form" to "special operator" in these files, it's
the more logical term.
* subr.el (special-form-p): Provide this alias for
#'special-operator-p.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 31 Jan 2010 20:28:01 +0000 |
parents | 57db42ba54fb |
children | 62b9ef1ed4ac |
line wrap: on
line diff
--- a/man/lispref/variables.texi Sun Jan 31 18:09:57 2010 +0000 +++ b/man/lispref/variables.texi Sun Jan 31 20:28:01 2010 +0000 @@ -128,7 +128,7 @@ For example, when a function is called, its argument variables receive new local values that last until the function exits. The @code{let} -special form explicitly establishes new local values for specified +special operator explicitly establishes new local values for specified variables; these last until exit from the @code{let} form. @cindex shadowing of variables @@ -144,7 +144,7 @@ speak of a @dfn{local binding} of the variable as well as a local value. The local binding is a conceptual place that holds a local value. -Entry to a function, or a special form such as @code{let}, creates the +Entry to a function, or a special operator such as @code{let}, creates the local binding; exit from the function or from the @code{let} removes the local binding. As long as the local binding lasts, the variable's value is stored within it. Use of @code{setq} or @code{set} while there is a @@ -165,11 +165,11 @@ Ordinary evaluation of a symbol always returns the value of its current binding. - The special forms @code{let} and @code{let*} exist to create + The special operators @code{let} and @code{let*} exist to create local bindings. @defspec let (bindings@dots{}) forms@dots{} -This special form binds variables according to @var{bindings} and then +This special operator binds variables according to @var{bindings} and then evaluates all of the @var{forms} in textual order. The @code{let}-form returns the value of the last form in @var{forms}. @@ -199,7 +199,7 @@ @end defspec @defspec let* (bindings@dots{}) forms@dots{} -This special form is like @code{let}, but it binds each variable right +This special operator is like @code{let}, but it binds each variable right after computing its local value, before computing the local value for the next variable. Therefore, an expression in @var{bindings} can reasonably refer to the preceding symbols bound in this @code{let*} @@ -376,7 +376,7 @@ @cindex variable definition You may announce your intention to use a symbol as a global variable -with a @dfn{variable definition}: a special form, either @code{defconst} +with a @dfn{variable definition}: a special operator, either @code{defconst} or @code{defvar}. In XEmacs Lisp, definitions serve three purposes. First, they inform @@ -404,7 +404,7 @@ this reason, user options must be defined with @code{defvar}. @defspec defvar symbol [value [doc-string]] -This special form defines @var{symbol} as a value and initializes it. +This special operator defines @var{symbol} as a value and initializes it. The definition informs a person reading your code that @var{symbol} is used as a variable that programs are likely to set or change. It is also used for all user option variables except in the preloaded parts of @@ -475,7 +475,7 @@ @end group @end example -Here is an equivalent expression for the @code{defvar} special form: +Here is an equivalent expression for the @code{defvar} special operator: @example @group @@ -494,7 +494,7 @@ @end defspec @defspec defconst symbol [value [doc-string]] -This special form defines @var{symbol} as a value and initializes it. +This special operator defines @var{symbol} as a value and initializes it. It informs a person reading your code that @var{symbol} has a global value, established here, that will not normally be changed or locally bound by the execution of the program. The user, however, may be @@ -553,7 +553,7 @@ @strong{Warning:} If the @code{defconst} and @code{defvar} special forms are used while the variable has a local binding, they set the local binding's value; the global binding is not changed. This is not -what we really want. To prevent it, use these special forms at top +what we really want. To prevent it, use these special operators at top level in a file, where normally no local binding is in effect, and make sure to load the file before making a local binding for the variable. @@ -616,7 +616,7 @@ run time, use the function @code{set}. @defspec setq [symbol form]@dots{} -This special form is the most common method of changing a variable's +This special operator is the most common method of changing a variable's value. Each @var{symbol} is given a new value, which is the result of evaluating the corresponding @var{form}. The most-local existing binding of the symbol is changed. @@ -1232,7 +1232,7 @@ this variable. @c Emacs 19 feature - The special forms @code{defvar} and @code{defconst} also set the + The special operators @code{defvar} and @code{defconst} also set the default value (if they set the variable at all), rather than any local value.