* Weird Tabbing Effects
@ 2008-04-01 19:43 Roman E
2008-04-02 9:06 ` Peter Dyballa
2008-04-02 9:13 ` Anders Wirzenius
0 siblings, 2 replies; 4+ messages in thread
From: Roman E @ 2008-04-01 19:43 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I'm a bit of an emacs novice, but I was recently converted to textmate.
However, when I look at my code (that was written using emacs) with
textmate (or any other editing program for that matter) the tabbing
shows up funky. Sometimes there are less tabs then show up in emacs.
Is there any way I can fix these files so that they're viewable in other
editors? Also, what caused this problem?
Thanks!
-Roman
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Weird Tabbing Effects
2008-04-01 19:43 Weird Tabbing Effects Roman E
@ 2008-04-02 9:06 ` Peter Dyballa
2008-04-02 9:49 ` Tassilo Horn
2008-04-02 9:13 ` Anders Wirzenius
1 sibling, 1 reply; 4+ messages in thread
From: Peter Dyballa @ 2008-04-02 9:06 UTC (permalink / raw)
To: Roman E; +Cc: help-gnu-emacs
Am 01.04.2008 um 21:43 schrieb Roman E:
> 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.
--
Greetings
Pete
Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?
– Dan Jacobson, on comp.os.linux.advocacy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Weird Tabbing Effects
2008-04-01 19:43 Weird Tabbing Effects Roman E
2008-04-02 9:06 ` Peter Dyballa
@ 2008-04-02 9:13 ` Anders Wirzenius
1 sibling, 0 replies; 4+ messages in thread
From: Anders Wirzenius @ 2008-04-02 9:13 UTC (permalink / raw)
To: help-gnu-emacs
Roman E <re@just.ask.me.com> writes:
> Hi all,
>
> I'm a bit of an emacs novice, but I was recently converted to
> textmate. However, when I look at my code (that was written using
> emacs) with textmate (or any other editing program for that matter)
> the tabbing shows up funky. Sometimes there are less tabs then show up
> in emacs.
>
> Is there any way I can fix these files so that they're viewable in
> other editors? Also, what caused this problem?
>
> Thanks!
>
> -Roman
Maybe there is a mix of tabs and spaces?
Tabs are displayed according to terminal settings and if they are
different in the editors, tabs are displayed differently.
Have a look at variable indent-tabs-mode in Emacs (c-h v
indent-tabs-mode).
Look for tabs in the file and see if some of the tabs have been
replaved by spaces (c-s c-q c-i c-s c-s).
--
Anders
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Weird Tabbing Effects
2008-04-02 9:06 ` Peter Dyballa
@ 2008-04-02 9:49 ` Tassilo Horn
0 siblings, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2008-04-02 9:49 UTC (permalink / raw)
To: help-gnu-emacs
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".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-02 9:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01 19:43 Weird Tabbing Effects Roman E
2008-04-02 9:06 ` Peter Dyballa
2008-04-02 9:49 ` Tassilo Horn
2008-04-02 9:13 ` Anders Wirzenius
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.