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: recentf: custom-file Date: Sun, 31 Jul 2005 22:12:28 +0100 Message-ID: <88B948B1-1E1B-412D-8BC8-B0DCA6B70BC8@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122845398 3427 80.91.229.2 (31 Jul 2005 21:29:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 31 Jul 2005 21:29:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 31 23:29:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DzLNN-00063s-RZ for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2005 23:29:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzLQ0-0002Wb-62 for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2005 17:32:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzLNp-0001Ie-A3 for emacs-devel@gnu.org; Sun, 31 Jul 2005 17:30:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzLNh-0001F7-GH for emacs-devel@gnu.org; Sun, 31 Jul 2005 17:30:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzLNf-00013a-Rl for emacs-devel@gnu.org; Sun, 31 Jul 2005 17:30:00 -0400 Original-Received: from [64.233.170.200] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DzLIj-0002cC-Sv for emacs-devel@gnu.org; Sun, 31 Jul 2005 17:24:54 -0400 Original-Received: by rproxy.gmail.com with SMTP id y7so1382266rne for ; Sun, 31 Jul 2005 14:12:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=ukLQu1vCRjYPe+AH7PvkE841HiNsy/3cR4fRqShP7SVpmb0domB7vRl5d8MJ5DXad0IYq7GY0Tw5g8Qpe1HV/P+wQlsP61fHUvdrnAmswk16bDl7ER6cUcXzM8/oH5jUz2XMfH/u5V9dfYJZKSASn9h5nTJP1oLx1z6HHAchzmo= Original-Received: by 10.39.3.42 with SMTP id f42mr2307512rni; Sun, 31 Jul 2005 14:12:31 -0700 (PDT) Original-Received: from ?10.0.0.60? ([82.26.169.195]) by mx.gmail.com with ESMTP id 71sm3269305rnb.2005.07.31.14.12.31; Sun, 31 Jul 2005 14:12:31 -0700 (PDT) Original-To: emacs-devel ' X-Mailer: Apple Mail (2.733) 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:41380 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41380 custom-file pops up in the recentf menu. The fix below addresses the issue. Alternatives would be adding a check for custom-file to recentf-keep, but that would prevent .emacs (or whatever custom-file is) from turning up there even if the user loads it. There could be better (more elaborate) solutions that preserve the effect of file- precious-flag, of course. diff -c -r1.228 cus-edit.el *** cus-edit.el 19 Jul 2005 11:21:30 -0000 1.228 --- cus-edit.el 31 Jul 2005 20:55:48 -0000 *************** *** 4132,4139 **** (save-excursion (let ((default-major-mode nil)) (set-buffer (find-file-noselect (custom-file)))) ! (let ((file-precious-flag t)) ! (save-buffer))))) ;;; The Customize Menu. --- 4132,4138 ---- (save-excursion (let ((default-major-mode nil)) (set-buffer (find-file-noselect (custom-file)))) ! (write-region nil nil custom-file)))) ;;; The Customize Menu.