From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: autoloads not working correctly for org-table.el? Date: Fri, 27 Feb 2015 18:12:24 +0800 Message-ID: <87mw3z4q9j.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRHuc-0003tD-E7 for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 05:12:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRHuV-0005b9-Vo for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 05:12:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:55923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRHuV-0005aC-Om for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 05:12:43 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YRHuU-0007rj-8n for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 11:12:42 +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 ; Fri, 27 Feb 2015 11:12:37 +0100 Received: from eric by 111.199.145.15 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2015 11:12: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: emacs-orgmode@gnu.org Hi, I've got this in my message-mode-hook: 'turn-on-orgstruct++ It does just what I want, except the variable orgtbl-line-start-regexp isn't loaded, which wrecks auto-fill. Line 22894 of org.el has this: (defvar orgtbl-line-start-regexp) ; From org-table.el But that doesn't actually *load* the value of that variable, so using orgstruct++ mode gives me a bunch of these: Symbol's value as variable is void: orgtbl-line-start-regexp every time point gets past fill column, and the filling thing kicks in. 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'... Eric