Scott L. Burson wrote:
On Thu, Sep 9, 2010 at 8:26 AM, Daniel Weinreb dlw@itasoftware.com wrote:
One of the very first things you want when you start writing macros is for auto-indentation to do the right thing. The IDE can't just know this for a macro.
Huh. I always thought Zmacs did an adequate job of this. Just know what &BODY means and give me COM-INDENT-DIFFERENTLY for special cases, and I'm pretty happy.
Yes, Zmacs knew about &rest, as does our stuff at ITA. That automatically notes that the symbol name is of the form (a b c ... . rest), usually just (a .rest).
(Dan will of course know what I'm referring to, but for everyone else, the Zmacs command COM-INDENT-DIFFERENTLY -- bound to C-Tab, if memory serves -- could be used to manually cycle through a series of alternate indentation points for the current line.
Oh, I forgot about that one! I probably didn't write it. There are a few gems in the Symbolics code that would be nice to extract.
I'm not aware of an equivalent command having been implemented for GNU Emacs.)
-- Scott