summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorXue Fuqiao <xfq.free@gmail.com>2013-12-23 19:27:29 +0800
committerXue Fuqiao <xfq.free@gmail.com>2013-12-23 19:27:29 +0800
commit2d778742a406e5d099c281943b78115768867690 (patch)
tree436b7409c2c8e38529ba64beb3d181bd09efa946 /doc/lispref
parent882b0b86e634c7677ee2829c607affe7385c758a (diff)
downloademacs-2d778742a406e5d099c281943b78115768867690.tar.gz
Document `special-form-p' and `macrop'.
* doc/lispref/eval.texi (Special Forms): Document `special-form-p'. * doc/lispref/macros.texi (Simple Macro): Document `macrop'.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/eval.texi5
-rw-r--r--doc/lispref/macros.texi5
3 files changed, 14 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 6fd0f6a271b..bee08a59072 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,9 @@
2013-12-23 Xue Fuqiao <xfq.free@gmail.com>
+ * eval.texi (Special Forms): Document `special-form-p'.
+
+ * macros.texi (Simple Macro): Document `macrop'.
+
* files.texi (Changing Files): Fix an argument of `copy-file'.
* strings.texi (Creating Strings): Document TRIM in `split-string'.
diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi
index 1139331f0ef..df30b909cbd 100644
--- a/doc/lispref/eval.texi
+++ b/doc/lispref/eval.texi
@@ -440,6 +440,11 @@ begins with @code{lambda} but is not a well-formed @code{lambda}
expression, so Emacs may signal an error, or may return 3 or 4 or
@code{nil}, or may behave in other ways.
+@defun special-form-p object
+This predicate tests whether its argument is a special form, and
+returns @code{t} if so, @code{nil} otherwise.
+@end defun
+
Here is a list, in alphabetical order, of all of the special forms in
Emacs Lisp with a reference to where each is described.
diff --git a/doc/lispref/macros.texi b/doc/lispref/macros.texi
index a2526f383aa..53751b03774 100644
--- a/doc/lispref/macros.texi
+++ b/doc/lispref/macros.texi
@@ -55,6 +55,11 @@ expansion, which is @code{(setq x (1+ x))}. Once the macro definition
returns this expansion, Lisp proceeds to evaluate it, thus incrementing
@code{x}.
+@defun macrop object
+This predicate tests whether its argument is a macro, and returns
+@code{t} if so, @code{nil} otherwise.
+@end defun
+
@node Expansion
@section Expansion of a Macro Call
@cindex expansion of macros