all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: change spaces indent in text mode?
Date: Sun, 07 Feb 2010 21:14:49 -0500	[thread overview]
Message-ID: <jwvljf41nnj.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 87fx5d7tr9.fsf@lion.rapttech.com.au

> If everyone you had to work with used tabs, then it would be possible to
> realise one of the great benefits of tabs. That is, we could all have
> the amount of indent that we want, 2 spaces, 4, 8 10 whatever and it
> wouldn't matter. 

That works for indentations such as

     if (foo)
       {
         blabla
       }

where indentation is always relative to previous indentation plus or
minus some fixed number of columns (typically "one tab").

But it doesn't in cases such as

   foofunc(arg1, arg2,
           arg3, arg4)

where the indentation of the second line is aligned with a particular
place in the code, so that if you use TABs for this part, it will only
be properly indentated if you use the same TAB width as was used when
the line was originally indented.


        Stefan


  parent reply	other threads:[~2010-02-08  2:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.440.1264793480.14305.help-gnu-emacs@gnu.org>
2010-01-29 19:39 ` change spaces indent in text mode? Teemu Likonen
2010-01-29 20:50   ` Brendan Miller
2010-01-29 21:22     ` Tom Rauchenwald
2010-01-30  0:51       ` Brendan Miller
2010-01-30  1:56         ` Suvayu Ali
2010-01-29 21:30     ` Tyler Smith
     [not found]     ` <mailman.444.1264800653.14305.help-gnu-emacs@gnu.org>
2010-02-01 17:07       ` Stefan Monnier
     [not found]     ` <mailman.447.1264801240.14305.help-gnu-emacs@gnu.org>
2010-02-06  8:11       ` Jorgen Grahn
2010-02-07  0:51         ` Tim X
2010-02-07  3:31           ` Tim X
2010-02-08  2:14           ` Stefan Monnier [this message]
     [not found]   ` <mailman.443.1264798210.14305.help-gnu-emacs@gnu.org>
2010-01-30  2:39     ` Tim X
2010-01-30 21:59       ` Glauber Alex Dias Prado
     [not found]       ` <mailman.477.1264888760.14305.help-gnu-emacs@gnu.org>
2010-01-30 23:06         ` Tim X
2010-01-31  2:05   ` Suvayu Ali
     [not found]   ` <mailman.482.1264903543.14305.help-gnu-emacs@gnu.org>
2010-02-01 17:04     ` Stefan Monnier
2010-02-02  1:32       ` Suvayu Ali
2010-02-06  8:21     ` Jorgen Grahn
2010-02-07  7:23       ` Suvayu Ali
2010-01-29 19:28 Brendan Miller

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=jwvljf41nnj.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.