[slime-devel] Autodoc and partial forms

Ariel Badichi abadichi at bezeqint.net
Sat Sep 15 02:27:39 UTC 2007


Hello,

The autodoc feature is broken for partial forms that are succeeded by
top-level forms.  For example, if the buffer contains the following
text -

(defun

(defun foo (x) (+ x 1))

- and point is after the first defun and before the beginning of the
second defun, no autodoc string will appear in the minibuffer.

The reason for this, essentially, is that slime-inside-string-p calls
slime-region-for-defun-at-point, which calls end-of-defun, which
signals an error.  slime-inside-string-p only needs the position of
the beginning of the defun from slime-region-for-defun-at-point.  I
chose to fix it, however, by changing what the latter does.  If the
end position cannot be determined, nil will be used in its place.

Patch is attached.

Ariel

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070915/d02844ea/attachment.ksh>


More information about the slime-devel mailing list