diff options
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/apropos.el | 7 |
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 @@ | |||
| 1 | 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * apropos.el (apropos-command): Include macros. | ||
| 4 | |||
| 1 | 2008-03-26 Glenn Morris <rgm@gnu.org> | 5 | 2008-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))) |