emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-mobile-push problem


From: Nick Dokos
Subject: Re: [O] org-mobile-push problem
Date: Wed, 02 Nov 2011 20:36:51 -0400

address@hidden <address@hidden> wrote:

> 
> Am 03.11.2011 um 00:28 schrieb Nick Dokos:
> 
> > address@hidden <address@hidden> 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 <address@hidden>
| 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 <address@hidden>
| 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]