GNU bug report logs - #12512
24.2.50; pcase treats quoted lists different than non-quoted lists

Previous Next

Package: emacs;

Reported by: Christopher Monsanto <chris <at> monsan.to>

Date: Tue, 25 Sep 2012 06:44:01 UTC

Severity: normal

Found in version 24.2.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Christopher Monsanto <chris <at> monsan.to>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12512 <at> debbugs.gnu.org
Subject: Re: bug#12512: 24.2.50; pcase treats quoted lists different than
	non-quoted lists
Date: Thu, 27 Sep 2012 21:09:54 -0400
Oh, I see. (pcase '(1 2 3) ...) is different than (let ((x '(1 2 3)))
(pcase x ...)). That's pretty counter intuitive. I'm guessing some
sort of optimization?

Christopher Monsanto
chris <at> monsan.to  --  http://monsan.to/



On Thu, Sep 27, 2012 at 8:52 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> Anyone alive :)? If someone can acknowledge that this is indeed a bug,
>
> It's definitely a bug.
>
>> moment (due to the ubiquity of using quotation for lists, pcase is
>> more-or-less useless to me until this is fixed)
>
> I can't believe you often do (pcase 'FOO BAR), since that can always be
> trivially resolved (since you know statically what you're pcase'ing on).
>
>
>         Stefan




This bug report was last modified 12 years and 233 days ago.

Previous Next


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