[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Customization problem

From: Herbert Euler
Subject: Customization problem
Date: Fri, 27 Oct 2006 11:45:41 +0800

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

`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

Guanpeng Xu

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]