|
34 | 34 | (in-package #:system) |
35 | 35 |
|
36 | 36 |
|
37 | | -(defun apropos-list (string-designator &optional package-designator |
38 | | - external-only) |
| 37 | +(defun apropos-list (string-designator |
| 38 | + &optional package-designator external-only) |
| 39 | + "Return the list of all symbols matching STRING-DESIGNATOR |
| 40 | +
|
| 41 | +If the optional PACKAGE-DESIGNATOR is specified, restrict the match to |
| 42 | +symbols within the designated package. |
| 43 | +
|
| 44 | +As an extension to ANSI, an optional true generalized boolean |
| 45 | +EXTERNAL-ONLY further restricts the results to symbols which are |
| 46 | +external to the package matching PACKAGE-DESIGNATOR." |
39 | 47 | (if package-designator |
40 | 48 | (let ((package (find-package package-designator)) |
41 | 49 | (string (string string-designator)) |
|
54 | 62 | (apropos-list string-designator package external-only)) |
55 | 63 | (list-all-packages)))) |
56 | 64 |
|
57 | | -(defun apropos (string-designator &optional package-designator external-only) |
58 | | - (dolist (symbol (remove-duplicates (apropos-list string-designator |
59 | | - package-designator |
60 | | - external-only))) |
| 65 | +(defun apropos (string-designator |
| 66 | + &optional package-designator external-only) |
| 67 | + "Print the name of all symbols matching STRING-DESIGNATOR to the standard output |
| 68 | +
|
| 69 | +If the optional PACKAGE-DESIGNATOR is specified, restrict the match to |
| 70 | +symbols within the designated package. |
| 71 | +
|
| 72 | +As an extension to ANSI, an optional true generalized boolean |
| 73 | +EXTERNAL-ONLY further restricts the results to symbols which are |
| 74 | +external to the package matching PACKAGE-DESIGNATOR." |
| 75 | + |
| 76 | + (dolist (symbol (remove-duplicates (%apropos-list string-designator |
| 77 | + package-designator |
| 78 | + external-only |
| 79 | + nil))) |
61 | 80 | (fresh-line) |
62 | 81 | (prin1 symbol) |
63 | 82 | (when (boundp symbol) |
|
0 commit comments