GNU bug report logs - #38479
Org Mode is borked

Previous Next

Package: guix;

Reported by: Diego Nicola Barbato <dnbarbato <at> posteo.de>

Date: Tue, 3 Dec 2019 23:00:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38479 in the body.
You can then email your comments to 38479 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#38479; Package guix. (Tue, 03 Dec 2019 23:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Diego Nicola Barbato <dnbarbato <at> posteo.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 03 Dec 2019 23:00:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
To: bug-guix <at> gnu.org
Subject: Org Mode is borked
Date: Tue, 03 Dec 2019 23:59:27 +0100
Hi Guix,

Our Org Mode package (emacs-org) seems to be broken in a funny way.
Here's how to reproduce this bug (on commit dac7928):

1) Install ‘emacs’ and ‘emacs-org’.
2) Start Emacs and work around https://debbugs.gnu.org/38399 by adding
   the directory containing org to the front of ‘load-path’:
   --8<---------------cut here---------------start------------->8---
   (push "/path/to/org-9.2.6" load-path)
   --8<---------------cut here---------------end--------------->8---
3) Open a new org file:
   --8<---------------cut here---------------start------------->8---
   C-x C-f foo.org RET
   --8<---------------cut here---------------end--------------->8---
4) Enter the following text into the buffer:
   --8<---------------cut here---------------start------------->8---
   #+STARTUP: indent
   --8<---------------cut here---------------end--------------->8---
5) Verify you're running Org Mode version 9.2.6 by running:
   --8<---------------cut here---------------start------------->8---
   M-x org-version RET
   --8<---------------cut here---------------end--------------->8---
6) Here comes the fun part: Hit C-c C-c.  This will produce the
   following error message:
   --8<---------------cut here---------------start------------->8---
   Symbol’s function definition is void: org-outline-overlay-data
   --8<---------------cut here---------------end--------------->8---
7) Now reload Org from source (instead of the .elc files):
   --8<---------------cut here---------------start------------->8---
   C-u C-c C-x !
   --8<---------------cut here---------------end--------------->8---
6) Repeat step 6.  This time it succeeds!
   --8<---------------cut here---------------start------------->8---
   Local setup has been refreshed
   --8<---------------cut here---------------end--------------->8---

The function ‘org-outline-overlay-data’ isn't defined anywhere in the
org-9.2.6 source, but it is defined in the org bundled with Emacs.
Because of this I suspect that the new emacs-build-system generates a
weird chimera containing parts of both org-9.2.6 and org-9.1.9.

To my untrained eye this looks like it’s probably a consequence of the
aforementioned bug #38399.  So I'd expect this issue to disappear as
soon as that one is fixed.

Regards,

Diego




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sun, 08 Dec 2019 03:38:02 GMT) Full text and rfc822 format available.

Notification sent to Diego Nicola Barbato <dnbarbato <at> posteo.de>:
bug acknowledged by developer. (Sun, 08 Dec 2019 03:38:03 GMT) Full text and rfc822 format available.

Message #10 received at 38479-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Diego Nicola Barbato <dnbarbato <at> posteo.de>
Cc: 38479-done <at> debbugs.gnu.org
Subject: Re: bug#38479: Org Mode is borked
Date: Sun, 08 Dec 2019 12:37:33 +0900
Hello Diego!

Diego Nicola Barbato <dnbarbato <at> posteo.de> writes:

> Hi Guix,
>
> Our Org Mode package (emacs-org) seems to be broken in a funny way.
> Here's how to reproduce this bug (on commit dac7928):
>
> 1) Install ‘emacs’ and ‘emacs-org’.
> 2) Start Emacs and work around https://debbugs.gnu.org/38399 by adding
>    the directory containing org to the front of ‘load-path’:
>    --8<---------------cut here---------------start------------->8---
>    (push "/path/to/org-9.2.6" load-path)
>    --8<---------------cut here---------------end--------------->8---
> 3) Open a new org file:
>    --8<---------------cut here---------------start------------->8---
>    C-x C-f foo.org RET
>    --8<---------------cut here---------------end--------------->8---
> 4) Enter the following text into the buffer:
>    --8<---------------cut here---------------start------------->8---
>
>    #+STARTUP: indent
>    --8<---------------cut here---------------end--------------->8---
>
> 5) Verify you're running Org Mode version 9.2.6 by running:
>    --8<---------------cut here---------------start------------->8---
>    M-x org-version RET
>    --8<---------------cut here---------------end--------------->8---
> 6) Here comes the fun part: Hit C-c C-c.  This will produce the
>    following error message:
>    --8<---------------cut here---------------start------------->8---
>    Symbol’s function definition is void: org-outline-overlay-data
>    --8<---------------cut here---------------end--------------->8---
> 7) Now reload Org from source (instead of the .elc files):
>    --8<---------------cut here---------------start------------->8---
>    C-u C-c C-x !
>    --8<---------------cut here---------------end--------------->8---
> 6) Repeat step 6.  This time it succeeds!
>    --8<---------------cut here---------------start------------->8---
>    Local setup has been refreshed
>    --8<---------------cut here---------------end--------------->8---

I could reproduce (and fix :-)) this problem.

The solution was to *prepend* instead of appending the source directory of the software being
compiled to EMACSLOADPATH, in the 'add-source-to-load-path phase of the
Emacs build system.

Pushed to master with commit add773c37a10e2c900fcfaff745e095b7fe96fbb.

Thank you for the report and reproduction steps.

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 05 Jan 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.