From: michael@cadilhac.name (Michaël Cadilhac)
Cc: emacs-devel@gnu.org, "Kim F. Storm" <storm@cua.dk>
Subject: Re: Whitespace cleanup, tab-width and religion.
Date: Mon, 01 Jan 2007 21:24:45 +0100 [thread overview]
Message-ID: <87hcvaa41e.fsf@lrde.org> (raw)
In-Reply-To: <a4cf0b680701011055j104897a8v6388d2cf9e669112@mail.gmail.com> (Rajesh Vaidheeswarran's message of "Mon\, 1 Jan 2007 13\:55\:51 -0500")
[-- Attachment #1.1: Type: text/plain, Size: 1601 bytes --]
"Rajesh Vaidheeswarran" <rv@gnu.org> writes:
> As the author of whitespace.el, it was my intent to keep tabs at 8
> characters.
Yep, it was clear enough :-)
> People set tab-widths to whatever they please on their favorite
> editors. However, there is no way to portably move the definition of
> TAB across people and platforms, other than the value of 8 spaces.
I do agree on the point. But, again, isn't a misfeature that changing
tab-width and using whitespace.el screws up the formating (in Emacs,
only, here) ?
I mean the following. Tab-width is 2, spaces are ` ' and tabs `->'.
My document is :
int main ()
{
->printf("Hello !");
->/* Oh, I forgot the \n ! */
->if (true)
->->if (true)
->->->if (really(true))
printf("\n");
}
If I use whitespace-cleanup here, the last printf will be indented
with the first if, because the 8 spaces will be replaced with a <TAB>.
We are OK: there's no way to have consistency between editors, but
maybe this would be an improvement on the self-consistency of Emacs,
nop ?
And after all, if the user, with the help of great tools like
whitespace.el, keeps a well formated use of TABs, this would enhance
portability of these TABs (modulo their size), isn't it ?
--
| Michaël `Micha' Cadilhac | Le copillage-collage |
| Epita/LRDE Promo 2007 | tue le programmeur. |
| http://michael.cadilhac.name | -- Dictons LRDE |
`--JID: michael.cadilhac@gmail.com--' - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-01-01 20:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-20 14:11 Whitespace cleanup, tab-width and religion Michaël Cadilhac
2006-12-20 15:00 ` Kim F. Storm
2006-12-20 15:11 ` Michaël Cadilhac
2006-12-20 16:04 ` Kim F. Storm
2007-01-01 18:55 ` Rajesh Vaidheeswarran
2007-01-01 20:24 ` Michaël Cadilhac [this message]
2007-01-02 9:56 ` Kim F. Storm
2007-01-05 1:55 ` Rajesh Vaidheeswarran
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=87hcvaa41e.fsf@lrde.org \
--to=michael@cadilhac.name \
--cc=emacs-devel@gnu.org \
--cc=storm@cua.dk \
/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.