[slime-devel] Re: Indenting macro bodies

Ivan Toshkov ivan at toshkov.org
Thu Oct 7 06:45:32 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 07 October 2004 03:16, Peter Seibel wrote:
[cut]
> Not that I have a lot of free time at the moment to actually do it but
> how would folks feel about forking the cl-indent.el from emacs into
> SLIME so we can hack on it without having to deal with getting the
> "official" version that comes with Emacs patched. (I've submitted a
> couple patches to cl-indent.el to the GNU emacs maintainers. One went
> in; the other disappeared into a black hole.) This would also probably
> improve the portability of user experience for SLIME users who switch
> between GNU Emacs and Xemacs. (I have no idea if that's currently a
> problem.)
>
> -Peter
>
> [Helmut, sorry for the dup. I'm not subscribed so this didn't go to
> the list.]

I vote for it.  I'd like to have some way to tell emacs how to indent the 
macro from the macro definition.  Don't know if this is possible and probably 
it won't be portable but one can dream, right?

Generally, I think putting meta info in comments is a poor practice, and am 
sure in Common Lisp there are better ways, but currently I can think of two 
alternatives:

 1. Put the meta info in a property.

 2. Use something like:
#+slime-indent (slime-set-macro-indentation 'macro 'info)

I don't know the SLIME internals, so I guess I'm missing an easier and better 
way to do this.

- --
Ivan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBZOYQuUkHlsKSHdcRAlajAJ4rG16SFXOhQ/y8rxwcQ6Tn1ODGAACgp1/j
Z3W+74RMqOf722pGWO5QawY=
=nALE
-----END PGP SIGNATURE-----




More information about the slime-devel mailing list