From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Bug: need to eval-when-compile org-compat [8.0.5 (8.0.5-elpaplus /u/kimr/elisp/emacs-24/org-plus-contrib-20130704/)] Date: Mon, 8 Jul 2013 05:11:45 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uw3k8-00070K-Kx for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 01:12:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uw3k7-0006SU-Pn for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 01:12:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:35758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uw3k7-0006SQ-Ie for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 01:12:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uw3k5-0007Na-PS for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 07:12:05 +0200 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jul 2013 07:12:05 +0200 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jul 2013 07:12:05 +0200 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: emacs-orgmode@gnu.org Richard Kim 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.