diff options
author | Chong Yidong <[email protected]> | 2012-09-25 13:33:43 +0800 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2012-09-25 13:33:43 +0800 |
commit | 863666ebae563a9a83dd8bce54227dfd6f66987d (patch) | |
tree | 7255a48e992de06961e6530fec878048bfbfb7ed /lisp/subr.el | |
parent | 59f7af816e98a74abf42d724bcfdfa9bfe9964ce (diff) |
Minor fixes for the function obsolescence feature.
* lisp/help-fns.el (help-fns--obsolete): Handle macros properly.
* lisp/subr.el (declare): Doc fix.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index e5725b3b3f..8dfe78d8c7 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -271,9 +271,14 @@ the return value (nil if RESULT is omitted). ,@(cdr (cdr spec)))))) (defmacro declare (&rest _specs) - "Do not evaluate any arguments and return nil. -Treated as a declaration when used at the right place in a -`defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)" + "Do not evaluate any arguments, and return nil. +If a `declare' form appears as the first form in the body of a +`defun' or `defmacro' form, SPECS specifies various additional +information about the function or macro; these go into effect +during the evaluation of the `defun' or `defmacro' form. + +The possible values of SPECS are specified by +`defun-declarations-alist' and `macro-declarations-alist'." ;; FIXME: edebug spec should pay attention to defun-declarations-alist. nil) )) |