From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibaut Verron Subject: Re: Cannot load org after updating to 9.0 Date: Mon, 7 Nov 2016 16:38:07 +0100 Message-ID: References: Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b86eb92afd5ee0540b7d029 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3m0F-00051z-5p for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 10:38:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3m0D-0008Vp-Ld for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 10:38:31 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:38155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c3m0D-0008Ve-B0 for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 10:38:29 -0500 Received: by mail-wm0-x236.google.com with SMTP id f82so126161343wmf.1 for ; Mon, 07 Nov 2016 07:38:29 -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 --047d7b86eb92afd5ee0540b7d029 Content-Type: text/plain; charset=UTF-8 2016-11-07 14:11 GMT+01:00 Thibaut Verron : > 2016-11-07 12:44 GMT+01:00 Thibaut Verron : > >> Hello, >> >> I updated my emacs packages this morning, including org 9.0, from GNU >> elpa. Apparently (based on other folders in my elpa installation folder), >> my last previous update was on april 11, 2016, so the problem may not come >> from the very latest version. Nonetheless, I didn't find any other mention >> of it online. >> >> So, how does the problem appear? When I start emacs, I get the following >> "warnings": >> >> > WARNING: No org-loaddefs.el file could be found from where org.el is >> loaded. >> > You need to run "make" or "make autoloads" from Org lisp directory >> > Warning (initialization): An error occurred while loading >> `(...)/.emacs.d/init.el': >> >> > Symbol's function definition is void: org-element-update-syntax >> >> For the first warning, I tried looking in the >> ~/.emacs.d/elpa/org-20161102 folder (which is where the loaded org.el file >> is), and it does contain org-loaddefs.el. There is no makefile, but I guess >> that it is normal for an installation using elpa. >> >> The second warning is an error and blocks further evaluation of my init >> file. For some reason though, --debug-init doesn't give any stacktrace. >> >> I'm using emacs 24.3.1 on linux (ubuntu 14.04). >> > > When I try to evaluate org-loaddefs manually, I get an error "Symbol's > function definition is void: function-put". > > Apparently, based on this thread [1], it can happen if I installed org > using a more recent version of emacs than the one I am using currently. It > was certainly the case until this morning, but I installed the update from > this computer, and after the problem appeared, I uninstalled and > reinstalled org, again from this computer. > > Replacing occurrences of function-put with put got rid of the first > warning (the warning message could have been more helpful), but not of the > second one. > > org-element-update-syntax is defined in org-element.el, so I guess it is > another compilation problem. How can I make sure that the package is > compiled for my version of emacs? > > Thibaut Verron > > [1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg00336.html > The problem is now fixed for me. I uninstalled the package, restarted emacs with -Q, initialized package and reinstalled from there. I had to remove the occurrences of function-put again though. Without -Q, it seems that there was a compilation error in org-attach.el at line 42 (require 'org-id), related to an undefined function "org-link-set-parameter". Thibaut --047d7b86eb92afd5ee0540b7d029 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2016= -11-07 14:11 GMT+01:00 Thibaut Verron <thibaut.verron@gmail.com= >:
2016-11-07 12:= 44 GMT+01:00 Thibaut Verron <thibaut.verron@gmail.com>:
He= llo,

I updated my emacs packages this morning, including= org 9.0, from GNU elpa. Apparently (based on other folders in my elpa inst= allation folder), my last previous update was on april 11, 2016, so the pro= blem may not come from the very latest version. Nonetheless, I didn't f= ind any other mention of it online.

So, how does t= he problem appear? When I start emacs, I get the following "warnings&q= uot;:

> WARNING: No org-loaddefs.el file c= ould be found from where org.el is loaded.
> You need to run &= quot;make" or "make autoloads" from Org lisp directory
=
> Warning (initialization): An error occurred while loading `(...)/= .emacs.d/init.el':

> Symbol's function = definition is void: org-element-update-syntax

For the first warning, I tried looking in the ~/.emacs.d/elpa/org-2016110= 2 folder (which is where the loaded org.el file is), and it does contain or= g-loaddefs.el. There is no makefile, but I guess that it is normal for an i= nstallation using elpa.=C2=A0

The second warning i= s an error and blocks further evaluation of my init file. For some reason t= hough, --debug-init doesn't give any stacktrace.

I'm using emacs 24.3.1 on linux (ubuntu 14.04).

When I try to evaluate org-loaddefs manually= , I get an error "Symbol's function definition is void: function-p= ut".

Apparently, based on this thread [1], it= can happen if I installed org using a more recent version of emacs than th= e one I am using currently. It was certainly the case until this morning, b= ut I installed the update from this computer, and after the problem appeare= d, I uninstalled and reinstalled org, again from this computer.
<= br>
Replacing occurrences of function-put with put got rid of the= first warning (the warning message could have been more helpful), but not = of the second one.

org-element-update-syntax is de= fined in org-element.el, so I guess it is another compilation problem. How = can I make sure that the package is compiled for my version of emacs?
=

Thibaut Verron


The problem is now = fixed for me. I uninstalled the package, restarted emacs with -Q, initializ= ed package and reinstalled from there. I had to remove the occurrences of f= unction-put again though.

Without -Q, it seems that there was a compilation error= in org-attach.el at line 42 (require 'org-id), related to an undefined= function "org-link-set-parameter".

Thibaut

--047d7b86eb92afd5ee0540b7d029--