From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Kim Subject: 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: Sun, 07 Jul 2013 20:41:38 -0700 Message-ID: Reply-To: emacs18@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uw2Kr-0005qY-3X for emacs-orgmode@gnu.org; Sun, 07 Jul 2013 23:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uw2Ko-0005v7-Ge for emacs-orgmode@gnu.org; Sun, 07 Jul 2013 23:41:57 -0400 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:56886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uw2Ko-0005v1-9N for emacs-orgmode@gnu.org; Sun, 07 Jul 2013 23:41:54 -0400 Received: by mail-pb0-f42.google.com with SMTP id un1so3838115pbc.29 for ; Sun, 07 Jul 2013 20:41:53 -0700 (PDT) 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 Line 83 of org.el nees to be changed from (require 'org-compat) to (eval-when-compile (require 'org-compat)) 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. The call stack is org-with-silent-modifications org-refresh-category-properties org-get-category org-entry-properties org-element-headline-parser org-element--current-element org-element--parse-elements org-element-parse-buffer org-export-filter-apply-functions org-export-as org-export-to-file org-html-export-to-html org-export-dispatch call-interactively(org-export-dispatch nil nil) This occured on emacs-24 (which I compiled using latest version from http://bzr.savannah.gnu.org/r/emacs/emacs-24/ branch as of July 6, 2013). This is with org-plus-contrib-20130704.tar ELPA package installed. I can work around (invalid-function org-with-silent-modifications) problem if I byte compile org.el again after making sure that org-compat is loaded. However it seems like to me that one should not have to mess with files byte compiled as part of `M-x package-install'. That is why I think the one line change suggested above should be made. Emacs : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2013-07-06 on kimr-laptop Package: Org-mode version 8.0.5 (8.0.5-elpaplus @ /u/kimr/elisp/emacs-24/org-plus-contrib-20130704/)