From: Eli Zaretskii <eliz@gnu.org>
To: Karl Fogel <kfogel@red-bean.com>
Cc: emacs-devel@gnu.org
Subject: Re: tabs v spaces in Emacs's source files
Date: Sat, 08 Mar 2008 14:58:28 +0200 [thread overview]
Message-ID: <u63vxxthn.fsf@gnu.org> (raw)
In-Reply-To: <8763vympbr.fsf@red-bean.com> (message from Karl Fogel on Fri, 07 Mar 2008 12:11:36 -0500)
> From: Karl Fogel <kfogel@red-bean.com>
> Date: Fri, 07 Mar 2008 12:11:36 -0500
> Cc: emacs-devel@gnu.org
>
> "Juanma Barranquero" <lekktu@gmail.com> writes:
> > But anyway, the point is that there's a lot of code using spaces. If
> > there's a real interest in using only tabs, I'd suggest start adding
> > indent-tabs-mode cookies to local variables sections.
>
> I very much prefer spaces, because they're diff-safe (for example, in
> commit emails).
Whatever people prefer, we should IMO use a consistent indentation
rules in Emacs. Personally, I prefer the Emacs defaults, but if the
head maintainers prefer a different scheme, I will not object.
In any case, the current situation of inconsistent use of spaces and
TABs is IMO much worse than any of the consistent alternatives.
AFAIU, the GNU Coding Standards call for consistency wrt issues of
style:
The rest of this section gives our recommendations for other aspects
of C formatting style, which is also the default style of the `indent'
program in version 1.2 and newer. It corresponds to the options
-nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2
-ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -psl -nsc -nsob
We don't think of these recommendations as requirements, because it
causes no problems for users if two different programs have different
formatting styles.
But whatever style you use, please use it consistently, since a
mixture of styles within one program tends to look ugly. If you are
contributing changes to an existing program, please follow the style of
that program.
next prev parent reply other threads:[~2008-03-08 12:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-07 4:33 tabs v spaces in Emacs's source files Glenn Morris
2008-03-07 4:44 ` Miles Bader
2008-03-07 10:19 ` Andreas Schwab
2008-03-07 11:18 ` Juanma Barranquero
2008-03-07 12:28 ` Pete Forman
2008-03-07 14:56 ` Juanma Barranquero
2008-03-07 15:02 ` Johan Bockgård
2008-03-07 15:10 ` Juanma Barranquero
2008-03-07 17:11 ` Karl Fogel
2008-03-08 0:38 ` Juanma Barranquero
2008-03-08 12:58 ` Eli Zaretskii [this message]
2008-03-08 20:52 ` Stefan Monnier
2008-03-08 21:13 ` Bill Wohler
2008-03-08 23:56 ` Miles Bader
2008-03-09 16:39 ` Richard Stallman
2008-03-07 17:21 ` Drew Adams
2008-03-08 13:00 ` Eli Zaretskii
2008-03-08 23:19 ` Drew Adams
2008-03-09 2:40 ` Stefan Monnier
2008-03-08 17:40 ` Richard 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=u63vxxthn.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=kfogel@red-bean.com \
/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.