unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* recentf: custom-file
@ 2005-07-31 21:12 David Reitter
  2005-08-02 18:05 ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2005-07-31 21:12 UTC (permalink / raw)



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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-05 11:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-31 21:12 recentf: custom-file David Reitter
2005-08-02 18:05 ` Kevin Rodgers
2005-08-02 18:58   ` David Reitter
2005-08-05 11:59   ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).