[slime-devel] Re: I need a direct replacement for 'slime-close-parens-at-point
Frank Goenninger
frgo at mac.com
Mon Aug 27 19:38:14 UTC 2007
Hi Tobias
thanks for coming back quickly. I tried to resurrect it by un-
commenting it - no luck:
"Wrong type argument: number-or-marker-p, nil"
As the definition is
(defun slime-close-parens-at-point ()
"Close parenthesis at point to complete the top-level-form. Simply
inserts ')' characters at point until `beginning-of-defun' and
`end-of-defun' execute without errors, or `slime-close-parens-limit'
is exceeded."
(interactive)
(loop for i from 1 to slime-close-parens-limit
until (save-excursion
(slime-beginning-of-defun)
(ignore-errors (slime-end-of-defun) t))
do (insert ")")))
I guess (wild guessing here, really) it's slime-close-parens-limit
that is not set... or?
Thanks again for helping me out... Or are there other alternatives
using paredit.el and/or slime functionality?
Cheers
Frank
Am 27.08.2007 um 21:25 schrieb Tobias C. Rittweiler:
> Frank Goenninger <frgo at mac.com> writes:
>
>> As slime-close-parens-at-point is now deprecated I am in search for a
>> direct replacement. I had that function bound to ")" so the exact
>> number of right parentheses got inserted at point.
>
> Removing it was a mistake by me. (Sorry!) Some older REPL changes
> rendered it malfunctioning on the REPL, and I mistakenly thought
> `slime-close-all-parens-in-sexp' would do exactly the same, so I threw
> it out.
>
> I haven't had time to look at this issue again, so I haven't
> resurrected
> it so far.
>
> The function is still in the source base, just commented out. You can
> simply put the source into your .emacs for now.
>
> -T.
>
> _______________________________________________
> slime-devel site list
> slime-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/slime-devel
More information about the slime-devel
mailing list