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: Re: version-control and make-backup-file-name-function Date: Thu, 21 Aug 2008 12:16:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5f59fde2-3dfb-4c57-80c7-060a9075e465@59g2000hsb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1219348300 15147 80.91.229.12 (21 Aug 2008 19:51:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 19:51:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 21:52:30 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 1KWGAI-0008V5-NA for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 21:49:51 +0200 Original-Received: from localhost ([127.0.0.1]:60178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWG9L-0002Sw-9u for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 15:48:51 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!59g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 138.246.7.185 Original-X-Trace: posting.google.com 1219346197 3673 127.0.0.1 (21 Aug 2008 19:16:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 21 Aug 2008 19:16:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 59g2000hsb.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:161519 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:56862 Archived-At: On 19 Aug., 09:41, Kevin Rodgers wrote: > FlorianLindnerwrote: > > 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) > > =A0 (let (backup-root bpath) > > =A0 =A0 (setq backup-root "~/.emacs.d/backup") > > =A0 =A0 (setq bpath (concat backup-root fpath "~")) > > =A0 =A0 (make-directory (file-name-directory bpath) bpath) > > =A0 =A0 bpath > > =A0 =A0 ) > > =A0 ) > > > combinded with the backup settings: > > > (setq make-backup-file-name-function 'my-backup-file-name > > =A0 =A0 =A0 version-control t > > =A0 =A0 =A0 delete-old-versions t > > =A0 =A0 =A0 kept-new-versions 6 > > =A0 =A0 =A0 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? > > Try setting backup-directory-alist instead of > make-backup-file-name-function. That puts all my backup files into one dir with the filename changed to "dir1!dir2!file". Or can this be changed? Thanks Florian