GNU bug report logs -
#59900
30.0.50; map pattern in pcase causes a byte-compile error
Previous Next
Full log
View this message in rfc822 format
> From: Michael Heerdegen <michael_heerdegen <at> web.de>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 59900 <at> debbugs.gnu.org
> Date: Fri, 09 Dec 2022 03:11:14 +0100
>
> Akira Komamura <akira.komamura <at> gmail.com> writes:
>
> > I encountered similar errors in other libraries that contain a `map' pattern
> > inside a `pcase' form. It didn't happen until recently, when I updated Emacs
> > and
> > began to get those errors.
> >
> > So I wonder where's the place in the core Emacs sources
> > which causes the problem, and I couldn't find it. I'm probably
> > missing something.
>
> Maybe it started with
>
> | 85555ad3b79 ; Require map only during compilation
> | Philip Kaludercic <philipk <at> posteo.net> 2022-10-23
>
> Anyway, AFAIU currently compiling pcase forms with `map' patterns
> requires map.el to be currently loaded, and since you can't (and could
> not) rely on that, it's better to add
> (eval-when-compile (require 'map)).
Thanks, but all this still doesn't answer my questions,
unfortunately. You-all are describing something that I cannot wrap my
head around, because that basic question was not answered yet.
Would someone please take me through the problem step by step? ELI5,
OK?
This bug report was last modified 2 years and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.