diff options
| author | Richard M. Stallman | 1997-12-21 01:46:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-12-21 01:46:14 +0000 |
| commit | dea22c45247ed4c31ed518898fd22bc053606fbf (patch) | |
| tree | 02db46647dec1b6cece55eef1d5b5783e7894f47 | |
| parent | 6c95fd390b43fe8bc9635cc332e9f00547e780ca (diff) | |
| download | emacs-dea22c45247ed4c31ed518898fd22bc053606fbf.tar.gz emacs-dea22c45247ed4c31ed518898fd22bc053606fbf.zip | |
(apropos, apropos-command): Ignore symbols that have apropos-inhibit property.
| -rw-r--r-- | lisp/apropos.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el index 3c5bdb52e1a..525be1d2c5c 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -169,6 +169,11 @@ variables. If JUST-VARS is non-nil, show only variables." | |||
| 169 | (user-variable-p symbol))) | 169 | (user-variable-p symbol))) |
| 170 | (if just-vars 'user-variable-p | 170 | (if just-vars 'user-variable-p |
| 171 | 'commandp)))) | 171 | 'commandp)))) |
| 172 | (let ((tem apropos-accumulator)) | ||
| 173 | (while tem | ||
| 174 | (if (get (car tem) 'apropos-inhibit) | ||
| 175 | (setq apropos-accumulator (delq (car tem) apropos-accumulator))) | ||
| 176 | (setq tem (cdr tem)))) | ||
| 172 | (if (apropos-print | 177 | (if (apropos-print |
| 173 | t | 178 | t |
| 174 | (lambda (p) | 179 | (lambda (p) |
| @@ -208,6 +213,11 @@ Returns list of symbols and documentation found." | |||
| 208 | (boundp symbol) | 213 | (boundp symbol) |
| 209 | (facep symbol) | 214 | (facep symbol) |
| 210 | (symbol-plist symbol)))))) | 215 | (symbol-plist symbol)))))) |
| 216 | (let ((tem apropos-accumulator)) | ||
| 217 | (while tem | ||
| 218 | (if (get (car tem) 'apropos-inhibit) | ||
| 219 | (setq apropos-accumulator (delq (car tem) apropos-accumulator))) | ||
| 220 | (setq tem (cdr tem)))) | ||
| 211 | (apropos-print | 221 | (apropos-print |
| 212 | (or do-all apropos-do-all) | 222 | (or do-all apropos-do-all) |
| 213 | (lambda (p) | 223 | (lambda (p) |