From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: Most Recent Org Update Date: Tue, 5 Nov 2013 17:29:01 +0900 Message-ID: <20131105082901.GF18733@smoon> References: <87ob608a62.fsf@wall.flintfam.org> <87a9hklyyp.fsf@Rainer.invalid> <20131105025153.GE18733@smoon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdc0i-00015z-F8 for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 03:29:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vdc0Z-0004ex-LN for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 03:29:16 -0500 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:53697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdc0Z-0004eS-Bd for emacs-orgmode@gnu.org; Tue, 05 Nov 2013 03:29:07 -0500 Received: by mail-la0-f42.google.com with SMTP id ep20so1654539lab.29 for ; Tue, 05 Nov 2013 00:29:06 -0800 (PST) Content-Disposition: inline In-Reply-To: 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: Dov Grobgeld Cc: emacs-orgmode Hello, ** Dov Grobgeld [2013-11-05 09:24:24 +0200]: > I had the same problem after pulling from git yesterday and worked around > it by doing: > ; This is a bug work around > (defun org-element-cache-reset (&optional all) (interactive)) > before requiring org. I noticed that 'org-element-cache-reset' function is "defined" in 'org.el' (actually it is "declare-function" as many others) and used in 2 placed in that file. At 1/5 of 'org.el' file there is (require 'org-footnote) and in that file there only one "call" to org-element-cache-reset function *without* defining it (no 'declare-function'). That "call" is in function 'org-footnote-section' and has form :initialize 'custom-initialize-set :set (lambda (var val) (set var val) (org-element-cache-reset 'all)) As I understand, the chain: (require 'org) [in .emacs] which it turns (require 'org-footnote) which has 'initialize' and call to 'org-element-cache-reset' leads to this issue. (As I said earlier I don't know Emacs Lisp well enough so use quoted terms). I tried to put 'declare-function' into 'org-footnote.el' but without luck (other error message), so I came up to my workaround (I noticed that there is a line in 'org.el' which do something with 'org-footnote-section' and set it to nil). --- WBR, Vladimir Lomov -- Fourth Law of Applied Terror: The night before the English History mid-term, your Biology instructor will assign 200 pages on planaria. Corollary: Every instructor assumes that you have nothing else to do except study for that instructor's course.