From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: version-control and make-backup-file-name-function Date: Fri, 15 Aug 2008 19:22:55 +0200 Message-ID: <874p5mi45s.fsf@tux.homenetwork> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218821187 3748 80.91.229.12 (15 Aug 2008 17:26:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 17:26:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Florian Lindner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 19:27:18 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 1KU351-0006Wh-0r for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 19:27:15 +0200 Original-Received: from localhost ([127.0.0.1]:45362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU343-0005pP-PY for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 13:26:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KU33m-0005pI-A3 for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 13:25:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KU33l-0005oa-IF for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 13:25:57 -0400 Original-Received: from [199.232.76.173] (port=52590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU33l-0005oP-AB for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 13:25:57 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.152]:31577) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KU33k-0002bL-Ph for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 13:25:56 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 34so650163yxf.66 for ; Fri, 15 Aug 2008 10:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=wT2ckqzFQlYg9bPQ5bTXhJnBHBUwsMEsP3TAhUJp1xw=; b=ec72nsboIY0nEv8oBQdbzzmZ+7KH66ZPImuk/mSzfJq5WniMNAgizYAuG7U7AE7vpb eUCJ5HlsCLm2aCM1vcPEyeYWcFqoCAf+j7l0MBXbFYwXq1u7g2TNBpxn+ieGL0yCqL66 JpffX5NpppUzz+Vc7T90vXBvLyjDLyIKaCG2A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=ii93H5ygMXk6rpFDxGLM/YHJBuZL6Z4IAntIK1m3c5j6JWeYKXjbxFby1hj8HByinU IojRXNGxuinVrev3kwMr3UPsLQkLloGKFeif7uZUP6eEsh4b0+9hZU9KFu/UN0wt/u5y GVU2ElejxJTXppgPJXln9LlP5m+QbIt0i1IIs= Original-Received: by 10.66.252.18 with SMTP id z18mr799504ugh.86.1218821155190; Fri, 15 Aug 2008 10:25:55 -0700 (PDT) Original-Received: from tux.homenetwork ( [77.197.77.49]) by mx.google.com with ESMTPS id p32sm318476ugc.44.2008.08.15.10.25.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 Aug 2008 10:25:54 -0700 (PDT) In-Reply-To: (Florian Lindner's message of "Fri, 15 Aug 2008 09:20:58 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:56680 Archived-At: Florian Lindner writes: > 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# > When you modify a file, `kept-new-versions 6' will keep 6 versions of the file to the differents states of development and then delete all these versions but not the last two ==> `kept-old-versions 2'.And then go up again to 6 ...etc... Correct me if i am wrong. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France