unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Customization problem
@ 2006-10-27  3:45 Herbert Euler
  2006-10-27 13:33 ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Herbert Euler @ 2006-10-27  3:45 UTC (permalink / raw)


My customizations was cleared when I put some code into my ~/.emacs
and got error when loading this file.  This is because one of my
prefered package (Icicles mode by Drew Adams --
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Libraries) tries to
save a customized variable when Emacs is killed.  It adds an entry to
`kill-emacs-hook', and `customize-save-variable' is invoked in this
entry.

`customize-save-variable' will invoke `custom-save-all', which will
flush all the customizations.  If some of the customizations (or
worse, all of the customizations) are not loaded when invoking
`custom-save-all', they will be wiped out.  This can happen when the
user loads a package that will save customizations, but Emacs is not
initialized successfully, and the user tries to quit Emacs when she/he
sees the error message.  That is why my customizations were cleared.

It seems Emacs loads customizations after it executes rests in the
init file.  Can the possiblility of clearing customizations be avoided
by loading them before taking any other actions specified in the init
file?

Regards,
Guanpeng Xu

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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

end of thread, other threads:[~2006-11-05 19:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27  3:45 Customization problem Herbert Euler
2006-10-27 13:33 ` Richard Stallman
2006-10-28  2:01   ` Herbert Euler
2006-10-28 18:13     ` Richard Stallman
2006-10-29 13:08       ` Herbert Euler
2006-10-30 13:33         ` Richard Stallman
2006-10-31 12:35           ` Herbert Euler
2006-11-02 21:47             ` Richard Stallman
2006-11-02 22:26               ` Drew Adams
2006-11-04  6:36                 ` Richard Stallman
2006-11-04 15:32                   ` Drew Adams
2006-11-05 19:22                     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).