On Friday 26 May 2006 11:28, Jimmy Huang wrote:
> There's a bunch more settings in the attached .emacs
> file to convert everything to spaces. The reason
> being, is that emacs will actually use a combination
> of tabs and spaces.
> It looks good on emacs and with tabs and spaces, but
> some programs like "more" will assume TAB means 4
> spaces instead of 5, and then everything looks
> whacked.

Actually your TERMINAL thinks a tab is *8* character spaces. Telling your 
editor tabs are anything but 8 character spaces is counter productive - you 
can't change your terminal's interpretation of a tab character easily.

When you press tab in emacs when it's in c-mode it interprets it as "indent 
this line appropriately" - it looks at your code and checks the what indent 
level should be (in character spaces) and then turns that into the 
appropriate number of tabs and spaces.

Also, you can tell emacs to edit a specific file specially by adding this to 
the end..
 * Local variables:
 * c-basic-offset: 4
 * End:
(Although I wouldn't advocate modifying all the source files to do this)

Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.us.netrek.org/pipermail/netrek-dev/attachments/20060526/0aee61de/attachment.pgp