From: David Reitter <david.reitter@gmail.com>
Subject: recentf: custom-file
Date: Sun, 31 Jul 2005 22:12:28 +0100 [thread overview]
Message-ID: <88B948B1-1E1B-412D-8BC8-B0DCA6B70BC8@gmail.com> (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.
next reply other threads:[~2005-07-31 21:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-31 21:12 David Reitter [this message]
2005-08-02 18:05 ` recentf: custom-file Kevin Rodgers
2005-08-02 18:58 ` David Reitter
2005-08-05 11:59 ` Richard M. Stallman
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=88B948B1-1E1B-412D-8BC8-B0DCA6B70BC8@gmail.com \
--to=david.reitter@gmail.com \
/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.