From: Xue Fuqiao Date: Mon, 23 Dec 2013 11:27:29 +0000 (+0800) Subject: Document `special-form-p' and `macrop'. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~230 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d778742a406e5d099c281943b78115768867690;p=emacs.git Document `special-form-p' and `macrop'. * doc/lispref/eval.texi (Special Forms): Document `special-form-p'. * doc/lispref/macros.texi (Simple Macro): Document `macrop'. --- 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 + * 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 diff --git a/etc/NEWS b/etc/NEWS index 3e56b49bfe5..be9f9b131bf 100644 --- 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'