Extending APROPOS with "(macro/special/class)" descriptions. apropos-class
authorOlof-Joachim Frahm <olof@macrolet.net>
Mon, 9 Sep 2013 19:38:00 +0000 (21:38 +0200)
committerOlof-Joachim Frahm <olof@macrolet.net>
Wed, 23 Oct 2013 21:27:47 +0000 (23:27 +0200)
src/code/target-package.lisp

index 7a06e73..7e4f244 100644 (file)
@@ -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