+2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * apropos.el (apropos-command): Include macros.
+
2008-03-26 Glenn Morris <rgm@gnu.org>
* calendar/cal-bahai.el: Require calendar, not cal-julian.
(setq apropos-accumulator
(apropos-internal apropos-regexp
(or var-predicate
- (if do-all 'functionp 'commandp))))
+ ;; We used to use `functionp' here, but this
+ ;; rules out macros. `fboundp' rules in
+ ;; keymaps, but it seems harmless.
+ (if do-all 'fboundp 'commandp))))
(let ((tem apropos-accumulator))
(while tem
(if (or (get (car tem) 'apropos-inhibit)
(setq symbol (car p))
(setq score (apropos-score-symbol symbol))
(unless var-predicate
- (if (functionp symbol)
+ (if (fboundp symbol)
(if (setq doc (documentation symbol t))
(progn
(setq score (+ score (apropos-score-doc doc)))