Article View: comp.emacs
Article #3296Re: Numbered Backups (version control)
From: Hendrik Vermooten
Date: Tue, 29 Dec 1992 05:34
Date: Tue, 29 Dec 1992 05:34
25 lines
1817 bytes
1817 bytes
In article <1992Dec25.103518.16118@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani) writes:
> I changed just one character, and saved,
> did that 13 (lucky number) times. What i got was just the
> original saved file, and the newest file. (file.c and
> file.c.~1~).
This is actually a feature ... emacs only makes a backup file once every
time you visit the file. So if you want to make multiple backups, you
have to either go out and back in before it'll create another backup file,
or you have to delete the buffer and load it again. Next time you save, it
will create another backup file.
The reason for this is that you don't get too many backup files, which
I've found very useful.
If you specifically want to create a backup file each time, there is always
'write-file-hooks' where I suppose you could modify save-buffer in files.el.
-------------- Hendrik Vermooten - hendrik@zeusa.co.za -------------------
___________ _________ ___ ___ ______ ZEUS software
\______ / \ _____\ \ \ \ \ ( ___) PO Box 52051
/ / \ \____ \ \ \ \ \ \____ WIERDA PARK 0149
/ / \ ___\ \ \ \ \ \____ \ South Africa
/ /_____ \ \______ \ \____\ \ ___) ) Tel +2712 660-2408
/_________\ \________\ \_________/ (_____/ FAX +2712 660-2409
Technical Details
Message-ID:
<38@zeusa.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ee.und.ac.za!csir.co.za!olsa99!zeusa!hendrikReferences:
<1992Dec25.103518.16118@discus.technion.ac.il>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ee.und.ac.za!csir.co.za!olsa99!zeusa!hendrik From: hendrik@zeusa.UUCP (Hendrik Vermooten) Newsgroups: comp.emacs,gnu.emacs.help Subject: Re: Numbered Backups (version control) Keywords: version-control backup help Message-ID: <38@zeusa.UUCP> Date: 29 Dec 92 05:34:19 GMT References: <1992Dec25.103518.16118@discus.technion.ac.il> Followup-To: comp.emacs Organization: ZEUS software Lines: 25