unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Tabs for indentation, spaces for alignment?
@ 2006-11-06 20:51 Anders Kaseorg
  0 siblings, 0 replies; 8+ messages in thread
From: Anders Kaseorg @ 2006-11-06 20:51 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-12-07  7:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2006-12-07  7:09 ` Booted Cat
2006-11-06 20:51 Anders Kaseorg

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).