[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customization problem
From: |
Herbert Euler |
Subject: |
Re: Customization problem |
Date: |
Sat, 28 Oct 2006 10:01:05 +0800 |
The question is what criterion to use. Loading of the init file
with no errors?
Take `custom-save-variables' as example. It searches in `obarray'
for all symbols that should be saved:
<lisp/cus-edit.el, in the body of `custom-save-variables'>
(mapatoms
(lambda (symbol)
(if (and (get symbol 'saved-value)
;; ignore theme values
(or (null (get symbol 'theme-value))
(eq 'user (caar (get symbol 'theme-value)))))
(nconc saved-list (list symbol)))))
The criterion could be a symbol in `obarray'. Before
`custom-save-variables' searching in it, it first insure the symbol
is interned.
We can apply this for the other similar functions, such as
`custom-save-faces'.
My question is, if `custom-save-variables' signals an error, what
can the user do? The user wants to kill Emacs at that moment.
Can the user load all customizations when she/he sees the
error?
Regards,
Guanpeng Xu
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/