🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #2000

Smart Back-up

#2000
From: June-Yub LEE
Date: Sat, 19 Dec 1992 21:02
20 lines
1111 bytes
Hello.

I don't want to make back-up files most cases so
I have put (setq make-backup-files nil) in my .emacs.
It works fine, however, it also makes version-control disabled.

I like (setq version-control nil) very much and I want to
apply the same concept to a single (non-numbered) backup file.

If there is numbered backups, keep making new numbered backups.
If there is only one (~) backup, then generate single backup copy.
If there is no backup at all, don't make any backup.

I can think of using write-file-hooks variable but
I have no idea on lisp code. And I have tried to look
at the manual and FAQ in vain.

Please help me.
Thanks in advance.
	June-Yub Lee
Technical Details
Message-ID: <leejuney.724798933@acf9>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!cmcl2!acf9!leejuney

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!cmcl2!acf9!leejuney
From: leejuney@acf9.nyu.edu (June-Yub LEE)
Subject: Smart Back-up
Message-ID: <leejuney.724798933@acf9>
Sender: notes@cmcl2.nyu.edu (Notes Person)
Nntp-Posting-Host: acf9.nyu.edu
Organization: New York University
Date: Sat, 19 Dec 1992 21:02:13 GMT
Lines: 20