all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot load org after updating to 9.0
@ 2016-11-07 11:44 Thibaut Verron
  2016-11-07 13:11 ` Thibaut Verron
  0 siblings, 1 reply; 3+ messages in thread
From: Thibaut Verron @ 2016-11-07 11:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

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).

What should I do?

Thanks,

Thibaut Verron

[-- Attachment #2: Type: text/html, Size: 1547 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot load org after updating to 9.0
  2016-11-07 11:44 Cannot load org after updating to 9.0 Thibaut Verron
@ 2016-11-07 13:11 ` Thibaut Verron
  2016-11-07 15:38   ` Thibaut Verron
  0 siblings, 1 reply; 3+ messages in thread
From: Thibaut Verron @ 2016-11-07 13:11 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2139 bytes --]

2016-11-07 12:44 GMT+01:00 Thibaut Verron <thibaut.verron@gmail.com>:

> 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

[-- Attachment #2: Type: text/html, Size: 2956 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot load org after updating to 9.0
  2016-11-07 13:11 ` Thibaut Verron
@ 2016-11-07 15:38   ` Thibaut Verron
  0 siblings, 0 replies; 3+ messages in thread
From: Thibaut Verron @ 2016-11-07 15:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2648 bytes --]

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>:
>
>> 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

[-- Attachment #2: Type: text/html, Size: 3920 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-07 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 11:44 Cannot load org after updating to 9.0 Thibaut Verron
2016-11-07 13:11 ` Thibaut Verron
2016-11-07 15:38   ` Thibaut Verron

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.