From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: autoloads not working correctly for org-table.el? Date: Fri, 27 Feb 2015 18:28:42 +0100 Message-ID: <87ioens1px.fsf@nicolasgoaziou.fr> References: <87mw3z4q9j.fsf@ericabrahamsen.net> <877fv33ame.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YROhO-0002Pp-Fv for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 12:27:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YROhL-00068a-13 for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 12:27:38 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:50020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YROhK-00068W-Qv for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 12:27:34 -0500 In-Reply-To: <877fv33ame.fsf@yahoo.fr> (Nicolas Richard's message of "Fri, 27 Feb 2015 11:35:37 +0100") 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: Nicolas Richard Cc: Eric Abrahamsen , emacs-orgmode@gnu.org Hello, Nicolas Richard writes: > Eric Abrahamsen writes: >> I don't actually know what the right thing to do is. Maybe just a >> (require 'org-table) inside `orgstruct++-mode'? Autoload doesn't seem to >> work for variables, nor is there a `declare-variable'... > > Either (require 'org-table) in org-adaptive-fill-function or applying > the following patch should fix your problem. Thank you. However, I eventually applied a different patch. > I don't know what is the right thing either =C2=A9 e.g. I have no idea why > this function has special-casing for 'message-mode (it should perhaps > have special casing for when orgstruct++-mode is active, instead ?) Ideally, we should extract all orgstruct code from Org core ("org-footnote.el" also contains code related to Message mode) and move it to an "org-struct.el" or some such library. Regards, --=20 Nicolas Goaziou