From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: autoloads not working correctly for org-table.el? Date: Fri, 27 Feb 2015 11:35:37 +0100 Message-ID: <877fv33ame.fsf@yahoo.fr> References: <87mw3z4q9j.fsf@ericabrahamsen.net> 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]:47074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRIG8-0007S3-7F for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 05:35:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRIG4-0003MK-5V for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 05:35:04 -0500 Received: from mxin.ulb.ac.be ([164.15.128.112]:14487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRIG3-0003Lr-VV for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 05:35:00 -0500 In-Reply-To: <87mw3z4q9j.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 27 Feb 2015 18:12:24 +0800") 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org 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. 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 ?) --- a/lisp/org.el +++ b/lisp/org.el @@ -22953,7 +22953,8 @@ (defun org-adaptive-fill-function () (save-excursion (beginning-of-line) (cond ((or (not (message-in-body-p)) - (looking-at orgtbl-line-start-regexp)) + (and (boundp 'orgtbl-line-start-regexp) + (looking-at orgtbl-line-start-regexp))) (throw 'exit nil)) ((looking-at message-cite-prefix-regexp) (throw 'exit (match-string-no-properties 0))) --=20 Nicolas Richard