Mercurial > hg > xemacs-beta
comparison man/lispref/symbols.texi @ 2492:6780963faf78
[xemacs-hg @ 2005-01-21 09:43:09 by aidan]
Rename "functions" node to "functions and commands," move the definition of
a command further up the list of types of functions, give information on a
trivial (interactive) declaration, and cross-reference to the key binding
detail. Cf. 87vf9wgd08.fsf@tleepslib.sk.tsukuba.ac.jp (comp.emacs.xemacs,
2005-01-18).
author | aidan |
---|---|
date | Fri, 21 Jan 2005 09:43:12 +0000 |
parents | 1ccc32a20af4 |
children | 755ae5b97edb |
comparison
equal
deleted
inserted
replaced
2491:876c400e58d7 | 2492:6780963faf78 |
---|---|
9 | 9 |
10 A @dfn{symbol} is an object with a unique name. This chapter | 10 A @dfn{symbol} is an object with a unique name. This chapter |
11 describes symbols, their components, their property lists, and how they | 11 describes symbols, their components, their property lists, and how they |
12 are created and interned. Separate chapters describe the use of symbols | 12 are created and interned. Separate chapters describe the use of symbols |
13 as variables and as function names; see @ref{Variables}, and | 13 as variables and as function names; see @ref{Variables}, and |
14 @ref{Functions}. For the precise read syntax for symbols, see | 14 @ref{Functions and Commands}. For the precise read syntax for symbols, |
15 @ref{Symbol Type}. | 15 see @ref{Symbol Type}. |
16 | 16 |
17 You can test whether an arbitrary Lisp object is a symbol | 17 You can test whether an arbitrary Lisp object is a symbol |
18 with @code{symbolp}: | 18 with @code{symbolp}: |
19 | 19 |
20 @defun symbolp object | 20 @defun symbolp object |
152 lambda expression thus becomes the function definition of the symbol. | 152 lambda expression thus becomes the function definition of the symbol. |
153 (The term ``function definition'', meaning the contents of the function | 153 (The term ``function definition'', meaning the contents of the function |
154 cell, is derived from the idea that @code{defun} gives the symbol its | 154 cell, is derived from the idea that @code{defun} gives the symbol its |
155 definition as a function.) @code{defsubst}, @code{define-function} and | 155 definition as a function.) @code{defsubst}, @code{define-function} and |
156 @code{defalias} are other ways of defining a function. | 156 @code{defalias} are other ways of defining a function. |
157 @xref{Functions}. | 157 @xref{Functions and Commands}. |
158 | 158 |
159 @code{defmacro} defines a symbol as a macro. It creates a macro | 159 @code{defmacro} defines a symbol as a macro. It creates a macro |
160 object and stores it in the function cell of the symbol. Note that a | 160 object and stores it in the function cell of the symbol. Note that a |
161 given symbol can be a macro or a function, but not both at once, because | 161 given symbol can be a macro or a function, but not both at once, because |
162 both macro and function definitions are kept in the function cell, and | 162 both macro and function definitions are kept in the function cell, and |