From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: ob-core, org-outline-overlay-data error and byte-compile warning Date: Tue, 05 Mar 2019 07:55:26 +1100 Message-ID: <87y35uuzpd.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:32835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0ucc-0000Kh-Aq for emacs-orgmode@gnu.org; Mon, 04 Mar 2019 15:55:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0ucb-00030g-6d for emacs-orgmode@gnu.org; Mon, 04 Mar 2019 15:55:38 -0500 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:37519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0uca-0002wO-SF for emacs-orgmode@gnu.org; Mon, 04 Mar 2019 15:55:37 -0500 Received: by mail-pg1-x52f.google.com with SMTP id q206so3923822pgq.4 for ; Mon, 04 Mar 2019 12:55:36 -0800 (PST) Received: from tim-desktop (2001-44b8-31f2-bb00-99c5-a130-7969-79d4.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:99c5:a130:7969:79d4]) by smtp.gmail.com with ESMTPSA id v186sm11867756pfv.184.2019.03.04.12.55.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Mar 2019 12:55:34 -0800 (PST) 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" To: emacs-orgmode@gnu.org I strongly suspect that part of your issue is that you have a 'mixed' installation - part of 9.1 and part of 9.2 being rolled up together when everything is compiled. It is *CRITICAL* that no org functionality is loaded when you install org from ELPA. For this reason, I only ever update the org package from the org repo in a fresh Emacs session and ensure that nothing is loading any org functionality until after all the elpa install stuff has completed. Make sure nothing directly or indirectly loads org in your init before your package.el and elpa section. Remove the existing elpa/org or org-plus-contrib directory and try again in a fresh emacs session. Tim zimoun writes: > Dear, > > First of all, thank you for this awesome tool !! > > > I am a bit confused and I should have something twisted with my config > but I am not able to find what. If someone has an explanation... > Or maybe it is well-known. > > Well, I am running Emacs from Guix and the version is: > GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.0) > of 2018-11-14. > > and it comes from Org 9.1: > Org mode version 9.1.9 (release_9.1.9-65-g5e4542 > @ /gnu/stor/vsiqlxhj7lnydhhi85jc1pg0xzhcfdny-emacs-26.1/share/emacs/26= .1/lisp/org/) > > Because I prefer a more up-to-date version of Org, say 9.2, I have in > my init.el: > > (add-to-list 'package-archives > '("org" . "http://orgmode.org/elpa/")) > (package-initialize) > (use-package org > :ensure org-plus-contrib) > > Then the version 9.2 lives locally: > Org mode version 9.2.2 (9.2.2-elpaplus > @ /home/simon/.emacs.d/elpa/org-plus-contrib-20190304/) > > > The issue is when I evaluate `org-babel-execute-buffer', then it fails > with the error: > Symbol=E2=80=99s function definition is void: org-outline-overlay-data > > Hum? there is an incompatible change documented [1] in the Changes but > it should not interfere, right? > Well, if I find-grep in my ~/.emacs.d/ for `org-outline-overlay-data' > then nothing if found. > (and neither in the site-lisp/ from "system install") > > > So, I manually remove the byte-compiled file `ob-core.elc', and I > reload everything and now it works as expected. Hum?! > Then I again byte-compile the file `ob-core.el' with > emacs -batch -f batch-byte-compile ob-core.el > then it warns: > > In end of data: > ob-core.el:3149:1:Warning: the following functions are not known to be > defined: org-remove-indentation, org-completing-read, org-trim, > org-outline-overlay-data, org-set-outline-overlay-data, org-in-regexp, > proper-list-p > > and after reloaded everything, it fails with the message "Symbol [...] > void: org-outline-overlay-data". > > > I think I miss something about the byte-compiling stuff. > Now, I am using the `ob-core.el' file and not the byte-compiled one, > but I would like to understand what is wrong; if it is not a bug. > > > Thank you in advance for in pointer and/or insights. > > > All the best, > simon > > > [1] https://orgmode.org/Changes.html --=20 Tim Cross