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.
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel