emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@NexGo.DE>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: need to eval-when-compile org-compat [8.0.5	(8.0.5-elpaplus <at> 	/u/kimr/elisp/emacs-24/org-plus-contrib-20130704/)]
Date: Mon, 8 Jul 2013 05:11:45 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130708T065928-765@post.gmane.org> (raw)
In-Reply-To: qtmli5hbtvx.fsf@gmail.com

Richard Kim <emacs18 <at> gmail.com> writes:
> 
> Line 83 of org.el nees to be changed from
> 
>   (require 'org-compat)
> 
> to
> 
>   (eval-when-compile (require 'org-compat))

No, absolutely not: require does an implicit eval-and-compile.

> in order to prevent (invalid-function org-with-silent-modifications)
> error when an org file is loaded and `C-x C-e h h' is hit to export to
> a file.

This is a different problem, namely package manager getting into the game
after parts of the Org that ship with Emacs24 have already been loaded. 
This has been discussed before as well as how to workaround it.  In a
nutshell, you need to install Orgmode in an entirely fresh session.  When
you still hit this problem, then restart Emacs and (in the same session)
remove and then re-install Org.


Regards,
Achim.

      reply	other threads:[~2013-07-08  5:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-08  3:41 Bug: need to eval-when-compile org-compat [8.0.5 (8.0.5-elpaplus @ /u/kimr/elisp/emacs-24/org-plus-contrib-20130704/)] Richard Kim
2013-07-08  5:11 ` Achim Gratz [this message]

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=loom.20130708T065928-765@post.gmane.org \
    --to=stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.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).