GNU bug report logs - #30961
Byte compilation problem with emacs-org

Previous Next

Package: guix;

Reported by: Konrad Hinsen <konrad.hinsen <at> fastmail.net>

Date: Tue, 27 Mar 2018 14:21:01 UTC

Severity: normal

Done: T460s laptop <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Subject: bug#30961: closed (Re: bug#30961: Byte compilation problem with
 emacs-org)
Date: Fri, 13 Dec 2019 02:07:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#30961: Byte compilation problem with emacs-org

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 30961 <at> debbugs.gnu.org.

-- 
30961: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30961
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: T460s laptop <maxim.cournoyer <at> gmail.com>
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: 30961-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: bug#30961: Byte compilation problem with emacs-org
Date: Fri, 13 Dec 2019 11:06:47 +0900
Hello Konrad,

Konrad Hinsen <konrad.hinsen <at> fastmail.net> writes:

> Hi Maxim,
>
>> Does this still occur on latest master?
>
> No, the bug disappeared with the update to Emacs 26.3, which comes with
> org-mode 9. So this bug report can be closed (which I'd have done
> already if I knew how to do it).
>
> Cheers,
>   Konrad

Thank you for the reply!

You can close bugs by replying to the bug number email address
(e.g. 30961 <at> debbugs.gnu.org for this one) with a "-done" appended to the
bug number, like this:

30961-done <at> debbugs.gnu.org

For more information regarding Debbugs commands, you may want to consult
info '(debbugs-ug)Mail Command Index' or the page
https://debbugs.gnu.org/server-refcard.html.

Closing,

Maxim

[Message part 3 (message/rfc822, inline)]
From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: bug-guix <at> gnu.org
Subject: Byte compilation problem with emacs-org
Date: Tue, 27 Mar 2018 16:20:24 +0200
An Emacs installation that includes package emacs-org exhibits a
well-documented bug: certain uses of org-babel, such as using the
R language, lead to the error message

   Invalid function: org-babel-header-args-safe-fn

For a discussion of this bug in other contexts, see for example:

   https://lists.gnu.org/archive/html/emacs-orgmode/2016-02/msg00415.html

I do not claim to fully understand the cause of this bug, but the
explanations mention a conflict between the org-mode version shipped
with Emacs and the later one being installed afterwards. This conflict
happens when the newer org-mode is byte-compiled, and leads to wrong
.elc files.

It is easy to verify that the Guix version also suffers from this
byte-compilation problem. Removing the "build" step, and thus byte
compilaion, by adding

    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (delete 'build))))

to the definition of emacs-org removes the error message.

What I do not understand yet is why this happens within Guix. The
explanations for the bug concentrate on the built-in org-mode version
having been initialized before byte compilation of the new one, and
recommend starting Emacs with the –quick option for the byte compilation
session. This is what Guix does as well, so the problem should not
exist.

I tried to remove the old org-mode from load-path during byte
compilation of the new version by manipulating EMACSLOADPATH, so far
without success. If Emacs' basic "lisp" dir is not on EMACSLOADPATH,
Emacs fails to do anything, but if it is, Emacs automatically adds
"lisp/org" via lisp/subdir.el.

Konrad.



This bug report was last modified 5 years and 167 days ago.

Previous Next


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