From mboxrd@z Thu Jan 1 00:00:00 1970 From: "info@bastianebeling.org" Subject: Re: org-mobile-push problem Date: Sun, 6 Nov 2011 22:24:46 +0100 Message-ID: References: <81lirxwgfg.fsf@gmail.com> <672A30FC-B88F-40CA-BD39-B5A10409C922@bastianebeling.org> <81r51lc6ea.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNAD0-0007w4-Gh for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 16:24:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNACy-00014b-AW for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 16:24:54 -0500 Received: from emailserver1.namecheaphosting.com ([65.98.58.42]:40639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNACy-00014U-5Y for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 16:24:52 -0500 In-Reply-To: <81r51lc6ea.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K , emacs-orgmode@gnu.org Am 06.11.2011 um 22:01 schrieb Jambunathan K: > "info@bastianebeling.org" writes: >=20 >> Hi Jambunathan, >>=20 >>>=20 >>>> 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. >>>>=20 >>>> I'm using Aquamacs (for Mac OS): >>>>=20 >>>> 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. >>>>=20 >>>> 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.=20 >>>=20 >>> Do=20 >>> M-x customize-variable RET package-archives RET >>>=20 >>> and delete the following "Org-mode" archive from the list: >>>=20 >>> --8<---------------cut here---------------start------------->8--- >>> (add-to-list 'package-archives=20 >>> '("Org-mode" . "http://orgmode.org/pkg/daily/")) >>> --8<---------------cut here---------------end--------------->8--- >>>=20 >>=20 >> Ok, deleted. >>=20 >>> Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir = and >>> recursively delete the directory corresponding to "Org-mode" = archive. >>>=20 >>>> 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.=20 >>>=20 >>>> 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. >>>>=20 >>>> I hope that was more helpful. If you need more information, I will = be >>>> happy to try to provide it.=20 >>>=20 >>> I am trying to isolate the root cause of the issue here. Hope you = can >>> help me locate the root cause. >>>=20 >>> Try the following procedure: >>>=20 >>> 1. Store the org-*.tar that you have downloaded in some safe place. >>=20 >> Done. >>=20 >>> 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. >>=20 >> Done. >>=20 >>> 3. Check your .emacs - Does it make have (require 'org-install)? If = it >>> has this entry remove that line or comment out that line. >>=20 >> Commented out. >>=20 >>> 4. Restart emacs >>> 5. M-x locate-library RET org RET >>> 6. Note the directory reported.=20 >>> - If it looks like it is coming from your default Emacs = installation >>> directory then proceed to step 7.=20 >>=20 >> Obviously the directory I just added. >>=20 >>>=20 >>> - 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. >>=20 >> 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. >>=20 >> M-x org-version RET -> Org-mode version 6.33x >>=20 >>> Now do a M-x >>> package-install-file RET >>=20 >> 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: >>=20 >> I get the message:=20 >>=20 >> "Failed to download `Org-mode' archive." >=20 > After reconfiguring package-archives, you haven't saved it for future > sessions or you forgot to recompile your .emacs. >=20 >> It still lists the newest version of org-mode along the packages. >=20 > This is OK. Because org mode gets updated daily. You are actually = seeing > the tar files from here. >=20 > http://elpa.gnu.org/packages/ >=20 >> I hit "Install". >>=20 >> I get a couple of error messages. Find attached the complete compile >> log. >=20 >> Emacs restart. >>=20 >> org-version -> "Org-mode version 7.7" >>=20 >> org-mobile-push -> "byte-code: Invalid function: >> org-eval-in-environment" >=20 > This is along the expected lines. I have done a quick look at the > compile log.=20 >=20 > --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-from-face-or-color, > 175: org-entry-blocked-p, calendar-current-date, org-today, > 176: calendar-last-day-of-month, calendar-leap-year-p, > 177: org-order-calendar-date-args, org-string-match-p, > 178: org-duration-string-to-minutes, org-called-interactively-p, > 179: calendar-cursor-to-date, calendar-day-of-year-string > 180: =0C > 526: Compiling file /Users/bastian/Library/Application = Support/Aquamacs Emacs/elpa/org-20111105/org-macs.el at Sat Nov 5 = 22:20:04 2011 > 537: org-mobile.el:1103:1:Warning: the following functions are not = known to be defined: > 538: org-string-nw-p, org-find-olp > --8<---------------cut here---------------end--------------->8--- >=20 > Some notes: >=20 > 1. The files are compiled in alphabetical order. > 2. The only reference to org-eval-in-environment - of which you = complain > - is in compile log is in org-agenda.el. > 3. Note that org-macs.el gets compiled after org-agenda.el > 4. org-mobile.el has no references to org-eval-in-environment. >=20 > Needless to your "system-installed" org has no org-eval-in-environment > in it's org-macs.el. >=20 > The only way org-agenda.el can have org-eval-in-environment compiled = in > as macro is by >=20 > 1. compiling & loading org-macs.el from the package dir. > 2. compiling org-agenda.el >=20 > strictly in that order. >=20 > Now the question is what is the reciped for accomplishing 1 & 2 in = that > order. >=20 > I hope some of the observers will lend me a helping hand. >=20 > Relevant? > - = http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00223.html >=20 >> C-u C-c C-x r (Org reload uncompiled) >=20 > This preciely load org-macs.el from the elpa dir. >=20 >> org-mobile-push -> "Files for mobile viewer staged" >>=20 >> Works till next restart of emacs.=20 >=20 > So the problem is solved. >=20 >=20 >=20 > Now the exact order of org-reload and package-install-file is = important. >=20 > It is not package-install-file *alone* that solves the problem. It is > package-install-file *after* org-reload/uncompiled that solves the > problem. >=20 > The sequence is important. >=20 > Now the question is can we get everything working *without* requiring > that the user do a org-reload explicitly? >=20 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. I have those = problems only with "package-list-packages". >> Then I downloaded the .tar-file manually and installed via M-x >> package-install-file RET >>=20 >> Org-reload. >>=20 >> org-version -> "Org-mode version 7.7" >>=20 >> org-mobile-push -> "Files for mobile viewer staged" (i.e. everything = works) >>=20 >> I hope this helps to identify the problem with the package manager. >>=20 >>> 8. Restart Emacs >>> 9. Now. Do you still run in to the original org-macs issue that you >>> reported? >>>=20 >>> Extra information for me: >>> 10. What does C-h v package-enable-at-startup RET report? >>>=20 >>=20 >> package-enable-at-startup is a variable defined in `package.el'. >> Its value is t >>=20 >> Bastian