
Hi, I'm new here .. :) I'm using slime-cvs on Gentoo: (defun test () <tab> ..indent works ok, but doing this: (defun test () <tab>" (" <tab> <-- no indent here! Hope this makes sense! -- mvh, Lars Rune Nøstdal http://nostdal.org/~lars/

On Fri, 14 Jan 2005 00:39:44 +0000 (UTC), Lars Rune Nøstdal <larsnostdal@gmail.com> wrote:
Hi, I'm new here .. :)
Welcome!
I'm using slime-cvs on Gentoo:
(defun test () <tab>
..indent works ok, but doing this:
(defun test () <tab>" (" <tab> <-- no indent here!
Hope this makes sense!
That's not a SLIME problem but an Emacs problem. Emacs treats every line starting with an open parenthesis as the beginning of a defun (for performance reasons). You can customize this by setting the variable `open-paren-in-column-0-is-defun-start' (check its documentation with C-h v) but the usual workaround is to escape every open parentheses within a string with a backslash: (defun test () <tab>" \(" <tab> As you'll know the backslash won't be a part of the documentation string in this case - it is solely there to appease Emacs. HTH, Edi.
participants (2)
-
Edi Weitz
-
Lars Rune Nøstdal