home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bcars6a8!keithh
- From: keithh@bnr.ca (Keith Hanlan)
- Subject: Re: TAB characters (was Re: Need help with TABith TABS)
- Message-ID: <1992Sep10.194734.23894@bcars6a8.bnr.ca>
- Keywords: emacs, TABS, PASCAL
- Sender: usenet@bcars6a8.bnr.ca (Use Net)
- Nntp-Posting-Host: bcarh10f
- Organization: Bell-Northern Research Ltd., Ottawa
- References: <1992Sep09.171648.3781@bnr.ca> <1992Sep10.002725.562@bcars6a8.bnr.ca> <BuCHyu.GzG.1@cs.cmu.edu>
- Date: Thu, 10 Sep 1992 19:47:34 GMT
- Lines: 27
-
- In article <BuCHyu.GzG.1@cs.cmu.edu> rudis+@cs.cmu.edu (Rujith S DeSilva) writes:
- >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?
-
- No, I want tab characters in my files so that hitting hitting tab
- and then backspace (rubout) results in no change. Editors which
- convert tabs to spaces are frustrating because the backspace only
- rubs out the final space, instead of all the spaces used to
- replace the tab.
-
- Regards,
-