From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: missing autoload cookies for defcustom? Date: Mon, 10 Oct 2011 07:26:38 +0200 Message-ID: References: <87lisub39r.fsf@Rainer.invalid> <325572BB-9F81-4717-88B1-BD6CE033BDDF@gmail.com> <87ehymb07o.fsf@Rainer.invalid> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RD8Nu-0001BQ-Vp for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 01:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RD8Nt-0007Eu-P8 for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 01:26:42 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:40408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RD8Nt-0007Ef-Jh for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 01:26:41 -0400 Received: by eye4 with SMTP id 4so242364eye.0 for ; Sun, 09 Oct 2011 22:26:40 -0700 (PDT) In-Reply-To: <87ehymb07o.fsf@Rainer.invalid> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org On 9.10.2011, at 18:26, Achim Gratz wrote: > Carsten Dominik 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. >=20 > I see, so what about those autoloaded defcustoms org-mode already has > picked up? Should they not be removed, then? Good question. Not sure. >=20 > 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 >=20 > 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)... >=20 >> 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. >>=20 >> Maybe we just need to document this in a good place? >=20 > Sure, I certainly didn't know about it - but then it probably still > misses the target audience. >=20 > 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 >=20 >=20 > Regards, > Achim. > --=20 > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ >=20 > Factory and User Sound Singles for Waldorf Q+, Q and microQ: > http://Synth.Stromeko.net/Downloads.html#WaldorfSounds >=20 >=20