* Getting lisp 'with' macros to indent correctly
@ 2009-02-18 13:21 jmckitrick
2009-02-18 14:32 ` Pascal J. Bourguignon
0 siblings, 1 reply; 3+ messages in thread
From: jmckitrick @ 2009-02-18 13:21 UTC (permalink / raw)
To: help-gnu-emacs
I'm not sure if the indentation package changed, but forms like this:
(with-foo ()
(bar))
used to indent 'bar' correctly. Now the 'bar' sexp is lined up with
the arglist for 'with-foo'. This should be a simple setting, but I
can't seem to find it. Would someone point me in the right
direction? Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Getting lisp 'with' macros to indent correctly
2009-02-18 13:21 Getting lisp 'with' macros to indent correctly jmckitrick
@ 2009-02-18 14:32 ` Pascal J. Bourguignon
2009-02-18 15:56 ` jmckitrick
0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2009-02-18 14:32 UTC (permalink / raw)
To: help-gnu-emacs
jmckitrick@gmail.com writes:
> I'm not sure if the indentation package changed, but forms like this:
>
> (with-foo ()
> (bar))
>
> used to indent 'bar' correctly. Now the 'bar' sexp is lined up with
> the arglist for 'with-foo'. This should be a simple setting, but I
> can't seem to find it. Would someone point me in the right
> direction? Thanks!
Perhaps you're not in the right lisp mode?
Otherwise, you can specify what indenting to do for new macros with:
(put 'NEW-MACRO 'lisp-indent-function N)
N being the number of forms to indent "specially", in your case, it would be 1.
(put 'with-foo 'lisp-indent-function 1)
You can put these forms at the end of your sources:
;; Local Variables:
;; eval: (put 'with-foo 'lisp-indent-function 1)
;; End:
--
__Pascal Bourguignon__
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Getting lisp 'with' macros to indent correctly
2009-02-18 14:32 ` Pascal J. Bourguignon
@ 2009-02-18 15:56 ` jmckitrick
0 siblings, 0 replies; 3+ messages in thread
From: jmckitrick @ 2009-02-18 15:56 UTC (permalink / raw)
To: help-gnu-emacs
On Feb 18, 9:32 am, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Perhaps you're not in the right lisp mode?
Hmm. I'll have to do some more digging. I cleaned up my slime/lisp
editing code, and now I have this odd behavior, though once slime is
running it seems to work correctly.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-18 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-18 13:21 Getting lisp 'with' macros to indent correctly jmckitrick
2009-02-18 14:32 ` Pascal J. Bourguignon
2009-02-18 15:56 ` jmckitrick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).