emacs-devel
[Top][All Lists]
Advanced

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

Re: Autoloaded defcustoms


From: Lennart Borgman
Subject: Re: Autoloaded defcustoms
Date: Tue, 6 Jan 2009 03:16:58 +0100

On Tue, Jan 6, 2009 at 1:57 AM, Juri Linkov <address@hidden> wrote:
>> I suggest using something like this instead of custom-autoload
>>
>> (defun nxhtml-custom-autoload (symbol load &optional noset)
>>   (custom-autoload symbol load noset)
>>   (let* ((standard (get symbol 'standard-value))
>>          (saved (get symbol 'saved-value))
>>          (need-set (get symbol 'custom-set)))
>>     (when (or need-set
>>               (equal standard saved))
>>       (custom-load-symbol symbol))))
>>
>> But I am not sure about the details.
>>
>> Jurij, could you please help with the details? What is necessary to do
>> in the function above?
>
> Couldn't you just set `noset' to t to force its loading?


I am not sure what `noset' does. How could it help here? The sequence
of events here is

    (custom-set-variables ...)
    ... Maybe later during startup
    ... load the load defs for the defcustoms with a custom-set property ...




reply via email to

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