From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: Backup Blacklist Date: Tue, 02 Jan 2007 16:06:08 -0500 Message-ID: <459AC940.6060505@gatech.edu> References: <45990274.5060103@gatech.edu> <459A0379.6000508@gatech.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1685466494==" X-Trace: sea.gmane.org 1167772029 13909 80.91.229.12 (2 Jan 2007 21:07:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Jan 2007 21:07:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 02 22:07:08 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 1H1qqY-0004b5-Qx for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jan 2007 22:06:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1qqY-00066z-BK for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jan 2007 16:06:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1qpw-0005gP-K0 for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 16:06:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1qpu-0005e8-Tz for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 16:06:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1qpu-0005e0-QB for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 16:06:18 -0500 Original-Received: from [130.207.165.169] (helo=deliverator7.gatech.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1H1qpt-0001vC-7n for help-gnu-emacs@gnu.org; Tue, 02 Jan 2007 16:06:17 -0500 Original-Received: from deliverator7.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 6E269192A for ; Tue, 2 Jan 2007 16:06:16 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx5.gatech.edu (mailprx5.prism.gatech.edu [130.207.171.19]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator7.gatech.edu (Postfix) with ESMTP id 5302A1931 for ; Tue, 2 Jan 2007 16:06:16 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [192.168.0.109] (c-71-224-192-74.hsd1.pa.comcast.net [71.224.192.74]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx5.gatech.edu, sender=n/a) by mailprx5.gatech.edu (Postfix) with ESMTP id ED7B8215F for ; Tue, 2 Jan 2007 16:06:15 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.8 (X11/20061115) Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-Enigmail-Version: 0.94.1.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:40105 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1685466494== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1AF45277037277CC1AC29DEB" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1AF45277037277CC1AC29DEB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Juanma Barranquero wrote: > (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))) >=20 Thanks. I did take the time to look around before, and found (interactive), but couldn't get it to work. I'm struggling to learn lisp. It's so different from the whole C/C++/Java tradition. However, I changed it to: (defun my-exclude-file-from-backup (&optional file) (interactive (list (read-file-name "File to exclude: " "" nil t buffer-file-name))) (my-exclude-from-backup (expand-file-name file))) Your code was making it show like: /data/Documents//data/Documents/Reason.txt I.E. directory *then* full file name. Changing the default directory to the empty string fixed that. However, this also excludes other files containing the full path. Thus, for exampled, if I excluded: /data/Documents/cool.c It will also exclude /data/Documents/cool.cpp I don't know enough regex to fix that. Matthew Flaschen --------------enig1AF45277037277CC1AC29DEB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFmslGQ5LSyju97VkRAnvtAJ0dcRMa+GdG7q3ZKlzbRrTHQnKGQgCfZaq8 Vo4Fz51cPUDcMrk8WcjmBaw= =TKtT -----END PGP SIGNATURE----- --------------enig1AF45277037277CC1AC29DEB-- --===============1685466494== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1685466494==--