From: Carsten Dominik <carsten.dominik@gmail.com>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: missing autoload cookies for defcustom?
Date: Mon, 10 Oct 2011 07:26:38 +0200 [thread overview]
Message-ID: <CA660C21-BF9E-43D5-9FE3-B69CA2879846@gmail.com> (raw)
In-Reply-To: <87ehymb07o.fsf@Rainer.invalid>
On 9.10.2011, at 18:26, Achim Gratz wrote:
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>> This is not correct for Org when it is distributed with Emacs. Emacs
>> builds its own autoload files, and it would pull in all these defcustoms.
>
> I see, so what about those autoloaded defcustoms org-mode already has
> picked up? Should they not be removed, then?
Good question. Not sure.
>
> lisp/ob-tangle.el: (defcustom org-babel-tangle-lang-exts
> lisp/org-export-generic.el: (defcustom org-export-generic-links-to-notes t
> lisp/org-man.el: (defcustom org-man-command 'man
>
> It seems that this would be a common problem, but I can't find a better
> solution. Something like a special autoload cookie that only triggers
> on some other function (or possibly autoload)...
>
>> The work-around Org itself provides is to provide a command to load all
>> the autolod files, so that then, the defcustoms will be available.
>> The function is `org-require-autoloaded-modules'. Also, if you
>> run `M-x org-customize', this will happen automatically.
>>
>> Maybe we just need to document this in a good place?
>
> Sure, I certainly didn't know about it - but then it probably still
> misses the target audience.
>
> Also, it seems that not all defcustoms are picked up that way: after
> switching to the Org customize group via customize-group I only get
> about 500 completions for customize-variable, whereas the sources have
> over 700. Calling org-customize manually increases the number of
> "known" variables to 679, but still not all of them.
Yes, this might be possible. I think it does not pick up modules that can, but have not been, requested via the `org-modules' variable. I.e. once you have decided to use a module and turned it on with org-modules, you should get your variables defined with org-customize.
Regards
- Carsten
>
>
> Regards,
> Achim.
> --
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
>
> Factory and User Sound Singles for Waldorf Q+, Q and microQ:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
>
>
prev parent reply other threads:[~2011-10-10 5:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-09 15:20 missing autoload cookies for defcustom? Achim Gratz
2011-10-09 15:50 ` Carsten Dominik
2011-10-09 16:26 ` Achim Gratz
2011-10-10 5:26 ` Carsten Dominik [this message]
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA660C21-BF9E-43D5-9FE3-B69CA2879846@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=Stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/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/org-mode.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).