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: Tue, 13 Feb 2007 15:36:29 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171381024 23653 80.91.229.12 (13 Feb 2007 15:37:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2007 15:37:04 +0000 (UTC) To: emacs- devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 13 16:36:53 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HGzi4-0000x5-WF for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 16:36:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGzi4-0000lL-IO for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 10:36:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGzht-0000lG-Jp for emacs-devel@gnu.org; Tue, 13 Feb 2007 10:36:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGzhs-0000l4-1C for emacs-devel@gnu.org; Tue, 13 Feb 2007 10:36:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGzhr-0000l1-S1 for emacs-devel@gnu.org; Tue, 13 Feb 2007 10:36:35 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.189]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGzhr-0006dh-Dg for emacs-devel@gnu.org; Tue, 13 Feb 2007 10:36:35 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so341060nfe for ; Tue, 13 Feb 2007 07:36:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=g8m6XGG3+oM/HRDCvN8jnrSC8+U2noVxRgEWZm1k3RH2CsT4IBzCs5GLpgPvDUHNBbIBWdmYVwwaWHPKRQafo8VkfnCQkcIBCCEXqC1Hh480B4GHrLSEu0L13JMVeU1uNT1XEalu9rDo0JPtBbrX7blelidXJ3h7h3a0VOmz50Y= Original-Received: by 10.82.167.5 with SMTP id p5mr12135399bue.1171380993930; Tue, 13 Feb 2007 07:36:33 -0800 (PST) Original-Received: from ?129.215.174.81? ( [129.215.174.81]) by mx.google.com with ESMTP id m15sm3129348nfc.2007.02.13.07.36.32; Tue, 13 Feb 2007 07:36:33 -0800 (PST) X-Mailer: Apple Mail (2.752.2) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:66337 Archived-At: Can I suggest this or a similar small change to cus-edit.el in order to store the canonicalized version of custom-file in recentf-exclude? As it is now it doesn't work in cases where `custom-file' is something like "~/.emacs-custom.el". *** cus-edit.el 09 Nov 2006 16:48:43 +0000 1.312 --- cus-edit.el 13 Feb 2007 15:30:49 +0000 *************** *** 4187,4197 **** (when (and (null custom-file) init-file-had-error) (error "Cannot save customizations; init file was not fully loaded")) (let* ((filename (custom-file)) ! (recentf-exclude (if recentf-mode ! (cons (concat "\\`" ! (regexp-quote (custom-file)) ! "\\'") ! recentf-exclude))) (old-buffer (find-buffer-visiting filename))) (with-current-buffer (or old-buffer (find-file-noselect filename)) (unless (eq major-mode 'emacs-lisp-mode) --- 4187,4199 ---- (when (and (null custom-file) init-file-had-error) (error "Cannot save customizations; init file was not fully loaded")) (let* ((filename (custom-file)) ! (recentf-exclude ! (if recentf-mode ! (cons (concat "\\`" ! (regexp-quote ! (recentf-expand-file-name (custom-file))) ! "\\'") ! recentf-exclude))) (old-buffer (find-buffer-visiting filename))) (with-current-buffer (or old-buffer (find-file-noselect filename)) (unless (eq major-mode 'emacs-lisp-mode)