From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ramkumar R. Aiyengar" Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; find-backup-file-name assumes base name of backup file names Date: Mon, 7 Apr 2008 16:33:02 +0100 Message-ID: <9a9bfc170804070833u506e25e0ycf66010d61eea931@mail.gmail.com> References: <87lk3phewu.fsf@stupidchicken.com> 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 1207582493 13883 80.91.229.12 (7 Apr 2008 15:34:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2008 15:34:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Chong Yidong" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 17:35:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JitNR-0004bk-6e for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 17:35:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JitMn-0003iK-Va for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 11:34:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JitLH-0002Lf-No for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:33:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JitLF-0002JW-OP for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:33:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JitLF-0002JL-JE for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:33:05 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JitLF-0001CD-2r for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:33:05 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so1293715wah.10 for ; Mon, 07 Apr 2008 08:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ZE0gYwuHB55WloITFItSB4E+ZBLU0SHhQwieQ092wYk=; b=FmN4+hRUZZHU/gHU0biYVErFZutQ0uTuqpj8ht1/tB0jAbq7oSH+LAlbRHDhn7NBGBDgT4tmfnHFrbRr3n7HxdPzJvsdiTou4zgItW0kxdd6zwnq/gm1umUyUSBTcU/s8q1ieZSdkTpNVWLm/3SwR1YXvSvJiMBk6dX/V6sQPTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZzvCxOMaCEbCDNfr5TufTNAL/QXoFITGiT1ZJQfqOf3lFQBpsimff68uQsUWMi8qH0AdUU1nuL1RWAAwXN4n7m//PSkKxA4DKUoCIKC3N6u1JYwv1YCTx3cHT6OrjYLfbnEH8V6mMxKJ7yISO1C6Y+bUqhgFin39+FgJi/mjKkc= Original-Received: by 10.114.27.20 with SMTP id a20mr6116261waa.101.1207582382446; Mon, 07 Apr 2008 08:33:02 -0700 (PDT) Original-Received: by 10.114.125.11 with HTTP; Mon, 7 Apr 2008 08:33:02 -0700 (PDT) In-Reply-To: <87lk3phewu.fsf@stupidchicken.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94579 Archived-At: Hi! > In the code, find-backup-file-name only uses make-backup-file-name-1 > when checking for numeric backup files (usually for files under version > control). If it determines that a non-numeric backup file is desired, > it calls make-backup-file-name, which correctly checks > make-backup-file-name-function as desired. Note that > make-backup-file-name-function only applies to non-numeric backup files. Ah! So, the make-backup-file-name-function can be used only if version-control is not set? Didn't know that.. I am here trying to use version-control set to t, along with a custom make-backup-file-name-function (for creating a shadow directory structure for backup files: backup-alist flattens out backup file names within it.. files like.. ~/.emacs.d/backup/home/ramk/.emacs.~2~). Could this then become a feature request, to allow customization of the backup function for versioned backups? Thanks, Ramkumar. -- One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. -- Robert Firth