Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
Igor Sosa Mayor 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
Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Igor, Igor Sosa Mayor 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
Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Igor, Igor Sosa Mayor 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
Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Igor, Igor Sosa Mayor 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
Re: [O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Igor, Igor Sosa Mayor 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
[O] Error with org-adaptive-fill-function and mu4e
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 :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::