home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!rudis
- From: rudis+@cs.cmu.edu (Rujith S DeSilva)
- Newsgroups: gnu.emacs.help
- Subject: TAB characters (was Re: Need help with TABith TABS)
- Keywords: emacs, TABS, PASCAL
- Message-ID: <BuCHyu.GzG.1@cs.cmu.edu>
- Date: 10 Sep 92 04:32:54 GMT
- Article-I.D.: cs.BuCHyu.GzG.1
- References: <1992Sep09.164543.3179@bnr.ca> <1992Sep09.171648.3781@bnr.ca> <1992Sep10.002725.562@bcars6a8.bnr.ca>
- Sender: news@cs.cmu.edu (Usenet News System)
- Organization: School of Computer Science, Carnegie Mellon
- Lines: 27
- Nntp-Posting-Host: probacto.soar.cs.cmu.edu
-
- In article <1992Sep10.002725.562@bcars6a8.bnr.ca> keithh@bnr.ca (Keith Hanlan)
- writes:
- >I am just learning emacs now but as soon as my proficiency picks
- >up a bit here is what I am going to do:
- >o set tab-width to whatever I prefer.
- >o hook into reading in a file a function which automatically
- > tabifies the file. This means assuming that the file was
- > written with a tabstop of eight.
- >o hook into writing out a file (write-file-hooks) a function
- > which, depending on the type of file, either:
- > o untabifies the file completely or
- > o untabifies the file, resets the tab-width to eight, and
- > then tabifies the file again.
- >
- >And then I'll never have to worry about tab-widths again!
-
- Does this mean that you want saved files to have TAB characters, but want
- spaces while editing? If so, why bother to have TABs at all? The TAB
- character is a historical accident that (IMHO) should be wiped out. It was
- originally intended to save file-space by a simple compression mechanism for
- multiple spaces, but:
-
- (a) Given current disk sizes, who cares?
- (b) There are much more effective compression methods available now.
-
- Rujith de Silva.
- Carnegie Mellon.
-