all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: emacs- devel <emacs-devel@gnu.org>
Subject: recentf / custom-file
Date: Tue, 13 Feb 2007 15:36:29 +0000	[thread overview]
Message-ID: <A510FA59-BECB-4698-82D9-C280F1DF4274@gmail.com> (raw)

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)

             reply	other threads:[~2007-02-13 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13 15:36 David Reitter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-02-19 15:49 recentf / custom-file David Reitter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A510FA59-BECB-4698-82D9-C280F1DF4274@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.