From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: custom-save-all leaves custom-file buffer Date: Sat, 27 Aug 2005 11:25:47 +0100 Message-ID: <5EC167A5-90DA-482F-B0CA-9617820FAEC9@gmail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125139343 18162 80.91.229.2 (27 Aug 2005 10:42:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Aug 2005 10:42:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 27 12:42:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E8y7G-00089S-9w for ged-emacs-devel@m.gmane.org; Sat, 27 Aug 2005 12:40:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8yBE-0005ws-Nf for ged-emacs-devel@m.gmane.org; Sat, 27 Aug 2005 06:44:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E8y7x-0004yf-TS for emacs-devel@gnu.org; Sat, 27 Aug 2005 06:41:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E8y7o-0004ur-EI for emacs-devel@gnu.org; Sat, 27 Aug 2005 06:41:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8y7l-0004n2-0w for emacs-devel@gnu.org; Sat, 27 Aug 2005 06:41:21 -0400 Original-Received: from [64.233.170.192] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E8xuR-000429-Nf for emacs-devel@gnu.org; Sat, 27 Aug 2005 06:27:35 -0400 Original-Received: by rproxy.gmail.com with SMTP id y7so853007rne for ; Sat, 27 Aug 2005 03:25:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=duare7t3eWcmrufSA4lfL0y6hWBJFdM045nUNInsyGzHU7blU1tXqhbp/B95IfUsDWhw4Q4+Gkzz9jNRl4VZXVgJCqskzptvY8SFSEbgIA+BQz/Wmioeyol6OKsJNXrk6lYyHhGojPHFnlVckg+jSiLbZ15eC33U9aNB5/1C/E4= Original-Received: by 10.38.209.25 with SMTP id h25mr1870871rng; Sat, 27 Aug 2005 03:25:50 -0700 (PDT) Original-Received: from ?10.0.0.61? ( [82.26.161.140]) by mx.gmail.com with ESMTP id k6sm2889498rnd.2005.08.27.03.25.49; Sat, 27 Aug 2005 03:25:50 -0700 (PDT) In-Reply-To: Original-To: Emacs-Devel ' X-Mailer: Apple Mail (2.734) 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:42445 Archived-At: On 27 Aug 2005, at 04:41, Richard M. Stallman wrote: > I wrote a cleaner patch to do a job like this, but I have not had time > to test it, so I have not installed it. Can you test it? OK, it works so far, but now custom-file turns up in the recentf list. That was Eli's 05/08/12 patch was about: Log message: (custom-save-all, custom-save-delete): Bind recentf-exclude to exclude custom-file. > ! (let ((default-major-mode nil) > ! (recentf-exclude (if recentf-mode > ! (cons (concat "\\`" > ! (regexp-quote (custom-file)) > ! "\\'") > ! recentf-exclude)))) > ! (set-buffer (find-file-noselect (custom-file))))