[slime-devel] [patch] a way to specify custom Emacs indentation right in the Lisp source

Larry D'Anna smoof-ra at elder-gods.org
Sat Aug 25 22:50:35 UTC 2007


* Matthias Koeppe (mkoeppe+slime at mail.math.uni-magdeburg.de) [070825 14:56]:
> Michael Livshin <gmane at cmm.kakpryg.net> writes:
> 
> > the attached patch adds a way to define and access custom indentation
> > specifications like this:
> >
> > <example>
> > (defmacro my-macro (name (&rest args) &body function-bindings)
> >   ...)
> >
> > #+swank
> > (setf (swank:emacs-indentation 'my-macro)
> >       '(6 4 (&whole 2 &rest (&whole 1 &lambda &body))))
> > </example>
> 
> I am also interested in a feature like this.
> 
> In my opinion, an important consideration in implementing it is that
> FASL files generated within SLIME should still be loadable into
> non-SWANK images.

I have also wished for a feature like this on several occasions.  I think it
would be useful for a lot of people if something like it were included in slime.

  --larry



More information about the slime-devel mailing list