home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4073 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.8 KB  |  41 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bcars6a8!keithh
  3. From: keithh@bnr.ca (Keith Hanlan)
  4. Subject: Re: TAB characters (was Re: Need help with TABith TABS)
  5. Message-ID: <1992Sep10.194734.23894@bcars6a8.bnr.ca>
  6. Keywords: emacs, TABS, PASCAL
  7. Sender: usenet@bcars6a8.bnr.ca (Use Net)
  8. Nntp-Posting-Host: bcarh10f
  9. Organization: Bell-Northern Research Ltd., Ottawa
  10. References: <1992Sep09.171648.3781@bnr.ca> <1992Sep10.002725.562@bcars6a8.bnr.ca> <BuCHyu.GzG.1@cs.cmu.edu>
  11. Date: Thu, 10 Sep 1992 19:47:34 GMT
  12. Lines: 27
  13.  
  14. In article <BuCHyu.GzG.1@cs.cmu.edu> rudis+@cs.cmu.edu (Rujith S DeSilva) writes:
  15. >In article <1992Sep10.002725.562@bcars6a8.bnr.ca> keithh@bnr.ca (Keith Hanlan)
  16. >writes:
  17. >>I am just learning emacs now but as soon as my proficiency picks
  18. >>up a bit here is what I am going to do:
  19. >>o set tab-width to whatever I prefer.
  20. >>o hook into reading in a file a function which automatically
  21. >>  tabifies the file.  This means assuming that the file was
  22. >>  written with a tabstop of eight.
  23. >>o hook into writing out a file (write-file-hooks) a function 
  24. >>  which, depending on the type of file, either:
  25. >>  o untabifies the file completely or
  26. >>  o untabifies the file, resets the tab-width to eight, and
  27. >>    then tabifies the file again.
  28. >>
  29. >>And then I'll never have to worry about tab-widths again!
  30. >
  31. >Does this mean that you want saved files to have TAB characters, but want
  32. >spaces while editing?  If so, why bother to have TABs at all?
  33.  
  34. No, I want tab characters in my files so that hitting hitting tab
  35. and then backspace (rubout) results in no change.  Editors which
  36. convert tabs to spaces are frustrating because the backspace only
  37. rubs out the final space, instead of all the spaces used to
  38. replace the tab.
  39.  
  40. Regards,
  41.