emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: missing autoload cookies for defcustom?
Date: Sun, 09 Oct 2011 18:26:19 +0200	[thread overview]
Message-ID: <87ehymb07o.fsf@Rainer.invalid> (raw)
In-Reply-To: 325572BB-9F81-4717-88B1-BD6CE033BDDF@gmail.com

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?

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.


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

  reply	other threads:[~2011-10-09 16: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 [this message]
2011-10-10  5:26     ` Carsten Dominik

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=87ehymb07o.fsf@Rainer.invalid \
    --to=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).