GNU bug report logs -
#40126
28.0.50; [feature/native-comp] + Org 9.3.6 org-with-wide-buffer macro is wrongly treated as function
Previous Next
Reported by: Ihor Radchenko <yantar92 <at> gmail.com>
Date: Wed, 18 Mar 2020 20:43:02 UTC
Severity: normal
Found in version 28.0.50
Done: Andrea Corallo <akrl <at> sdf.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Andrea,
> yes but in org-refile.el there are no requires at all :O
That looks strange for me too. Though org-mode somehow manages to
be compiled with normal byte-compilation...
I suspect that it relies on compiling org.el first with
(eval-and-compile (require 'org-macs)) forcing Emacs to have all the
macros defined there to be available (dynamically) during compilation of
all other org-mode source files.
I have reported this as a bug to org-mode mail-list [1]. Lets see what they
say.
On the native-compile branch side, it would probably be a good idea to
throw an error in similar scenarios instead of generating erroneous .eln
file.
Best,
Ihor
[1] https://www.mail-archive.com/emacs-orgmode <at> gnu.org/msg127457.html
Andrea Corallo <akrl <at> sdf.org> writes:
> Ihor Radchenko <yantar92 <at> gmail.com> writes:
>
>> Hi Andrea,
>>
>> I am not really familiar with compilation in Emacs, so correct me if I
>> misunderstand something.
>>
>> I have looked through org package files and fount the following line in
>> org.el:
>>
>> (eval-and-compile (require 'org-macs))
>>
>> I suspect that it supposed to be responsible for loading the macro
>> definitions (including org-with-wide-buffer) during byte-compilation.
>
> Hi Ihor,
>
> yes but in org-refile.el there are no requires at all :O
>
> org-refile is always required in other files after org but it can't be
> compiled alone correctly if it has no appropriate require in its code.
> This applies to byte compilation too.
>
> Andrea
>
> --
> akrl <at> sdf.org
--
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China
Email: yantar92 <at> gmail.com, ihor_radchenko <at> alumni.sutd.edu.sg
This bug report was last modified 5 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.