]> code.delx.au - gnu-emacs/commitdiff
Document `special-form-p' and `macrop'.
authorXue Fuqiao <xfq.free@gmail.com>
Mon, 23 Dec 2013 11:27:29 +0000 (19:27 +0800)
committerXue Fuqiao <xfq.free@gmail.com>
Mon, 23 Dec 2013 11:27:29 +0000 (19:27 +0800)
* doc/lispref/eval.texi (Special Forms): Document `special-form-p'.

* doc/lispref/macros.texi (Simple Macro): Document `macrop'.

doc/lispref/ChangeLog
doc/lispref/eval.texi
doc/lispref/macros.texi
etc/NEWS

index 6fd0f6a271b99c773411a4858be9b81731fa613d..bee08a59072d14afc4628e391b89aff30321d89d 100644 (file)
@@ -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'.
index 1139331f0ef5e1385b4fbe65bd6d3245a8fbb94b..df30b909cbde3c1cf3399a121b9b0070a38284e3 100644 (file)
@@ -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.
 
index a2526f383aa1c9c7c3eeddf45689a4882d4601f2..53751b0377468a207dcc508be49340bac3395d0f 100644 (file)
@@ -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
index 3e56b49bfe5f25057ef064a07d19aae956d96ea2..be9f9b131bfb6414f4ea04299bbc3fac42e72573 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1012,11 +1012,11 @@ platforms, and nobody seems to have noticed or cared.
 PRESERVE-EXTENDED-ATTRIBUTES as it now handles both SELinux context
 and ACL entries.
 
++++
 *** The function `file-ownership-preserved-p' now has an optional
 argument GROUP which causes it check for file group too.  This can be
 used in place of the 9th element of `file-attributes'.
 
-
 *** The function `set-visited-file-modtime' now accepts a 0 or -1
 argument, with the same interpretation as the returned value of
 `visited-file-modtime'.
@@ -1042,6 +1042,7 @@ Its third arg now accepts values specifying exactly which face spec to
 set (defface, custom, or user spec), and it directly sets the relevant
 property using the supplied face spec.
 
++++
 *** New function `add-face-text-property', which can be used to
 conveniently prepend/append new face properties.
 
@@ -1051,6 +1052,7 @@ rather than inheriting from it (as do face specs set via Customize).
 *** New face characteristic (supports :underline (:style wave))
 specifies whether or not the terminal can display a wavy line.
 
++++
 *** New face spec attribute :distant-foreground
 specifies foreground to use if background color is near the foreground
 color that would otherwise have been used.
@@ -1125,6 +1127,7 @@ These attributes are only meaningful for coding-systems of type
 
 ** `time-to-seconds' is not obsolete any more.
 
++++
 ** New functions `special-form-p' and `macrop'.
 
 ** Docstrings can be made dynamic by adding a `dynamic-docstring-function'