From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-mobile-push problem Date: Wed, 02 Nov 2011 20:36:51 -0400 Message-ID: <8628.1320280611@alphaville.americas.hpqcorp.net> References: <6633.1320276532@alphaville.americas.hpqcorp.net> <28A83D1E-AEBD-4A45-9AB1-E3E288CFE682@bastianebeling.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLlIc-00076u-BR for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 20:36:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLlIa-0005jp-Q6 for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 20:36:54 -0400 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:12537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLlIa-0005jd-LC for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 20:36:52 -0400 In-Reply-To: Message from "info@bastianebeling.org" of "Thu, 03 Nov 2011 01:09:08 BST." <28A83D1E-AEBD-4A45-9AB1-E3E288CFE682@bastianebeling.org> 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: "info@bastianebeling.org" Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org info@bastianebeling.org wrote: > > Am 03.11.2011 um 00:28 schrieb Nick Dokos: > > > info@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