[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autoloaded defcustoms
From: |
Juri Linkov |
Subject: |
Re: Autoloaded defcustoms |
Date: |
Tue, 06 Jan 2009 02:57:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
> 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?
--
Juri Linkov
http://www.jurta.org/emacs/
- Autoloaded defcustoms, Lennart Borgman, 2009/01/05
- Re: Autoloaded defcustoms, Stefan Monnier, 2009/01/05
- Re: Autoloaded defcustoms, Lennart Borgman, 2009/01/05
- Re: Autoloaded defcustoms, Stefan Monnier, 2009/01/05
- Re: Autoloaded defcustoms, Lennart Borgman, 2009/01/06
- Re: Autoloaded defcustoms, Stefan Monnier, 2009/01/06
- Re: Autoloaded defcustoms, Lennart Borgman, 2009/01/06
- Re: Autoloaded defcustoms, Juri Linkov, 2009/01/06
- Re: Autoloaded defcustoms, Lennart Borgman, 2009/01/06
- Re: Autoloaded defcustoms, Chetan Pandya, 2009/01/06
- Re: Autoloaded defcustoms, Lennart Borgman, 2009/01/06
- Re: Autoloaded defcustoms, Stefan Monnier, 2009/01/06