Message from discussion
bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists
Received: by 10.66.81.98 with SMTP id z2mr1517947pax.19.1348794659780;
Thu, 27 Sep 2012 18:10:59 -0700 (PDT)
Path: g9ni1119pbh.1!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: Christopher Monsanto <ch...@monsan.to>
Newsgroups: gnu.emacs.bug
Subject: bug#12512: 24.2.50;
pcase treats quoted lists different than non-quoted lists
Date: Thu, 27 Sep 2012 21:09:54 -0400
Lines: 26
Sender: debbugs-submit-boun...@debbugs.gnu.org
Approved: bug-gnu-em...@gnu.org
Message-ID: <mailman.9884.1348794659.855.bug-gnu-emacs@gnu.org>
References: <CAC5n7TEt0ti87mQ1N3LwHBqLUHkYL=RvcT5FvTsNbmcE2jqasQ@mail.gmail.com>
<CAC5n7TG4P3XTNQQx0xB2Uf34NbPh1aTZ0ma7iCP11xVXGggrbQ@mail.gmail.com>
<jwvpq57t1f9.fsf-monnier+emacs@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1348794659 20616 208.118.235.17 (28 Sep 2012 01:10:59 GMT)
X-Complaints-To: action@cs.stanford.edu
Cc: 12...@debbugs.gnu.org
To: Stefan Monnier <monn...@iro.umontreal.ca>
Envelope-to: bug-gnu-em...@gnu.org
X-Loop: help-debb...@gnu.org
Resent-From: Christopher Monsanto <ch...@monsan.to>
Original-Sender: debbugs-submit-boun...@debbugs.gnu.org
Resent-CC: bug-gnu-em...@gnu.org
Resent-Date: Fri, 28 Sep 2012 01:11:02 +0000
Resent-Message-ID: <handler.12512.B12512.134879464616...@debbugs.gnu.org>
Resent-Sender: help-debb...@gnu.org
X-GNU-PR-Message: followup 12512
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
d=google.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc:content-type:x-gm-message-state;
bh=SKRhxmQdf3eQUzup9pmVIaNO79NPu260OWGokI+40bk=;
b=UTnTl1hbtlO/wH3eE6AqvU4B+ZL+ds11COZ7RyLkDEfdQEnm8dXEUNifMbRI3s8d31
i0RLeA5Q+iwU2jqD08ryeGd6Gk6ot1PHfe+1V8qMi8kezi+AtVCralom6X/6T5yySKxd
bEbFj///CX5KDj38ZX1r4T6eB6fGWKWM373SESJ8CNDCh4MNoqphnJQBnrKci4u3DmiA
sdLdLRudORsf0uIrt+eENm9E0WRnXuChEl4zwvjIyu1q2YqtGP5H8p2MFkF3rUpns8LP
YOyJgZaEZVKGoXnm3SE22YOMzWMvoUgryMBAVBWiV1BA7RBewcZcn8lbbWduNb4YRRXO
4CuA==
In-Reply-To: <jwvpq57t1f9.fsf-monnier+emacs@gnu.org>
X-Gm-Message-State: ALoCoQneCbTsu9OoLUWR+IjSC4IWjRQEV4r6gIkPIb22qRZ1KQ3mK0xJneHfdMgsNvVJ8LIIseKT
X-BeenThere: debbugs-sub...@debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Errors-To: debbugs-submit-boun...@debbugs.gnu.org
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.43
X-BeenThere: bug-gnu-em...@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
<mailto:bug-gnu-emacs-requ...@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-em...@gnu.org>
List-Help: <mailto:bug-gnu-emacs-requ...@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
<mailto:bug-gnu-emacs-requ...@gnu.org?subject=subscribe>
Content-Type: text/plain; charset=UTF-8
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
ch...@monsan.to -- http://monsan.to/
On Thu, Sep 27, 2012 at 8:52 PM, Stefan Monnier
<monn...@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