From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Lindner Newsgroups: gmane.emacs.help Subject: version-control and make-backup-file-name-function Date: Fri, 15 Aug 2008 09:20:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218818565 27817 80.91.229.12 (15 Aug 2008 16:42:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 16:42:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 18:43:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KU2Ol-00083D-PQ for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 18:43:36 +0200 Original-Received: from localhost ([127.0.0.1]:47066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU2No-0004t3-DE for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 12:42:36 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!2g2000hsn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 138.246.7.185 Original-X-Trace: posting.google.com 1218817258 469 127.0.0.1 (15 Aug 2008 16:20:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 15 Aug 2008 16:20:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=138.246.7.185; posting-account=6QUiowkAAAD0vSyXppJonpT_391Sn3wN User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161332 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56677 Archived-At: Hello, I'm bringing this up again, since my question in the old thread [1] produced no more answers... I have a customized backup function: (defun my-backup-file-name (fpath) (let (backup-root bpath) (setq backup-root "~/.emacs.d/backup") (setq bpath (concat backup-root fpath "~")) (make-directory (file-name-directory bpath) bpath) bpath ) ) combinded with the backup settings: (setq make-backup-file-name-function 'my-backup-file-name version-control t delete-old-versions t kept-new-versions 6 kept-old-versions 2) When uncommenting make-backup-file-name-function it works with backups in the same dir as the original. With make-backup-file-name-function there are backups in the .emacs/backup dir but only the first version which is never updated. I suspect it's a problem with the creation of the backup file name for the n-th version. Anyone got an idea how to combine versioned backups and custom location? Furthermore: What is the difference between kept-new-versions and kept- old-versions? I did RTM but I'm still not sure. Thanks, Florian [1] http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/2f29712021157725#