From: "Booted Cat" <yaoziyuan@gmail.com>
Subject: Re: Tabs for indentation, spaces for alignment?
Date: 6 Dec 2006 23:09:06 -0800 [thread overview]
Message-ID: <1165475346.683752.167840@f1g2000cwa.googlegroups.com> (raw)
In-Reply-To: <mailman.232.1162848625.2155.help-gnu-emacs@gnu.org>
Caught you again baby!
Anders Kaseorg wrote:
> As far as I can tell, Emacs is able to use either only spaces for
> indentation and alignment:
> block {
> ....block {
> ........some_really_long_function_name(arg,
> .......................................arg);
> or an "optimal" mixture of tabs and spaces for indentation and
> alignment:
> block {
> --->block {
> --->--->some_really_long_function_name(arg,
> --->--->--->--->--->--->--->--->--->...arg);
> which, of course, might not be so "optimal" to someone with a different
> tab width:
> block {
> ----->block {
> ----->----->some_really_long_function_name(arg,
> ----->----->----->----->----->----->----->----->----->...arg);
>
> You may prefer spaces or tabs for indentation, and that's fine, but you
> have to agree that using tabs for alignment in this way is broken. What
> I really want is to use tabs for indentation and spaces for alignment:
> block {
> --->block {
> --->--->some_really_long_function_name(arg,
> --->--->...............................arg);
> so that the indentation characters are semantically correct, and the
> layout is independent of tab width:
> block {
> ----->block {
> ----->----->some_really_long_function_name(arg,
> ----->----->...............................arg);
>
> Is there any way to get this behavior out of Emacs?
>
> Anders
next prev parent reply other threads:[~2006-12-07 7:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.232.1162848625.2155.help-gnu-emacs@gnu.org>
2006-11-07 10:10 ` Tabs for indentation, spaces for alignment? Markus Triska
2006-11-08 4:27 ` Anders Kaseorg
[not found] ` <mailman.304.1162960081.2155.help-gnu-emacs@gnu.org>
2006-11-08 14:00 ` Markus Triska
2006-11-10 7:14 ` Anders Kaseorg
2006-11-10 8:17 ` don provan
2006-12-07 7:09 ` Booted Cat [this message]
2006-12-07 7:09 ` Booted Cat
2006-11-06 20:51 Anders Kaseorg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165475346.683752.167840@f1g2000cwa.googlegroups.com \
--to=yaoziyuan@gmail.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.
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).