From: Lawrence Mitchell <wence@gmx.li>
Subject: Re: Incorrect indentation after :name
Date: Thu, 07 Jul 2005 22:47:48 +0100 [thread overview]
Message-ID: <?fnord?87ll4iffuj.fsf@ID-97657.user.individual.net> (raw)
In-Reply-To: DNEMKBNJBGPAOPIJOOICGEGICKAA.drew.adams@oracle.com
Drew Adams wrote:
> > (put 'if 'common-lisp-indent-function
> > '(nil nil &body))))
> This breaks the standard indentation of IF in lisp-mode buffers.
By standard, I mean the accepted way of indenting IF in common
lisp.
> I don't see that (with emacs -q). What are you seeing?
> I assume that you meant adding the above to lisp-mode-hook instead of
> emac-lisp-mode-hook, but either way I see this, which is also the vanilla
> indentation of IF in lisp-mode:
Well, (put 'if 'common-lisp-indent-function '(nil nil &body)) is
not mode-local, so it will affect indentation of IF in all modes
that use common-lisp-indent-function to indent.
Emacs lisp IF is (if TEST THEN &REST ELSE), while common lisp IF
is (if TEST THEN ELSE). The conventional mode of indenting IF in
Emacs lisp is:
(if test
then
else)
whereas in common lisp:
(if test
then
else)
(since only the one else-form is allowed). It is this latter
indentation that is affected by the above suggestion.
[...]
--
Lawrence Mitchell <wence@gmx.li>
next prev parent reply other threads:[~2005-07-07 21:47 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-03 15:59 Incorrect indentation after :name Lennart Borgman
2005-07-03 16:39 ` Juanma Barranquero
2005-07-03 16:52 ` Lennart Borgman
2005-07-03 17:16 ` Juanma Barranquero
2005-07-03 22:29 ` Drew Adams
2005-07-03 22:44 ` Juanma Barranquero
2005-07-03 17:10 ` Luc Teirlinck
2005-07-04 14:48 ` Stefan Monnier
2005-07-04 21:22 ` David Ponce
2005-07-05 0:40 ` Juanma Barranquero
2005-07-05 4:35 ` Richard M. Stallman
2005-07-05 5:21 ` Stefan Monnier
2005-07-05 7:07 ` Lars Brinkhoff
2005-07-05 19:11 ` Richard M. Stallman
2005-07-05 19:44 ` Lars Brinkhoff
2005-07-07 5:36 ` Richard M. Stallman
2005-07-07 8:25 ` Lars Brinkhoff
2005-07-08 4:35 ` Richard M. Stallman
2005-07-05 13:49 ` Drew Adams
2005-07-05 16:09 ` Paul Pogonyshev
2005-07-05 19:11 ` Richard M. Stallman
2005-07-06 0:20 ` Luc Teirlinck
2005-07-06 1:29 ` drkm
2005-07-06 1:43 ` Luc Teirlinck
2005-07-06 17:55 ` Richard M. Stallman
2005-07-06 18:30 ` David Kastrup
2005-07-07 3:09 ` Stefan Monnier
2005-07-07 17:01 ` Drew Adams
2005-07-07 17:49 ` Lawrence Mitchell
2005-07-07 18:35 ` Drew Adams
2005-07-07 21:47 ` Lawrence Mitchell [this message]
2005-07-07 22:21 ` Drew Adams
2005-07-07 18:49 ` Juanma Barranquero
2005-07-08 4:36 ` Richard M. Stallman
2005-07-11 9:29 ` Juanma Barranquero
2005-07-11 10:59 ` David Kastrup
2005-07-11 13:00 ` Juanma Barranquero
2005-07-07 21:30 ` Richard M. Stallman
2005-07-07 5:36 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='?fnord?87ll4iffuj.fsf@ID-97657.user.individual.net' \
--to=wence@gmx.li \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.