From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Weird Tabbing Effects
Date: Wed, 02 Apr 2008 11:49:21 +0200 [thread overview]
Message-ID: <87d4p8oace.fsf@member.fsf.org> (raw)
In-Reply-To: B001C9A4-97DB-4AC9-9B53-B9B17DE65FD9@Web.DE
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>> Is there any way I can fix these files so that they're viewable in
>> other editors? Also, what caused this problem?
>
> Just make sure that all programmes use the same tab width! This value
> can be set on mechanical typewriter machines as well as in
> applications. Well, there is also a side-effect with fonts:
> proportional fonts can make problems.
Additionally, emacs by default indents with tabs and spaces. A tab is 8
chars wide, and if a line should be indented by 10 chars, vanilla emacs
will insert one tab ant two spaces.
Most editors use only tabs or only spaces, and when the tab-width isn't
8 the files you wrote in emacs look weired.
One way to get along with that is to open the files with emacs and do
M-x customize-option RET indent-tabs-mode
and set it to off (nil). Then save the files again, and all tabs will
be converted to spaces.
I prefer indenting with spaces, but others milages may vary.
HTH,
Tassilo
--
Chuck Norris describes human beings as "a sociable holder for blood and guts".
next prev parent reply other threads:[~2008-04-02 9:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 19:43 Weird Tabbing Effects Roman E
2008-04-02 9:06 ` Peter Dyballa
2008-04-02 9:49 ` Tassilo Horn [this message]
2008-04-02 9:13 ` Anders Wirzenius
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=87d4p8oace.fsf@member.fsf.org \
--to=tassilo@member.fsf.org \
--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.
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).