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

Package: emacs;

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


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

From: Ihor Radchenko <yantar92 <at> gmail.com>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: 40126 <at> debbugs.gnu.org
Subject: Re: bug#40126: Acknowledgement (28.0.50; [feature/native-comp] +
 Org 9.3.6 org-with-wide-buffer macro is wrongly treated as function)
Date: Tue, 07 Apr 2020 15:44:47 +0800
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.
I guess that org expects org.el to be compiled before other org files
and thus all the macro definitions should be loaded during the
compilation. Not sure if this expectation supposed to be valid.

Best,
Ihor

Andrea Corallo <akrl <at> sdf.org> writes:

> Hi Ihor,
>
> To me it looks the issue is in the code.
>
> `org-with-wide-buffer' is defined in org-macs.el but I see no requires
> in that file.
>
> Also in org-macs.el I see that `org-with-wide-buffer' is referenced the
> before its definition.  AFAIU this should be not correct (at least in
> CL).
>
> It's quite late but... am I wrong?
>
> Bests
>
>   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 39 days ago.

Previous Next


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