all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* custom-save-all leaves custom-file buffer
@ 2005-08-25 20:28 David Reitter
  2005-08-27  3:41 ` Richard M. Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2005-08-25 20:28 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-27 12:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 20:28 custom-save-all leaves custom-file buffer David Reitter
2005-08-27  3:41 ` Richard M. Stallman
2005-08-27 10:25   ` David Reitter
2005-08-27 12:56     ` Eli Zaretskii

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.