* Error with org-adaptive-fill-function and mu4e
@ 2014-02-08 17:41 Igor Sosa Mayor
2014-02-09 7:53 ` Bastien
2014-03-01 22:51 ` Igor Sosa Mayor
0 siblings, 2 replies; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-08 17:41 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I have the following enable in my .emacs:
(add-hook 'message-mode-hook 'turn-on-orgstruct++)
(add-hook 'mail-mode-hook 'turn-on-orgstruct++)
When I use mu4e (which mu4e-compose-mode is based upon the message-mode)
I get the following error in *Messages*
org-adaptive-fill-function: Symbol's value as variable is void: orgtbl-line-start-regex
This happens when the cursor arrives at the end of the line (70
characters) and the line gets not broken. In mail-mode there is not such
an error...
Any idea?
many thanks in advance!
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-08 17:41 Error with org-adaptive-fill-function and mu4e Igor Sosa Mayor
@ 2014-02-09 7:53 ` Bastien
2014-02-09 8:32 ` Igor Sosa Mayor
2014-03-01 22:51 ` Igor Sosa Mayor
1 sibling, 1 reply; 13+ messages in thread
From: Bastien @ 2014-02-09 7:53 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: emacs-orgmode
Hi Igor,
Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
> I have the following enable in my .emacs:
>
> (add-hook 'message-mode-hook 'turn-on-orgstruct++)
> (add-hook 'mail-mode-hook 'turn-on-orgstruct++)
>
> When I use mu4e (which mu4e-compose-mode is based upon the message-mode)
> I get the following error in *Messages*
>
> org-adaptive-fill-function: Symbol's value as variable is void: orgtbl-line-start-regex
>
> This happens when the cursor arrives at the end of the line (70
> characters) and the line gets not broken. In mail-mode there is not such
> an error...
There is no "orgtbl-line*" variable in latest Org.
What version of Org are you using?
Also, do you have the same error with
(add-hook 'message-mode-hook 'turn-on-orgstruct)
(add-hook 'mail-mode-hook 'turn-on-orgstruct)
?
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 7:53 ` Bastien
@ 2014-02-09 8:32 ` Igor Sosa Mayor
2014-02-09 9:11 ` Bastien
0 siblings, 1 reply; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-09 8:32 UTC (permalink / raw)
To: emacs-orgmode
Hi Bastien,
Am Sun, Feb 09, 2014 at 08:53:03AM +0100, Bastien wrote:
> There is no "orgtbl-line*" variable in latest Org.
> What version of Org are you using?
>
> Also, do you have the same error with
>
> (add-hook 'message-mode-hook 'turn-on-orgstruct)
> (add-hook 'mail-mode-hook 'turn-on-orgstruct)
thanks for your answer... I'm using 8.2.5h.
With the code you suggest me, I do NOT get the error, but lists for
instance do not work (i.e. there is no indentation, etc.).
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 8:32 ` Igor Sosa Mayor
@ 2014-02-09 9:11 ` Bastien
2014-02-09 10:20 ` Igor Sosa Mayor
0 siblings, 1 reply; 13+ messages in thread
From: Bastien @ 2014-02-09 9:11 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: emacs-orgmode
Hi Igor,
Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
> Am Sun, Feb 09, 2014 at 08:53:03AM +0100, Bastien wrote:
>> There is no "orgtbl-line*" variable in latest Org.
>> What version of Org are you using?
>>
>> Also, do you have the same error with
>>
>> (add-hook 'message-mode-hook 'turn-on-orgstruct)
>> (add-hook 'mail-mode-hook 'turn-on-orgstruct)
>
> thanks for your answer... I'm using 8.2.5h.
Thanks. Still, since orgtbl-line* is not in 8.2.5h, I suspect you
didn't add (require 'org) early enough in your .emacs.el.
The latest Org needs to be loaded before you use it in mu4a.
> With the code you suggest me, I do NOT get the error, but lists for
> instance do not work (i.e. there is no indentation, etc.).
Lists in orgstruct works fine here in Gnus, but see above, as we
need to sort this out first.
--
Bastien
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 9:11 ` Bastien
@ 2014-02-09 10:20 ` Igor Sosa Mayor
2014-02-09 13:34 ` Igor Sosa Mayor
2014-02-09 13:43 ` Bastien
0 siblings, 2 replies; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-09 10:20 UTC (permalink / raw)
To: emacs-orgmode
Hi Bastien,
> Thanks. Still, since orgtbl-line* is not in 8.2.5h, I suspect you
> didn't add (require 'org) early enough in your .emacs.el.
thanks again for your answer (and for your work in orgmode).
I put (requir 'org) in the first line of emacs.el, restart emacs and
lists are still not working. C-h m tells me OrgStruct is loaded. As I
said, with
(add-hook 'message-mode-hook 'turn-on-orgstruct)
(add-hook 'mail-mode-hook 'turn-on-orgstruct)
there is no error with orgtbl-line-etc. anymore.
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 10:20 ` Igor Sosa Mayor
@ 2014-02-09 13:34 ` Igor Sosa Mayor
2014-02-09 13:43 ` Bastien
1 sibling, 0 replies; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-09 13:34 UTC (permalink / raw)
To: emacs-orgmode
Am Sun, Feb 09, 2014 at 11:20:55AM +0100, Igor Sosa Mayor wrote:
> I put (requir 'org) in the first line of emacs.el, restart emacs and
> lists are still not working. C-h m tells me OrgStruct is loaded. As I
well I have to be more precise: lists are not working if the item goes
over one line. If the list item is shorter does not go over one line,
then I can insert with M-RET one new item...
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 10:20 ` Igor Sosa Mayor
2014-02-09 13:34 ` Igor Sosa Mayor
@ 2014-02-09 13:43 ` Bastien
2014-02-09 14:06 ` Igor Sosa Mayor
1 sibling, 1 reply; 13+ messages in thread
From: Bastien @ 2014-02-09 13:43 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: emacs-orgmode
Hi Igor,
Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
> I put (requir 'org) in the first line of emacs.el
If you are using 8.2.5h, from either Git or ELPA -- your first lines
should be to modify the load-path (if using Git) or to initialize your
ELPA archives. Otherwise (require 'org) will just require the Org
distribution that is known by Emacs at this point.
(Maybe I'm stating the obvious, but those things always need to be
double-checked.)
> , restart emacs and
> lists are still not working. C-h m tells me OrgStruct is loaded. As I
> said, with
>
> (add-hook 'message-mode-hook 'turn-on-orgstruct)
> (add-hook 'mail-mode-hook 'turn-on-orgstruct)
>
> there is no error with orgtbl-line-etc. anymore.
Good -- turn-on-orgstruct is enough for most purposes.
--
Bastien
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 13:43 ` Bastien
@ 2014-02-09 14:06 ` Igor Sosa Mayor
2014-02-10 8:54 ` Bastien
0 siblings, 1 reply; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-09 14:06 UTC (permalink / raw)
To: emacs-orgmode
Hi Bastien,
> If you are using 8.2.5h, from either Git or ELPA -- your first lines
thanks again for your help. Normally I dont have any (require 'org).
Orgmode is installed in /usr/share/emacs/site-lisp/org/ by my package
manager (pacman in archlinux). I load emacs
Everything works in orgmode perfectly, org-version shows 8.2.5h, if I
look up an org variable I can see that the help system points to org.el
in the directory I mentioned, etc.
That is: there are no other problems apart from this issue (but this
problem is there since a couple of months at least).
> Good -- turn-on-orgstruct is enough for most purposes.
Sure. But unfortunately it only works if the item is no longer than the
70 characters I have put as fill-column...
It is not soo important. I just want to get rid of this issue, because
I tend to use often lists in my emails...
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-09 14:06 ` Igor Sosa Mayor
@ 2014-02-10 8:54 ` Bastien
2014-02-10 11:53 ` Igor Sosa Mayor
0 siblings, 1 reply; 13+ messages in thread
From: Bastien @ 2014-02-10 8:54 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: emacs-orgmode
Hi Igor,
Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
> It is not soo important. I just want to get rid of this issue, because
> I tend to use often lists in my emails...
Yes. Again, the issue is that, when turn-on-orgstruct++ is called
within a mu4e buffer, org-mode is not yet loaded from the correct
location -- otherwise the error would be different.
So: do all what you can do to make sure that org-mode is explicitely
loaded from the correct location before this function is turned on,
and it should disappear.
PS: The problem with M-x org-version RET is this: if Emacs calls
an autoloaded Org function from the Emacs distribution (= not from
the newly installed location), and then you add the new location
to the load-path, then M-x org-version RET reports 8.2.5* because
it now knows about the new location.
--
Bastien
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-10 8:54 ` Bastien
@ 2014-02-10 11:53 ` Igor Sosa Mayor
2014-02-10 14:42 ` Bastien
0 siblings, 1 reply; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-10 11:53 UTC (permalink / raw)
To: emacs-orgmode
Hi Bastien,
Am Mon, Feb 10, 2014 at 09:54:06AM +0100, Bastien wrote:
> Yes. Again, the issue is that, when turn-on-orgstruct++ is called
> within a mu4e buffer, org-mode is not yet loaded from the correct
> location -- otherwise the error would be different.
>
> So: do all what you can do to make sure that org-mode is explicitely
> loaded from the correct location before this function is turned on,
> and it should disappear.
Thanks again. I have
(add-to-list 'load-path "/usr/share/emacs/site-lisp/org")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/org_contrib/lisp")
(require 'org)
at the very begin of .emacs.el. It does not work. (neither in mu4e nor
in mail-mode).
But: don't worry. You have other and more important things to do. I will
try to solve it by myself modifying some configurations, because I have
a very very complex emacs and orgmode config files.
Thanks again.
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-10 11:53 ` Igor Sosa Mayor
@ 2014-02-10 14:42 ` Bastien
2014-02-10 16:16 ` Igor Sosa Mayor
0 siblings, 1 reply; 13+ messages in thread
From: Bastien @ 2014-02-10 14:42 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: emacs-orgmode
Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
> Thanks again. I have
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/org")
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/org_contrib/lisp")
> (require 'org)
>
> at the very begin of .emacs.el. It does not work. (neither in mu4e nor
> in mail-mode).
Well, another semi-wild guess is that maybe the ArchLinux package does
not take care of creating the proper autoloads.
Go to /usr/share/emacs/site-lisp/org and see if you have an accurate
org-loaddefs.el (should be ~107K.)
If completely desperate, try
(load "location/of/your/8.2.5h/org-loaddefs")
...
But despair is not something to hope :)
> But: don't worry. You have other and more important things to do. I will
> try to solve it by myself modifying some configurations, because I have
> a very very complex emacs and orgmode config files.
Good luck!
--
Bastien
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-10 14:42 ` Bastien
@ 2014-02-10 16:16 ` Igor Sosa Mayor
0 siblings, 0 replies; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-02-10 16:16 UTC (permalink / raw)
To: emacs-orgmode
Hi Bastien,
Am Mon, Feb 10, 2014 at 03:42:59PM +0100, Bastien wrote:
> Well, another semi-wild guess is that maybe the ArchLinux package does
> not take care of creating the proper autoloads.
>
> Go to /usr/share/emacs/site-lisp/org and see if you have an accurate
> org-loaddefs.el (should be ~107K.)
thanks. No chance. Still not working...
Thanks in any case for your help!
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Error with org-adaptive-fill-function and mu4e
2014-02-08 17:41 Error with org-adaptive-fill-function and mu4e Igor Sosa Mayor
2014-02-09 7:53 ` Bastien
@ 2014-03-01 22:51 ` Igor Sosa Mayor
1 sibling, 0 replies; 13+ messages in thread
From: Igor Sosa Mayor @ 2014-03-01 22:51 UTC (permalink / raw)
To: emacs-orgmode
Am Sat, Feb 08, 2014 at 06:41:49PM +0100, Igor Sosa Mayor schrieb:
> Hi,
>
> I have the following enable in my .emacs:
>
> (add-hook 'message-mode-hook 'turn-on-orgstruct++)
> (add-hook 'mail-mode-hook 'turn-on-orgstruct++)
>
> When I use mu4e (which mu4e-compose-mode is based upon the message-mode)
> I get the following error in *Messages*
>
> org-adaptive-fill-function: Symbol's value as variable is void: orgtbl-line-start-regex
Just for the historical records. At the end I managed to solve this
problem by just adding the following lines:
(add-hook 'message-mode-hook 'orgstruct++-mode 'append)
(add-hook 'mail-mode-hook 'orgstruct++-mode 'append)
(add-hook 'message-mode-hook 'orgtbl-mode 'append)
(add-hook 'mail-mode-hook 'orgtbl-mode 'append)
--
:: Igor Sosa Mayor :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-03-03 10:15 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-08 17:41 Error with org-adaptive-fill-function and mu4e Igor Sosa Mayor
2014-02-09 7:53 ` Bastien
2014-02-09 8:32 ` Igor Sosa Mayor
2014-02-09 9:11 ` Bastien
2014-02-09 10:20 ` Igor Sosa Mayor
2014-02-09 13:34 ` Igor Sosa Mayor
2014-02-09 13:43 ` Bastien
2014-02-09 14:06 ` Igor Sosa Mayor
2014-02-10 8:54 ` Bastien
2014-02-10 11:53 ` Igor Sosa Mayor
2014-02-10 14:42 ` Bastien
2014-02-10 16:16 ` Igor Sosa Mayor
2014-03-01 22:51 ` Igor Sosa Mayor
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).