Re: [O] org-mobile-push problem
> I tried and it is not necessary to org-reload/uncompiled before > installing org with the command "package-install-file". It is > "package-install-file" alone that solves the problem. Maybe there is some aspect of elisp compilation that I don't understand. 1. Restart Emacs 2. If M-x locate-library RET org RET reports Emacs-23 system path and *not* elpa path. 3. package-install-file 4. Run push 5. Do you see a crash. (2) is important. > I have those problems only with "package-list-packages". Hope your unable to download "Org-mode" problem is solved now ... --
Re: [O] org-mobile-push problem
Am 06.11.2011 um 22:01 schrieb Jambunathan K: > "i...@bastianebeling.org" writes: > >> Hi Jambunathan, >> >>> Sorry, I didn't get into too much detail here because I had the feeling that the problem might have been cause by me not being able to use the package manager correctly rather than the package manager itself. But if it could help others, of course, I'm sharing the details as far as I understand them. I'm using Aquamacs (for Mac OS): GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Copyright (C) 2011 Free Software Foundation, Inc. When I run "package-list-packages", I get the message "Failed to download `Org-mode' archive." (didn't note that before), but it still offered the latest version of Org nevertheless. >>> >>> Do >>> M-x customize-variable RET package-archives RET >>> >>> and delete the following "Org-mode" archive from the list: >>> >>> --8<---cut here---start->8--- >>> (add-to-list 'package-archives >>> '("Org-mode" . "http://orgmode.org/pkg/daily/";)) >>> --8<---cut here---end--->8--- >>> >> >> Ok, deleted. >> >>> Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir and >>> recursively delete the directory corresponding to "Org-mode" archive. >>> I could install it from there and Org appeared to be updated to version 7.7, but somehow the macro "org-eval-in-environment" was only found after reloading Org uncompiled after every restart of Emacs. >>> This could be repeated infinitely, i.e., I always got this error message when running "package-list-packages" and it always offered me to install Org. Now I downloaded the tar-file manually and installed it with "package-install-file". Now "org-eval-in-environment" is found normally. After "package-list-files" I still get the message "Failed to download `Org-mode' archive.", but it shows Org as installed and does no longer offer to install it. I hope that was more helpful. If you need more information, I will be happy to try to provide it. >>> >>> I am trying to isolate the root cause of the issue here. Hope you can >>> help me locate the root cause. >>> >>> Try the following procedure: >>> >>> 1. Store the org-*.tar that you have downloaded in some safe place. >> >> Done. >> >>> 2. rm -rf ~/.emacs.d/elpa/org-* {BE CAREFUL HERE, YOU ARE DELETING >>> STUFF} >>> - In this step you are deleting your org installed through elpa. >> >> Done. >> >>> 3. Check your .emacs - Does it make have (require 'org-install)? If it >>> has this entry remove that line or comment out that line. >> >> Commented out. >> >>> 4. Restart emacs >>> 5. M-x locate-library RET org RET >>> 6. Note the directory reported. >>> - If it looks like it is coming from your default Emacs installation >>>directory then proceed to step 7. >> >> Obviously the directory I just added. >> >>> >>> - If it looks like it is one of the directories added by you, delete >>>that directory from either load-path or simply delete it from the >>>disk. (To be safe, instead of deleting you can just rename or move >>>the directory somewhere else). Goto step 4. >>> 7. Note the version of Org with M-x org-version RET. >> >> Renaming the folder didn't help because Emacs still found it. Moved >> the folder and now M-x locate-library RET org RET points to the >> original directory. >> >> M-x org-version RET -> Org-mode version 6.33x >> >>> Now do a M-x >>> package-install-file RET >> >> Your procedure is exactly what I did eventually to get it running. It >> worked, when I installed org via package-install-file RET. Instead, >> now I am reporting in detail what happens when I do M-x >> package-list-packages: >> >> I get the message: >> >> "Failed to download `Org-mode' archive." > > After reconfiguring package-archives, you haven't saved it for future > sessions or you forgot to recompile your .emacs. > >> It still lists the newest version of org-mode along the packages. > > This is OK. Because org mode gets updated daily. You are actually seeing > the tar files from here. > > http://elpa.gnu.org/packages/ > >> I hit "Install". >> >> I get a couple of error messages. Find attached the complete compile >> log. > >> Emacs restart. >> >> org-version -> "Org-mode version 7.7" >> >> org-mobile-push -> "byte-code: Invalid function: >> org-eval-in-environment" > > This is along the expected lines. I have done a quick look at the > compile log. > > --8<---cut here---start->8--- > 168: In end of data: > 169: org-agenda.el:8546:1:Warning: the following functions are not known to > be defined: > 170: calendar-day-name, calendar-day-of-week, calendar-month-name, > 171: calenda
Re: [O] org-mobile-push problem
"i...@bastianebeling.org" writes: > Hi Jambunathan, > >> >>> Sorry, I didn't get into too much detail here because I had the >>> feeling that the problem might have been cause by me not being able >>> to use the package manager correctly rather than the package manager >>> itself. But if it could help others, of course, I'm sharing the >>> details as far as I understand them. >>> >>> I'm using Aquamacs (for Mac OS): >>> >>> GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) >>> of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 >>> Copyright (C) 2011 Free Software Foundation, Inc. >>> >>> When I run "package-list-packages", I get the message "Failed to >>> download `Org-mode' archive." (didn't note that before), but it still >>> offered the latest version of Org nevertheless. >> >> Do >> M-x customize-variable RET package-archives RET >> >> and delete the following "Org-mode" archive from the list: >> >> --8<---cut here---start->8--- >> (add-to-list 'package-archives >> '("Org-mode" . "http://orgmode.org/pkg/daily/";)) >> --8<---cut here---end--->8--- >> > > Ok, deleted. > >> Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir and >> recursively delete the directory corresponding to "Org-mode" archive. >> >>> I could install it from there and Org appeared to be updated to >>> version 7.7, but somehow the macro "org-eval-in-environment" was only >>> found after reloading Org uncompiled after every restart of >>> Emacs. >> >>> This could be repeated infinitely, i.e., I always got this error >>> message when running "package-list-packages" and it always offered me >>> to install Org. Now I downloaded the tar-file manually and installed >>> it with "package-install-file". Now "org-eval-in-environment" is found >>> normally. After "package-list-files" I still get the message "Failed >>> to download `Org-mode' archive.", but it shows Org as installed and >>> does no longer offer to install it. >>> >>> I hope that was more helpful. If you need more information, I will be >>> happy to try to provide it. >> >> I am trying to isolate the root cause of the issue here. Hope you can >> help me locate the root cause. >> >> Try the following procedure: >> >> 1. Store the org-*.tar that you have downloaded in some safe place. > > Done. > >> 2. rm -rf ~/.emacs.d/elpa/org-* {BE CAREFUL HERE, YOU ARE DELETING >> STUFF} >> - In this step you are deleting your org installed through elpa. > > Done. > >> 3. Check your .emacs - Does it make have (require 'org-install)? If it >> has this entry remove that line or comment out that line. > > Commented out. > >> 4. Restart emacs >> 5. M-x locate-library RET org RET >> 6. Note the directory reported. >> - If it looks like it is coming from your default Emacs installation >> directory then proceed to step 7. > > Obviously the directory I just added. > >> >> - If it looks like it is one of the directories added by you, delete >> that directory from either load-path or simply delete it from the >> disk. (To be safe, instead of deleting you can just rename or move >> the directory somewhere else). Goto step 4. >> 7. Note the version of Org with M-x org-version RET. > > Renaming the folder didn't help because Emacs still found it. Moved > the folder and now M-x locate-library RET org RET points to the > original directory. > > M-x org-version RET -> Org-mode version 6.33x > >> Now do a M-x >> package-install-file RET > > Your procedure is exactly what I did eventually to get it running. It > worked, when I installed org via package-install-file RET. Instead, > now I am reporting in detail what happens when I do M-x > package-list-packages: > > I get the message: > > "Failed to download `Org-mode' archive." After reconfiguring package-archives, you haven't saved it for future sessions or you forgot to recompile your .emacs. > It still lists the newest version of org-mode along the packages. This is OK. Because org mode gets updated daily. You are actually seeing the tar files from here. http://elpa.gnu.org/packages/ > I hit "Install". > > I get a couple of error messages. Find attached the complete compile > log. > Emacs restart. > > org-version -> "Org-mode version 7.7" > > org-mobile-push -> "byte-code: Invalid function: > org-eval-in-environment" This is along the expected lines. I have done a quick look at the compile log. --8<---cut here---start->8--- 168: In end of data: 169: org-agenda.el:8546:1:Warning: the following functions are not known to be defined: 170: calendar-day-name, calendar-day-of-week, calendar-month-name, 171: calendar-absolute-from-gregorian, org-with-gensyms, marker, 172: org-string-nw-p, org-eval-in-environment, 173: org-make-parameter-alist, calendar-gregorian-from-absolute, 174: calendar-date-string, org-face-fro
Re: [O] org-mobile-push problem
Hi Jambunathan, > >> Sorry, I didn't get into too much detail here because I had the >> feeling that the problem might have been cause by me not being able >> to use the package manager correctly rather than the package manager >> itself. But if it could help others, of course, I'm sharing the >> details as far as I understand them. >> >> I'm using Aquamacs (for Mac OS): >> >> GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) >> of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 >> Copyright (C) 2011 Free Software Foundation, Inc. >> >> When I run "package-list-packages", I get the message "Failed to >> download `Org-mode' archive." (didn't note that before), but it still >> offered the latest version of Org nevertheless. > > Do > M-x customize-variable RET package-archives RET > > and delete the following "Org-mode" archive from the list: > > --8<---cut here---start->8--- > (add-to-list 'package-archives > '("Org-mode" . "http://orgmode.org/pkg/daily/";)) > --8<---cut here---end--->8--- > Ok, deleted. > Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir and > recursively delete the directory corresponding to "Org-mode" archive. > >> I could install it from there and Org appeared to be updated to >> version 7.7, but somehow the macro "org-eval-in-environment" was only >> found after reloading Org uncompiled after every restart of >> Emacs. > >> This could be repeated infinitely, i.e., I always got this error >> message when running "package-list-packages" and it always offered me >> to install Org. Now I downloaded the tar-file manually and installed >> it with "package-install-file". Now "org-eval-in-environment" is found >> normally. After "package-list-files" I still get the message "Failed >> to download `Org-mode' archive.", but it shows Org as installed and >> does no longer offer to install it. >> >> I hope that was more helpful. If you need more information, I will be >> happy to try to provide it. > > I am trying to isolate the root cause of the issue here. Hope you can > help me locate the root cause. > > Try the following procedure: > > 1. Store the org-*.tar that you have downloaded in some safe place. Done. > 2. rm -rf ~/.emacs.d/elpa/org-* {BE CAREFUL HERE, YOU ARE DELETING > STUFF} > - In this step you are deleting your org installed through elpa. Done. > 3. Check your .emacs - Does it make have (require 'org-install)? If it > has this entry remove that line or comment out that line. Commented out. > 4. Restart emacs > 5. M-x locate-library RET org RET > 6. Note the directory reported. > - If it looks like it is coming from your default Emacs installation > directory then proceed to step 7. Obviously the directory I just added. > > - If it looks like it is one of the directories added by you, delete > that directory from either load-path or simply delete it from the > disk. (To be safe, instead of deleting you can just rename or move > the directory somewhere else). Goto step 4. > 7. Note the version of Org with M-x org-version RET. Renaming the folder didn't help because Emacs still found it. Moved the folder and now M-x locate-library RET org RET points to the original directory. M-x org-version RET -> Org-mode version 6.33x > Now do a M-x > package-install-file RET Your procedure is exactly what I did eventually to get it running. It worked, when I installed org via package-install-file RET. Instead, now I am reporting in detail what happens when I do M-x package-list-packages: I get the message: "Failed to download `Org-mode' archive." It still lists the newest version of org-mode along the packages. I hit "Install". I get a couple of error messages. Find attached the complete compile log. Leaving directory `/Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005' Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-C.el at Sat Nov 5 22:19:55 2011 Entering directory `/Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/' Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-R.el at Sat Nov 5 22:19:56 2011 Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-asymptote.el at Sat Nov 5 22:19:56 2011 Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-awk.el at Sat Nov 5 22:19:56 2011 Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-calc.el at Sat Nov 5 22:19:56 2011 Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-clojure.el at Sat Nov 5 22:19:56 2011 Compiling file /Users/bastian/Library/Application Support/Aquamacs Emacs/elpa/org-2005/ob-comint.el at Sat No
Re: [O] org-mobile-push problem
> Sorry, I didn't get into too much detail here because I had the > feeling that the problem might have been cause by me not being able > to use the package manager correctly rather than the package manager > itself. But if it could help others, of course, I'm sharing the > details as far as I understand them. > > I'm using Aquamacs (for Mac OS): > > GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) > of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 > Copyright (C) 2011 Free Software Foundation, Inc. > > When I run "package-list-packages", I get the message "Failed to > download `Org-mode' archive." (didn't note that before), but it still > offered the latest version of Org nevertheless. Do M-x customize-variable RET package-archives RET and delete the following "Org-mode" archive from the list: --8<---cut here---start->8--- (add-to-list 'package-archives '("Org-mode" . "http://orgmode.org/pkg/daily/";)) --8<---cut here---end--->8--- Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir and recursively delete the directory corresponding to "Org-mode" archive. > I could install it from there and Org appeared to be updated to > version 7.7, but somehow the macro "org-eval-in-environment" was only > found after reloading Org uncompiled after every restart of > Emacs. > This could be repeated infinitely, i.e., I always got this error > message when running "package-list-packages" and it always offered me > to install Org. Now I downloaded the tar-file manually and installed > it with "package-install-file". Now "org-eval-in-environment" is found > normally. After "package-list-files" I still get the message "Failed > to download `Org-mode' archive.", but it shows Org as installed and > does no longer offer to install it. > > I hope that was more helpful. If you need more information, I will be > happy to try to provide it. I am trying to isolate the root cause of the issue here. Hope you can help me locate the root cause. Try the following procedure: 1. Store the org-*.tar that you have downloaded in some safe place. 2. rm -rf ~/.emacs.d/elpa/org-* {BE CAREFUL HERE, YOU ARE DELETING STUFF} - In this step you are deleting your org installed through elpa. 3. Check your .emacs - Does it make have (require 'org-install)? If it has this entry remove that line or comment out that line. 4. Restart emacs 5. M-x locate-library RET org RET 6. Note the directory reported. - If it looks like it is coming from your default Emacs installation directory then proceed to step 7. - If it looks like it is one of the directories added by you, delete that directory from either load-path or simply delete it from the disk. (To be safe, instead of deleting you can just rename or move the directory somewhere else). Goto step 4. 7. Note the version of Org with M-x org-version RET. Now do a M-x package-install-file RET 8. Restart Emacs 9. Now. Do you still run in to the original org-macs issue that you reported? Extra information for me: 10. What does C-h v package-enable-at-startup RET report? > Bastian > > --
Re: [O] org-mobile-push problem
Am 03.11.2011 um 12:03 schrieb Jambunathan K: >> It says "Org-mode version 7.7". However, I feel that there was >> something strange with my installation. I checked my files in my Emacs >> folder and everything seemed really messed up, so I just reinstalled >> org from the latest build and now it works! I had tried that before >> automatically with the package manager but now I used the package >> manager to install it from the file. I think that is where the strange >> installation came from originally. > > It is not clear to me what you are saying here: > > Did the package manager solve your problem or it didn't solve your > problem? > > What version of emacs are you using? There were two previous instances > where people had issues with org-macs.el not being available when > certain files were compiled. > > I have a feeling that it is not the problem with the people as such but > how package manager goes about compiling the files. > > So any information you provide here will help improve the situation for > other folks. > -- Sorry, I didn't get into too much detail here because I had the feeling that the problem might have been cause by me not being able to use the package manager correctly rather than the package manager itself. But if it could help others, of course, I'm sharing the details as far as I understand them. I'm using Aquamacs (for Mac OS): GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Copyright (C) 2011 Free Software Foundation, Inc. When I run "package-list-packages", I get the message "Failed to download `Org-mode' archive." (didn't note that before), but it still offered the latest version of Org nevertheless. I could install it from there and Org appeared to be updated to version 7.7, but somehow the macro "org-eval-in-environment" was only found after reloading Org uncompiled after every restart of Emacs. This could be repeated infinitely, i.e., I always got this error message when running "package-list-packages" and it always offered me to install Org. Now I downloaded the tar-file manually and installed it with "package-install-file". Now "org-eval-in-environment" is found normally. After "package-list-files" I still get the message "Failed to download `Org-mode' archive.", but it shows Org as installed and does no longer offer to install it. I hope that was more helpful. If you need more information, I will be happy to try to provide it. Bastian
Re: [O] org-mobile-push problem
> It says "Org-mode version 7.7". However, I feel that there was > something strange with my installation. I checked my files in my Emacs > folder and everything seemed really messed up, so I just reinstalled > org from the latest build and now it works! I had tried that before > automatically with the package manager but now I used the package > manager to install it from the file. I think that is where the strange > installation came from originally. It is not clear to me what you are saying here: Did the package manager solve your problem or it didn't solve your problem? What version of emacs are you using? There were two previous instances where people had issues with org-macs.el not being available when certain files were compiled. I have a feeling that it is not the problem with the people as such but how package manager goes about compiling the files. So any information you provide here will help improve the situation for other folks. --
Re: [O] org-mobile-push problem
Am 03.11.2011 um 01:36 schrieb Nick Dokos: > i...@bastianebeling.org wrote: > >> >> Am 03.11.2011 um 00:28 schrieb Nick Dokos: >> >>> i...@bastianebeling.org wrote: >>> > when I run org-mobile-push: > > byte-code: Invalid function: org-eval-in-environment >>> org-eval-in-environment is a macro defined in org-macs.el and macros >>> sometimes cause problems with compiled code unless some care is taken. >>> With uncompiled code, you just have to make sure that the macro >>> definition is loaded, before you do the org-mobile-push: just add >>> >>> (require 'org-macs) >>> >>> after you load org in your .emacs (or wherever). >>> >>> Afaict, it is not called directly from org-mobile-push, but the agenda >>> code does call it (and does not require it), so maybe the solution is >>> that the (require 'org-macs) should be added to org-agenda.el; you might >>> try it and see whether it resolves the problem for you, but I'll let >>> David Maus or Achim Gratz or some other macro guru have the final word. >>> >>> Nick >> >> Thank you! Unfortunately, adding (require 'org-macs) to my .emacs >> and/or to my org-agenda.el didn't help. (I checked and the macro isn't >> defined in my org-macs.el nor does it appear in any other file on my >> computer.) >> > > What does M-x org-version RET say? It says "Org-mode version 7.7". However, I feel that there was something strange with my installation. I checked my files in my Emacs folder and everything seemed really messed up, so I just reinstalled org from the latest build and now it works! I had tried that before automatically with the package manager but now I used the package manager to install it from the file. I think that is where the strange installation came from originally. Nik, I hope you get it fixed as well. Nick and David, thanks for your help! Bastian
Re: [O] org-mobile-push problem
At Wed, 02 Nov 2011 19:28:52 -0400, Nick Dokos wrote: > > i...@bastianebeling.org wrote: > > > > Hi All, > > > > > > I'm trying to set up MobileOrg to try it out, but I'm getting the > > > following error when I run org-mobile-push: > > > > > > byte-code: Invalid function: org-eval-in-environment > > > > > > Hi, > > > > I have the same problem and get the same error message. My only fix is > > to hit C-u C-c C-x r (reload Org uncompiled) before running > > org-mobile-push. I would be very interested in ideas for a real > > solution, too. > > > > org-eval-in-environment is a macro defined in org-macs.el and macros > sometimes cause problems with compiled code unless some care is taken. > With uncompiled code, you just have to make sure that the macro > definition is loaded, before you do the org-mobile-push: just add > > (require 'org-macs) > > after you load org in your .emacs (or wherever). > > Afaict, it is not called directly from org-mobile-push, but the agenda > code does call it (and does not require it), so maybe the solution is > that the (require 'org-macs) should be added to org-agenda.el; you might > try it and see whether it resolves the problem for you, but I'll let > David Maus or Achim Gratz or some other macro guru have the final word. In the past the invalid function error indicated an unclean source tree, thus a make clean && make should fix the error. A (require 'org-macs) should not be necessary because if the macro would not have been availabe in `org-agenda' the compiler would have complained. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpbogWQsy52f.pgp Description: PGP signature
Re: [O] org-mobile-push problem
i...@bastianebeling.org wrote: > > Am 03.11.2011 um 00:28 schrieb Nick Dokos: > > > i...@bastianebeling.org wrote: > > > >>> when I run org-mobile-push: > >>> > >>> byte-code: Invalid function: org-eval-in-environment > >> > > org-eval-in-environment is a macro defined in org-macs.el and macros > > sometimes cause problems with compiled code unless some care is taken. > > With uncompiled code, you just have to make sure that the macro > > definition is loaded, before you do the org-mobile-push: just add > > > > (require 'org-macs) > > > > after you load org in your .emacs (or wherever). > > > > Afaict, it is not called directly from org-mobile-push, but the agenda > > code does call it (and does not require it), so maybe the solution is > > that the (require 'org-macs) should be added to org-agenda.el; you might > > try it and see whether it resolves the problem for you, but I'll let > > David Maus or Achim Gratz or some other macro guru have the final word. > > > > Nick > > Thank you! Unfortunately, adding (require 'org-macs) to my .emacs > and/or to my org-agenda.el didn't help. (I checked and the macro isn't > defined in my org-macs.el nor does it appear in any other file on my > computer.) > What does M-x org-version RET say? It was defined after 7.7 rolled out: , | commit 5423b329c1d28b11c250f14cfeca7415197a6269 | Author: David Maus | Date: Wed Aug 10 07:43:10 2011 +0200 | | New macro: Evaluate FORM in ENVIRONMENT | | * org-macs.el (org-eval-in-environment): New macro. Evaluate FORM in | ENVIRONMENT. ` and its use was introduced in org-agenda.el with the following commit: , | commit f0958680db0ffd1aca70d3105c6bdcb32d4b84a0 | Author: David Maus | Date: Wed Aug 10 07:56:29 2011 +0200 | | Use `org-eval-in-environment | | * org-agenda.el (org-batch-agenda, org-batch-agenda-csv): Use | `org-eval-in-environment. ` so I don't understand how this could happen. Do you have a Frankenstein installation of some sort with files from different versions? Nick
Re: [O] org-mobile-push problem
Am 03.11.2011 um 00:28 schrieb Nick Dokos: > i...@bastianebeling.org wrote: > >>> when I run org-mobile-push: >>> >>> byte-code: Invalid function: org-eval-in-environment >> > org-eval-in-environment is a macro defined in org-macs.el and macros > sometimes cause problems with compiled code unless some care is taken. > With uncompiled code, you just have to make sure that the macro > definition is loaded, before you do the org-mobile-push: just add > > (require 'org-macs) > > after you load org in your .emacs (or wherever). > > Afaict, it is not called directly from org-mobile-push, but the agenda > code does call it (and does not require it), so maybe the solution is > that the (require 'org-macs) should be added to org-agenda.el; you might > try it and see whether it resolves the problem for you, but I'll let > David Maus or Achim Gratz or some other macro guru have the final word. > > Nick Thank you! Unfortunately, adding (require 'org-macs) to my .emacs and/or to my org-agenda.el didn't help. (I checked and the macro isn't defined in my org-macs.el nor does it appear in any other file on my computer.) Bastian
Re: [O] org-mobile-push problem
i...@bastianebeling.org wrote: > > Hi All, > > > > I'm trying to set up MobileOrg to try it out, but I'm getting the > > following error when I run org-mobile-push: > > > > byte-code: Invalid function: org-eval-in-environment > > > Hi, > > I have the same problem and get the same error message. My only fix is > to hit C-u C-c C-x r (reload Org uncompiled) before running > org-mobile-push. I would be very interested in ideas for a real > solution, too. > org-eval-in-environment is a macro defined in org-macs.el and macros sometimes cause problems with compiled code unless some care is taken. With uncompiled code, you just have to make sure that the macro definition is loaded, before you do the org-mobile-push: just add (require 'org-macs) after you load org in your .emacs (or wherever). Afaict, it is not called directly from org-mobile-push, but the agenda code does call it (and does not require it), so maybe the solution is that the (require 'org-macs) should be added to org-agenda.el; you might try it and see whether it resolves the problem for you, but I'll let David Maus or Achim Gratz or some other macro guru have the final word. Nick > Bastian > > > Am 02.11.2011 um 17:16 schrieb Nicholas Putnam: > > > > > > > > > Here is my minimal .emacs file: > > > > (setq load-path (cons "~/elisp/org-mode/lisp/" load-path)) > > (global-set-key "\C-ca" 'org-agenda) > > (setq org-agenda-files (quote ("~/org/test.org"))) > > (setq org-mobile-directory "~/Dropbox/MobileOrg") > > > > > > Where ~/org/test.org contains this: > > > > > > * Head 1 > > ** subhead 1 > > > > one two > > > > > > And has no problem exporting as HTML to the browser: > > > > test > > Table of Contents > > > >1 Head 1 > >1.1 subhead 1 > > > > 1 Head 1 > > 1.1 subhead 1 > > > > one two > > > > Date: 2011-11-02 11:15:17 CDT > > > > Author: Nicholas Putnam > > > > Org version 7.7 with Emacs version 23 > > Validate XHTML 1.0 > > > > > > > > > > I'm in sync with git://repo.or.cz/org-mode > > > > > > Any ideas? > > > > Thanks, > > > > Nik > > > >
Re: [O] org-mobile-push problem
> Hi All, > > I'm trying to set up MobileOrg to try it out, but I'm getting the > following error when I run org-mobile-push: > > byte-code: Invalid function: org-eval-in-environment Hi, I have the same problem and get the same error message. My only fix is to hit C-u C-c C-x r (reload Org uncompiled) before running org-mobile-push. I would be very interested in ideas for a real solution, too. Bastian Am 02.11.2011 um 17:16 schrieb Nicholas Putnam: > > > > Here is my minimal .emacs file: > > (setq load-path (cons "~/elisp/org-mode/lisp/" load-path)) > (global-set-key "\C-ca" 'org-agenda) > (setq org-agenda-files (quote ("~/org/test.org"))) > (setq org-mobile-directory "~/Dropbox/MobileOrg") > > > Where ~/org/test.org contains this: > > > * Head 1 > ** subhead 1 > > one two > > > And has no problem exporting as HTML to the browser: > > test > Table of Contents > >1 Head 1 >1.1 subhead 1 > > 1 Head 1 > 1.1 subhead 1 > > one two > > Date: 2011-11-02 11:15:17 CDT > > Author: Nicholas Putnam > > Org version 7.7 with Emacs version 23 > Validate XHTML 1.0 > > > > > I'm in sync with git://repo.or.cz/org-mode > > > Any ideas? > > Thanks, > > Nik >