From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-mobile-push problem Date: Wed, 02 Nov 2011 19:28:52 -0400 Message-ID: <6633.1320276532@alphaville.americas.hpqcorp.net> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLkEq-0004pm-RU for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 19:28:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLkEp-0000lI-4Q for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 19:28:56 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:38744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLkEo-0000l0-VG for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 19:28:55 -0400 In-Reply-To: Message from "info@bastianebeling.org" of "Wed, 02 Nov 2011 17:29:49 BST." 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: maus.david@gmail.com, ASSI , emacs-orgmode@gnu.org, nicholas.dokos@hp.com 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. Nick > 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 > > > >