X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Finfo-functions.lisp;h=e67f1a2b083cb3526307c0dd7ca883564d345e58;hb=95591ed483dbb8c0846c129953acac1554f28809;hp=386441add59bf4721796e44c65723ea7ffcd9d80;hpb=f181ad9ffeeadf341b6a16c3591eadf0c1e3fa61;p=sbcl.git diff --git a/src/compiler/info-functions.lisp b/src/compiler/info-functions.lisp index 386441a..e67f1a2 100644 --- a/src/compiler/info-functions.lisp +++ b/src/compiler/info-functions.lisp @@ -226,11 +226,13 @@ return NIL. Can be set with SETF when ENV is NIL." (variable (typecase x (symbol (values (info :variable :documentation x))))) + ;; FUNCTION is not used at the momemnt, just here for symmetry. (function (cond ((functionp x) (%fun-doc x)) - ((legal-fun-name-p x) - (%fun-doc (fdefinition x))))) + ((and (legal-fun-name-p x) (fboundp x)) + (%fun-doc (or (and (symbolp x) (macro-function x)) + (fdefinition x)))))) (structure (typecase x (symbol (cond