From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: org-mobile-push problem Date: Thu, 03 Nov 2011 06:26:47 +0100 Message-ID: <87y5vxkc88.wl%dmaus@ictsoc.de> References: <6633.1320276532@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Thu_Nov__3_06:26:42_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLppH-0000sW-9k for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 01:26:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLppF-0004zt-1e for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 01:26:55 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:52766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLppE-0004zQ-QY for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 01:26:53 -0400 Received: by faaf16 with SMTP id f16so1528706faa.0 for ; Wed, 02 Nov 2011 22:26:51 -0700 (PDT) In-Reply-To: <6633.1320276532@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: maus.david@gmail.com, ASSI , emacs-orgmode@gnu.org, "info@bastianebeling.org" --pgp-sign-Multipart_Thu_Nov__3_06:26:42_2011-1 Content-Type: text/plain; charset=US-ASCII At Wed, 02 Nov 2011 19:28:52 -0400, Nick Dokos wrote: > > info@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.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Thu_Nov__3_06:26:42_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk6yJhcACgkQma24O1pEeOa67gEAwGcQdHs5eOD2K4rZuH8Kg+3r VpKejYxy/lte9NLUTtQBAIW6y77VWa6mbBMQVHzcRSdFeGFG4XUx9FMZ1lS3Qves =R3zk -----END PGP SIGNATURE----- --pgp-sign-Multipart_Thu_Nov__3_06:26:42_2011-1--