Paste number 151403: autodoc inline documentation

Paste number 151403: autodoc inline documentation
Pasted by: phf
When:9 years, 8 months ago
Share:Tweet this! | http://paste.lisp.org/+38TN
Channel:None
Paste contents:
Raw Source | XML | Display As
--- contrib/swank-arglists.lisp~orig	2015-07-11 22:34:57.000000000 -0400
+++ contrib/swank-arglists.lisp	2015-07-11 22:32:20.000000000 -0400
@@ -1154,13 +1154,21 @@
               (t
                (list
                 (with-available-arglist (arglist) arglist
-                  (decoded-arglist-to-string
-                   arglist
-                   :print-right-margin print-right-margin
-                   :operator (car form)
-                   :highlight (form-path-to-arglist-path form-path
-                                                         form
-                                                         arglist)))
+                  (with-output-to-string (output)
+                    (write-string
+                     (decoded-arglist-to-string
+                      arglist
+                      :print-right-margin print-right-margin
+                      :operator (car form)
+                      :highlight (form-path-to-arglist-path form-path
+                                                            form
+                                                            arglist))
+                     output)
+                    (let ((fdoc (documentation (car form) 'function)))
+                      (when fdoc
+                        (terpri output)
+                        (terpri output)
+                        (write-string fdoc output)))))
                 t)))))))
 
 (defun boundp-and-interesting (symbol)

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.