From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: autoloads not working correctly for org-table.el?
Date: Fri, 27 Feb 2015 11:35:37 +0100 [thread overview]
Message-ID: <877fv33ame.fsf@yahoo.fr> (raw)
In-Reply-To: <87mw3z4q9j.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 27 Feb 2015 18:12:24 +0800")
Eric Abrahamsen <eric@ericabrahamsen.net> 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
next prev parent reply other threads:[~2015-02-27 10:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 10:12 autoloads not working correctly for org-table.el? Eric Abrahamsen
2015-02-27 10:35 ` Nicolas Richard [this message]
2015-02-27 17:28 ` Nicolas Goaziou
2015-02-28 0:39 ` Eric Abrahamsen
2015-03-04 9:28 ` Eric Abrahamsen
2015-03-04 15:23 ` Eric S Fraga
2015-03-05 1:36 ` Eric Abrahamsen
2015-03-10 2:15 ` [PATCH] " Eric Abrahamsen
2015-03-10 3:07 ` Eric Abrahamsen
2015-03-10 8:24 ` Nicolas Goaziou
2015-03-10 8:48 ` Eric Abrahamsen
2015-03-10 11:02 ` Nicolas Goaziou
2015-03-22 13:52 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fv33ame.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=emacs-orgmode@gnu.org \
--cc=eric@ericabrahamsen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).