[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
custom-save-all leaves custom-file buffer
From: |
David Reitter |
Subject: |
custom-save-all leaves custom-file buffer |
Date: |
Thu, 25 Aug 2005 21:28:53 +0100 |
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.
- custom-save-all leaves custom-file buffer,
David Reitter <=