From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Backup Blacklist Date: Fri, 5 Jan 2007 13:39:42 +0100 Message-ID: References: <45990274.5060103@gatech.edu> <459AC940.6060505@gatech.edu> <459B034F.5070206@gatech.edu> <459B43BB.70105@gatech.edu> <459CAA61.8070305@gatech.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168000822 15032 80.91.229.12 (5 Jan 2007 12:40:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 12:40:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 05 13:40:20 2007 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 1H2oMj-0007eP-JY for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jan 2007 13:40:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2oMi-0003oV-0O for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jan 2007 07:40:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2oMP-0003hW-U1 for help-gnu-emacs@gnu.org; Fri, 05 Jan 2007 07:39:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2oMM-0003e1-PB for help-gnu-emacs@gnu.org; Fri, 05 Jan 2007 07:39:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2oMM-0003dW-5a for help-gnu-emacs@gnu.org; Fri, 05 Jan 2007 07:39:46 -0500 Original-Received: from [64.233.182.184] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2oMJ-0004An-Ln for help-gnu-emacs@gnu.org; Fri, 05 Jan 2007 07:39:44 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so1031232nfe for ; Fri, 05 Jan 2007 04:39:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EhMcz+H3lcFfMdGuquuf4iC19Aqu6QTRypRQZwj6O4xFapyqfOAKfx5B1ms1dWsgkaaP3HtfSPlv08Pqe+G4rXoRU/4K1/ffiBjI2RZVAglfSD4Fj4ZgZjQCaYOlEvB4NBq8EhpaYLWdd+XeO5IRDtc0r7SZtUdCGMEuVsVmBWs= Original-Received: by 10.82.167.5 with SMTP id p5mr2525345bue.1168000782218; Fri, 05 Jan 2007 04:39:42 -0800 (PST) Original-Received: by 10.82.147.2 with HTTP; Fri, 5 Jan 2007 04:39:42 -0800 (PST) Original-To: "Matthew Flaschen" In-Reply-To: <459CAA61.8070305@gatech.edu> Content-Disposition: inline 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:40151 Archived-At: On 1/4/07, Matthew Flaschen wrote: > Thanks for all your patience and help. It's been fun ;) > (even > though I haven't finished testing the package). When you test it, use this version of `bex-enable-predicate': (defun bex-enable-predicate (file) "Alternate `backup-enable-predicate' function that excludes from backups those files registered with `bex-exclude-files' or `bex-exclude-file-from-backup'." (if bex-previous-backup-predicate (let ((regexp (get 'backup-exclude :regexp))) (if (and regexp (let ((case-fold-search bex-case-fold-search)) (string-match regexp (expand-file-name file)))) nil (funcall bex-previous-backup-predicate file))) nil)) It's a small change to support the case that `backup-enable-predicate' is nil (which is uncommon, but possible). Note that in this case, no file is ever backed up (because backup-exclude can only exclude files, and there's no function ever returning t for any of them). /L/e/k/t/u