emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: "info@bastianebeling.org" <info@bastianebeling.org>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: org-mobile-push problem
Date: Wed, 02 Nov 2011 20:36:51 -0400	[thread overview]
Message-ID: <8628.1320280611@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from "info@bastianebeling.org" <info@bastianebeling.org> of "Thu, 03 Nov 2011 01:09:08 BST." <28A83D1E-AEBD-4A45-9AB1-E3E288CFE682@bastianebeling.org>

info@bastianebeling.org <info@bastianebeling.org> wrote:

> 
> Am 03.11.2011 um 00:28 schrieb Nick Dokos:
> 
> > info@bastianebeling.org <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 <dmaus@ictsoc.de>
| 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 <dmaus@ictsoc.de>
| 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	other threads:[~2011-11-03  0:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 16:16 org-mobile-push problem Nicholas Putnam
2011-11-02 16:29 ` info
2011-11-02 23:28   ` Nick Dokos
2011-11-03  0:09     ` info
2011-11-03  0:36       ` Nick Dokos [this message]
2011-11-03 10:05         ` info
2011-11-03 11:03           ` Jambunathan K
2011-11-03  5:26     ` David Maus
  -- strict thread matches above, loose matches on Subject: below --
2011-11-03 11:43 info
2011-11-03 12:15 ` Jambunathan K
2011-11-05 22:02   ` info
2011-11-06 21:01     ` Jambunathan K
2011-11-06 21:24       ` info
2011-11-06 21:35         ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8628.1320280611@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=info@bastianebeling.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).