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: Wed, 3 Jan 2007 12:56:43 +0100 Message-ID: References: <45990274.5060103@gatech.edu> <459A0379.6000508@gatech.edu> <459AC940.6060505@gatech.edu> <459B034F.5070206@gatech.edu> <459B43BB.70105@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 1167825435 13366 80.91.229.12 (3 Jan 2007 11:57:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 11:57:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 12:57:11 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 1H24js-0006oI-IB for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jan 2007 12:57:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H24js-0005Xb-1X for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jan 2007 06:57:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H24jf-0005Wh-FP for help-gnu-emacs@gnu.org; Wed, 03 Jan 2007 06:56:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H24je-0005Tr-01 for help-gnu-emacs@gnu.org; Wed, 03 Jan 2007 06:56:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H24jd-0005Tc-Qo for help-gnu-emacs@gnu.org; Wed, 03 Jan 2007 06:56:45 -0500 Original-Received: from [64.233.182.190] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H24jd-0002Ui-Bu for help-gnu-emacs@gnu.org; Wed, 03 Jan 2007 06:56:45 -0500 Original-Received: by nf-out-0910.google.com with SMTP id l36so5261638nfa for ; Wed, 03 Jan 2007 03:56:44 -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=ZIV10LNpxuWyuZqDcAKYPpRoLTQiXQwXjm+qTMlJN4XDjg0J4FW6KkltFCVIJ8B2FKVvFTZxHTWmUE0nnaXHiw2x/iRt7t1k25AwE9mTFm4KsAQGHWcdkPVR5WTtfb2U02AqJOnrEAkVk1QtNCJQUP6UguM6zuS+7e12Kz4D0vw= Original-Received: by 10.82.152.16 with SMTP id z16mr1322014bud.1167825404178; Wed, 03 Jan 2007 03:56:44 -0800 (PST) Original-Received: by 10.82.147.2 with HTTP; Wed, 3 Jan 2007 03:56:43 -0800 (PST) Original-To: "Matthew Flaschen" In-Reply-To: <459B43BB.70105@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:40120 Archived-At: On 1/3/07, Matthew Flaschen wrote: > (and it's still > not persistent if you put it in .emacs, just repeated) That's a kind of Emacs persistency :) > I'll see if I can > rig up a persistent version. It shouldn't be difficult: you use `kill-emacs-hook' to save the data to a file in your home dir, and load it again in your .emacs. For example, you can add the following to your .emacs: (add-hook 'kill-emacs-hook #'(lambda () (with-temp-file "~/.emacs.d/persistent-excludes" (mapc #'(lambda (file) (insert (format "(my-exclude-from-backup \"%s\")\n" file))) (get 'my-exclude-from-backup :files))))) (load-file "~/.emacs.d/persistent-excludes") /L/e/k/t/u