Re: [O] org-mobile-push problem

2011-11-06 Thread i...@bastianebeling.org
Am 06.11.2011 um 22:01 schrieb Jambunathan K:

 i...@bastianebeling.org 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-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

Re: [O] org-mobile-push problem

2011-11-05 Thread i...@bastianebeling.org
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 Nov  5 22:19:56 2011

Compiling file /Users/bastian/Library/Application Support/Aquamacs 
Emacs/elpa/org-2005/ob-css.el at Sat 

Re: [O] org-mobile-push problem

2011-11-03 Thread i...@bastianebeling.org
Am 03.11.2011 um 01:36 schrieb Nick Dokos:

 i...@bastianebeling.org i...@bastianebeling.org wrote:
 
 
 Am 03.11.2011 um 00:28 schrieb Nick Dokos:
 
 i...@bastianebeling.org 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

2011-11-03 Thread i...@bastianebeling.org

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

2011-11-02 Thread i...@bastianebeling.org
 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
 




Re: [O] org-mobile-push problem

2011-11-02 Thread i...@bastianebeling.org

Am 03.11.2011 um 00:28 schrieb Nick Dokos:

 i...@bastianebeling.org 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