home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4060 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.8 KB

  1. 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
  2. From: rudis+@cs.cmu.edu (Rujith S DeSilva)
  3. Newsgroups: gnu.emacs.help
  4. Subject: TAB characters (was Re: Need help with TABith TABS)
  5. Keywords: emacs, TABS, PASCAL
  6. Message-ID: <BuCHyu.GzG.1@cs.cmu.edu>
  7. Date: 10 Sep 92 04:32:54 GMT
  8. Article-I.D.: cs.BuCHyu.GzG.1
  9. References: <1992Sep09.164543.3179@bnr.ca> <1992Sep09.171648.3781@bnr.ca> <1992Sep10.002725.562@bcars6a8.bnr.ca>
  10. Sender: news@cs.cmu.edu (Usenet News System)
  11. Organization: School of Computer Science, Carnegie Mellon
  12. Lines: 27
  13. Nntp-Posting-Host: probacto.soar.cs.cmu.edu
  14.  
  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?  The TAB
  33. character is a historical accident that (IMHO) should be wiped out.  It was
  34. originally intended to save file-space by a simple compression mechanism for
  35. multiple spaces, but:
  36.  
  37. (a) Given current disk sizes, who cares?
  38. (b) There are much more effective compression methods available now.
  39.  
  40. Rujith de Silva.
  41. Carnegie Mellon.
  42.