[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
recentf: custom-file
From: |
David Reitter |
Subject: |
recentf: custom-file |
Date: |
Sun, 31 Jul 2005 22:12:28 +0100 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- recentf: custom-file,
David Reitter <=