emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] autoloads not working correctly for org-table.el?


From: Nicolas Richard
Subject: Re: [O] autoloads not working correctly for org-table.el?
Date: Fri, 27 Feb 2015 11:35:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eric Abrahamsen <address@hidden> 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 © 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)))


-- 
Nicolas Richard



reply via email to

[Prev in Thread] Current Thread [Next in Thread]