[slime-devel] Re: slime-complete-form + paredit

Mac Chan emailmac at gmail.com
Sat May 5 03:57:37 UTC 2007


Hi,

Here's a very simple patch for the issue that I mentioned earlier.

Regards,
-- Mac

--- slime/slime.el      2007-04-16 07:42:33.000000000 -0700
+++ slime.el    2007-05-04 18:50:12.000000000 -0700
@@ -5659,7 +5659,8 @@
           (progn
             (just-one-space)
             (save-excursion
-              (insert result))
+              ;; if paredit-mode is enabled, do not insert the trailing `)'
+              (insert (if paredit-mode (substring result 0 -1) result)))
             (save-excursion
               (backward-up-list 1)
               (indent-sexp)))))))


On 4/27/07, Mac Chan <emailmac at gmail.com> wrote:
> I use slime-complete-form a lot. However, like many who uses slime, I
> also have paredit-mode enabled.
>
> Is there a way to instruct slime-complete-form not to insert extra
> close parenthesis at the end?
>
> (with-open-file _)
>
> =>
>
> C-c C-s slime-complete-form
>
> =>
>
> (with-open-file _(stream filespec :direction direction :element-type
> element-type
>                         :if-exists if-exists :if-does-not-exist
> if-does-not-exist
>                         :external-format external-format)
>   body...)) ;; <-- extra )
>
> Thanks,
> -- Mac
>



More information about the slime-devel mailing list