unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman@gmail.com>
To: "Juri Linkov" <juri@jurta.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Autoloaded defcustoms
Date: Tue, 6 Jan 2009 03:16:58 +0100	[thread overview]
Message-ID: <e01d8a50901051816k40a6b0f6vad191bef26891ab8@mail.gmail.com> (raw)
In-Reply-To: <873afx5gqp.fsf@jurta.org>

On Tue, Jan 6, 2009 at 1:57 AM, Juri Linkov <juri@jurta.org> 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	other threads:[~2009-01-06  2:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-05 18:21 Autoloaded defcustoms Lennart Borgman
2009-01-05 22:15 ` Stefan Monnier
2009-01-05 22:22   ` Lennart Borgman
2009-01-06  0:57     ` Juri Linkov
2009-01-06  2:16       ` Lennart Borgman [this message]
2009-01-06  3:20     ` Stefan Monnier
2009-01-06 12:27       ` Lennart Borgman
2009-01-06 14:54         ` Stefan Monnier
2009-01-06 15:00           ` Lennart Borgman
2009-01-06 15:07             ` Juri Linkov
2009-01-06 15:17               ` Lennart Borgman
2009-01-06 18:18                 ` Chetan Pandya
2009-01-06 18:21                   ` Lennart Borgman
2009-01-06 18:20                 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50901051816k40a6b0f6vad191bef26891ab8@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).