projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e6aef
)
Extending APROPOS with "(macro/special/class)" descriptions.
apropos-class
author
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 9 Sep 2013 19:38:00 +0000
(21:38 +0200)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Wed, 23 Oct 2013 21:27:47 +0000
(23:27 +0200)
src/code/target-package.lisp
patch
|
blob
|
history
diff --git
a/src/code/target-package.lisp
b/src/code/target-package.lisp
index
7a06e73
..
7e4f244
100644
(file)
--- a/
src/code/target-package.lisp
+++ b/
src/code/target-package.lisp
@@
-1554,8
+1554,15
@@
PACKAGE."
(prin1 symbol)
(when (boundp symbol)
(write-string " (bound)"))
- (when (fboundp symbol)
- (write-string " (fbound)")))
+ (cond
+ ((special-operator-p symbol)
+ (write-string " (special)"))
+ ((macro-function symbol)
+ (write-string " (macro)"))
+ ((fboundp symbol)
+ (write-string " (fbound)")))
+ (when (find-class symbol NIL)
+ (write-string " (class)")))
(defun apropos-list (string-designator
&optional