Re: emacs-style file backups

2011-08-08 Thread Tim Gray
On Aug 07, 2011 at 02:15 AM -0400, Alan wrote: I want a new backup file only when I first open up a file in a buffer and save it the first time. But after I close the buffer and reopen it again later, I want it to write another backup. I wrote a crummy vim script that makes a back up copy of a

Re: emacs-style file backups

2011-08-06 Thread Ben Fritz
On Aug 7, 1:15 am, Alan wrote: > I looked at patchmode before, but it doesn't do what I want. patchmode only > keeps the oldest version of the file. So it will save the backup after the > first write. However, if you kill the buffer and then visit the file again, > a new backup file will not be

Re: emacs-style file backups

2011-08-06 Thread Alan
I looked at patchmode before, but it doesn't do what I want. patchmode only keeps the oldest version of the file. So it will save the backup after the first write. However, if you kill the buffer and then visit the file again, a new backup file will not be made. I want a new backup file only when

Re: emacs-style file backups

2011-08-06 Thread Ben Fritz
On Aug 7, 12:10 am, Alan wrote: > Hi, > > I turned on file backups using "set backup" in my .vimrc. However, I want to > have emacs-style file backup behavior: > > "Emacs makes a backup for a file only the first time the file is saved from > a buffer. No matter how many times you subsequently sa

emacs-style file backups

2011-08-06 Thread Alan
Hi, I turned on file backups using "set backup" in my .vimrc. However, I want to have emacs-style file backup behavior: "Emacs makes a backup for a file only the first time the file is saved from a buffer. No matter how many times you subsequently save the file, its backup remains unchanged. Howe