From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: missing autoload cookies for defcustom? Date: Sun, 09 Oct 2011 18:26:19 +0200 Message-ID: <87ehymb07o.fsf@Rainer.invalid> References: <87lisub39r.fsf@Rainer.invalid> <325572BB-9F81-4717-88B1-BD6CE033BDDF@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCwD0-0001jr-3Z for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 12:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCwCy-000491-M7 for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 12:26:38 -0400 Received: from lo.gmane.org ([80.91.229.12]:33561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCwCy-00048t-9E for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 12:26:36 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RCwCu-0002cn-QK for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 18:26:32 +0200 Received: from p57aad0d0.dip.t-dialin.net ([87.170.208.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Oct 2011 18:26:32 +0200 Received: from Stromeko by p57aad0d0.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Oct 2011 18:26:32 +0200 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: emacs-orgmode@gnu.org 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. 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