aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-03-26 03:31:42 +0000
committerStefan Monnier2008-03-26 03:31:42 +0000
commit554fde6ed7a93c11c587eb58679b23f93df4b8ca (patch)
tree21309c60e8ecfb8d05033ae80b958dc7d1620780
parent26f435507b4605a14493a2e38e9b0aa0f2464bc0 (diff)
downloademacs-554fde6ed7a93c11c587eb58679b23f93df4b8ca.tar.gz
emacs-554fde6ed7a93c11c587eb58679b23f93df4b8ca.zip
(apropos-command): Include macros.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/apropos.el7
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3357b5e5340..b97c37f1f9b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * apropos.el (apropos-command): Include macros.
4
12008-03-26 Glenn Morris <rgm@gnu.org> 52008-03-26 Glenn Morris <rgm@gnu.org>
2 6
3 * calendar/cal-bahai.el: Require calendar, not cal-julian. 7 * calendar/cal-bahai.el: Require calendar, not cal-julian.
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 0ca6248ea55..a2bbdce88ea 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -456,7 +456,10 @@ while a list of strings is used as a word list."
456 (setq apropos-accumulator 456 (setq apropos-accumulator
457 (apropos-internal apropos-regexp 457 (apropos-internal apropos-regexp
458 (or var-predicate 458 (or var-predicate
459 (if do-all 'functionp 'commandp)))) 459 ;; We used to use `functionp' here, but this
460 ;; rules out macros. `fboundp' rules in
461 ;; keymaps, but it seems harmless.
462 (if do-all 'fboundp 'commandp))))
460 (let ((tem apropos-accumulator)) 463 (let ((tem apropos-accumulator))
461 (while tem 464 (while tem
462 (if (or (get (car tem) 'apropos-inhibit) 465 (if (or (get (car tem) 'apropos-inhibit)
@@ -470,7 +473,7 @@ while a list of strings is used as a word list."
470 (setq symbol (car p)) 473 (setq symbol (car p))
471 (setq score (apropos-score-symbol symbol)) 474 (setq score (apropos-score-symbol symbol))
472 (unless var-predicate 475 (unless var-predicate
473 (if (functionp symbol) 476 (if (fboundp symbol)
474 (if (setq doc (documentation symbol t)) 477 (if (setq doc (documentation symbol t))
475 (progn 478 (progn
476 (setq score (+ score (apropos-score-doc doc))) 479 (setq score (+ score (apropos-score-doc doc)))