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: Tue, 2 Jan 2007 14:01:51 +0100 Message-ID: References: <45990274.5060103@gatech.edu> <459A0379.6000508@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 1167743009 7780 80.91.229.12 (2 Jan 2007 13:03:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Jan 2007 13:03:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 02 14:03:22 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 1H1jIU-0003X4-6L for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jan 2007 14:03:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1jIT-0006ky-Mi for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jan 2007 08:03:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1jHC-00062q-S4 for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 08:01:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1jH7-00060O-Rp for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 08:01:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1jH7-000601-Gg for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 08:01:53 -0500 Original-Received: from [66.249.92.173] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H1jH6-0003Zi-Im for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 08:01:52 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so5442140ugf for ; Tue, 02 Jan 2007 05:01:51 -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=aU+90INSHTccElmQibpHmqlGNoK0ZmkfacrjZip+sWswvu/CWTq4okujt3b0RLQZwreDkvPY48wb0mJNQprnz0XMsAn6eyqWO0IV2gl2PQzAzmnCOAxnTOFigD1rntjTRurpzEV076EqyUbli8cqgKfiYP64jmiT90TzXRiolro= Original-Received: by 10.82.139.17 with SMTP id m17mr1517875bud.1167742911849; Tue, 02 Jan 2007 05:01:51 -0800 (PST) Original-Received: by 10.82.147.2 with HTTP; Tue, 2 Jan 2007 05:01:51 -0800 (PST) Original-To: "Matthew Flaschen" In-Reply-To: <459A0379.6000508@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:40102 Archived-At: On 1/2/07, Matthew Flaschen wrote: > Thanks! I mostly understand the script, but how could I make > my-exclude-from-backup interactive? Use this additional function: (defun my-exclude-file-from-backup (&optional file) (interactive (list (read-file-name "File to exclude: " nil nil t buffer-file-name))) (my-exclude-from-backup (expand-file-name file))) It should default to the buffer's visited file. /L/e/k/t/u