home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / emacs / 3881 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.8 KB

  1. Xref: sparky comp.emacs:3881 gnu.emacs.help:5196
  2. Path: sparky!uunet!psgrain!hippo!ee.und.ac.za!csir.co.za!olsa99!zeusa!hendrik
  3. From: hendrik@zeusa.UUCP (Hendrik Vermooten)
  4. Newsgroups: comp.emacs,gnu.emacs.help
  5. Subject: Re: Numbered Backups (version control)
  6. Keywords: version-control backup help
  7. Message-ID: <38@zeusa.UUCP>
  8. Date: 29 Dec 92 05:34:19 GMT
  9. References: <1992Dec25.103518.16118@discus.technion.ac.il>
  10. Followup-To: comp.emacs
  11. Organization: ZEUS software
  12. Lines: 25
  13.  
  14. In article <1992Dec25.103518.16118@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani) writes:
  15. > I changed just one character, and saved,
  16. > did that 13 (lucky number) times.  What i got was just the
  17. > original saved file, and the newest file.  (file.c and
  18. > file.c.~1~).
  19.  
  20. This is actually a feature ... emacs only makes a backup file once every
  21. time you visit the file. So if you want to make multiple backups, you
  22. have to either go out and back in before it'll create another backup file,
  23. or you have to delete the buffer and load it again. Next time you save, it
  24. will create another backup file.
  25.  
  26. The reason for this is that you don't get too many backup files, which
  27. I've found very useful.
  28.  
  29. If you specifically want to create a backup file each time, there is always
  30. 'write-file-hooks' where I suppose you could modify save-buffer in files.el.
  31.  
  32. -------------- Hendrik Vermooten - hendrik@zeusa.co.za -------------------
  33.  ___________  _________  ___     ___     ______       ZEUS software
  34.  \______   /  \   _____\ \  \    \  \   (   ___)      PO Box 52051
  35.        /  /    \  \____   \  \    \  \   \  \____     WIERDA PARK 0149
  36.       /  /      \   ___\   \  \    \  \   \____  \    South Africa
  37.      /  /_____   \  \______ \  \____\  \    ___)  )   Tel +2712 660-2408
  38.     /_________\   \________\ \_________/   (_____/    FAX +2712 660-2409
  39.