From: David Reitter <david.reitter@gmail.com>
Subject: custom-save-all leaves custom-file buffer
Date: Thu, 25 Aug 2005 21:28:53 +0100 [thread overview]
Message-ID: <C4D55950-3EA5-48B2-AFB8-7D0A0B690CD9@gmail.com> (raw)
Is there a special reason why custom-save-all leaves the buffer with
custom-file?
I don't think the file should appear in the buffers lists - it's
loaded temporarily and should be discarded.
The problem with below patch is that if custom-file is already loaded
as ordinary buffer, it will kill it as find-file-noselect doesn't
load the file a second time.
*** cus-edit.el 12 Aug 2005 11:17:57 -0000 1.230
--- cus-edit.el 25 Aug 2005 20:25:23 -0000
***************
*** 4144,4150 ****
recentf-exclude))))
(set-buffer (find-file-noselect (custom-file))))
(let ((file-precious-flag t))
! (save-buffer)))))
;;; The Customize Menu.
--- 4144,4151 ----
recentf-exclude))))
(set-buffer (find-file-noselect (custom-file))))
(let ((file-precious-flag t))
! (save-buffer))
! (kill-buffer nil))))
;;; The Customize Menu.
next reply other threads:[~2005-08-25 20:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-25 20:28 David Reitter [this message]
2005-08-27 3:41 ` custom-save-all leaves custom-file buffer Richard M. Stallman
2005-08-27 10:25 ` David Reitter
2005-08-27 12:56 ` Eli Zaretskii
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=C4D55950-3EA5-48B2-AFB8-7D0A0B690CD9@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.