From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: autoloads not working correctly for org-table.el? Date: Sat, 28 Feb 2015 08:39:03 +0800 Message-ID: <877fv250pk.fsf@ericabrahamsen.net> References: <87mw3z4q9j.fsf@ericabrahamsen.net> <877fv33ame.fsf@yahoo.fr> <87ioens1px.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRVR5-0001i2-8h for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 19:39:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRVR2-0004p2-1H for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 19:39:15 -0500 Received: from plane.gmane.org ([80.91.229.3]:54216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRVR1-0004on-Qj for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 19:39:11 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YRVR0-0007bJ-Np for emacs-orgmode@gnu.org; Sat, 28 Feb 2015 01:39:10 +0100 Received: from 111.199.145.15 ([111.199.145.15]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Feb 2015 01:39:10 +0100 Received: from eric by 111.199.145.15 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Feb 2015 01:39:10 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > 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 © 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, Thanks!