Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christopher Monsanto  
View profile  
 More options Sep 25 2012, 2:42 am
Newsgroups: gnu.emacs.bug
From: Christopher Monsanto <ch...@monsan.to>
Date: Tue, 25 Sep 2012 02:40:46 -0400
Local: Tues, Sep 25 2012 2:40 am
Subject: bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists
Evaluating

(pcase '(1 2 3)
  (`(a b c) b))

yields (wrong-type-argument symbolp (quote (1 2 3)))

while

(pcase (list 1 2 3)
  (`(,a ,b ,c) b))

yields 2, as expected. This is really counter-intuitive behavior, as
quoting is often used to build lists in Lisp-like languages.

In GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2012-09-23 on linuxpimpbox
Bzr revision: 110156 c...@gnu.org-20120923092521-0eau22ubaocaddwn
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
 `configure '--enable-link-time-optimization' 'CC=gcc-4.7'
 'CFLAGS=-march=native -g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Wformat-security
 -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions
 -Wl,-z,relro''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  global-semantic-decoration-mode: t
  diff-auto-refine-mode: t
  TeX-PDF-mode: t
  erefactor-check-eval-mode: t
  eldoc-mode: t
  global-semanticdb-minor-mode: t
  global-semantic-idle-completions-mode: t
  global-semantic-idle-scheduler-mode: t
  global-semantic-highlight-func-mode: t
  semantic-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  global-auto-complete-mode: t
  auto-complete-mode: t
  shell-dirtrack-mode: t
  smex-mode: t
  recentf-mode: t
  ido-ubiquitous-mode: t
  ido-everywhere: t
  paredit-mode: t
  cua-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  savehist-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
t SPC <down> C-e C-j <up> <up> <up> C-e <left> <left>
<left> <left> <left> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> 1 l A-C-H-M-S-s-k
<backspace> <left> <left> ' <down> C-e C-j q <up> <right>
<up> <right> <right> <right> <right> <right> <right>
<right> <down> <down> <return> <return> <up> ( l i
s t SPC 1 SPC 2 SPC 3 C-e C-j ' ( 1 SPC 2 SPC 3 <right>
C-j <up> <up> <up> <up> C-SPC <down> <down> <down>
<down> <down> <down> <down> <down> <backspace> <up>
<up> C-e C-j <down> <right> <right> <right> <right>
q <up> <right> <right> <right> <right> <right> <right>
<right> <right> <up> <backspace> <down> C-e C-j q <up>
<right> <right> <right> <right> <right> <right> <right>
<up> <right> l i s t <down> <up> SPC <down> C-e C-j
<up> <up> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <left> <left> <left> <backspace>
<right> <right> <right> <backspace> <right> <right>
<right> <backspace> C-e C-j <up> <up> C-b <right> <right>
<right> <right> <return> C-b l i <right> <return> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> M-x r e p o C-g C-x 2 C-o
C-x 0 C-b s <return> <up> <up> <down> <down> e <backspace>
C-e <return> <return> <up> <up> <up> C-k C-b C-y C-g
<up> <down> C-y <up> <up> <return> <return> <up> C-y
<up> <left> <left> <backspace> <backspace> <backspace>
<backspace> <backspace> <left> ' <down> C-e C-j q <up>
<up> <down> C-e C-j q <down> M-SPC <down> <up> <up>
<up> p <up> <down> <backspace> <up> <return> ( l e
t SPC z <backspace> ( ( z SPC ' ( 1 SPC 2 SPC 3 <right>
<right> <right> M-n <down> <down> C-j q <up> C-u C-u
C-u C-u C-u C-a C-k SPC <backspace> C-SPC <down> <down>
<down> <down> <down> C-e <backspace> M-x r e p o r
t - e m a <return>

Recent messages:
Back to top level.
Quit [2 times]
Mark set [2 times]
Entering debugger...
Back to top level.
Entering debugger...
Back to top level.
Entering debugger...
Back to top level.
Mark set

Load-path shadows:
/usr/local/share/emacs/site-lisp/mu4e-actions hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-actions
/usr/local/share/emacs/site-lisp/mu4e-vars hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-vars
/usr/local/share/emacs/site-lisp/mu4e-about hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-about
/usr/local/share/emacs/site-lisp/mu4e-meta hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-meta
/usr/local/share/emacs/site-lisp/mu4e-compose hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-compose
/usr/local/share/emacs/site-lisp/mu4e-speedbar hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-speedbar
/usr/local/share/emacs/site-lisp/mu4e-view hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-view
/usr/local/share/emacs/site-lisp/org-mu4e hides
/usr/local/share/emacs/site-lisp/mu4e/org-mu4e
/usr/local/share/emacs/site-lisp/mu4e-headers hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-headers
/usr/local/share/emacs/site-lisp/mu4e-proc hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-proc
/usr/local/share/emacs/site-lisp/mu4e-utils hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-utils
/usr/local/share/emacs/site-lisp/mu4e-mark hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-mark
/usr/local/share/emacs/site-lisp/mu4e-main hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e-main
/usr/local/share/emacs/site-lisp/mu4e hides
/usr/local/share/emacs/site-lisp/mu4e/mu4e
/home/monsanto/.emacs.d/elisp/w3m/w3m-bookmark hides
/usr/local/share/emacs/site-lisp/w3m/w3m-bookmark
/home/monsanto/.emacs.d/elisp/w3m/w3m-search hides
/usr/local/share/emacs/site-lisp/w3m/w3m-search
/home/monsanto/.emacs.d/elisp/w3m/w3m-dtree hides
/usr/local/share/emacs/site-lisp/w3m/w3m-dtree
/home/monsanto/.emacs.d/elisp/w3m/w3m-ucs hides
/usr/local/share/emacs/site-lisp/w3m/w3m-ucs
/home/monsanto/.emacs.d/elisp/w3m/w3m-image hides
/usr/local/share/emacs/site-lisp/w3m/w3m-image
/home/monsanto/.emacs.d/elisp/w3m/w3m-cookie hides
/usr/local/share/emacs/site-lisp/w3m/w3m-cookie
/home/monsanto/.emacs.d/elisp/w3m/mew-w3m hides
/usr/local/share/emacs/site-lisp/w3m/mew-w3m
/home/monsanto/.emacs.d/elisp/w3m/w3m-lnum hides
/usr/local/share/emacs/site-lisp/w3m/w3m-lnum
/home/monsanto/.emacs.d/elisp/w3m/w3m-symbol hides
/usr/local/share/emacs/site-lisp/w3m/w3m-symbol
/home/monsanto/.emacs.d/elisp/w3m/w3m-form hides
/usr/local/share/emacs/site-lisp/w3m/w3m-form
/home/monsanto/.emacs.d/elisp/w3m/w3m-favicon hides
/usr/local/share/emacs/site-lisp/w3m/w3m-favicon
/home/monsanto/.emacs.d/elisp/w3m/w3m-proc hides
/usr/local/share/emacs/site-lisp/w3m/w3m-proc
/home/monsanto/.emacs.d/elisp/w3m/w3m-filter hides
/usr/local/share/emacs/site-lisp/w3m/w3m-filter
/home/monsanto/.emacs.d/elisp/w3m/w3m-perldoc hides
/usr/local/share/emacs/site-lisp/w3m/w3m-perldoc
/home/monsanto/.emacs.d/elisp/w3m/w3m-weather hides
/usr/local/share/emacs/site-lisp/w3m/w3m-weather
/home/monsanto/.emacs.d/elisp/w3m/w3m hides
/usr/local/share/emacs/site-lisp/w3m/w3m
/home/monsanto/.emacs.d/elisp/w3m/w3m-hist hides
/usr/local/share/emacs/site-lisp/w3m/w3m-hist
/home/monsanto/.emacs.d/elisp/w3m/w3m-tabmenu hides
/usr/local/share/emacs/site-lisp/w3m/w3m-tabmenu
/home/monsanto/.emacs.d/elisp/w3m/w3m-util hides
/usr/local/share/emacs/site-lisp/w3m/w3m-util
/home/monsanto/.emacs.d/elisp/w3m/w3m-fb hides
/usr/local/share/emacs/site-lisp/w3m/w3m-fb
/home/monsanto/.emacs.d/elisp/w3m/w3m-ccl hides
/usr/local/share/emacs/site-lisp/w3m/w3m-ccl
/home/monsanto/.emacs.d/elisp/w3m/w3m-rss hides
/usr/local/share/emacs/site-lisp/w3m/w3m-rss
/home/monsanto/.emacs.d/elisp/w3m/w3m-bug hides
/usr/local/share/emacs/site-lisp/w3m/w3m-bug
/home/monsanto/.emacs.d/elisp/w3m/mime-w3m hides
/usr/local/share/emacs/site-lisp/w3m/mime-w3m
/home/monsanto/.emacs.d/elisp/w3m/w3m-mail hides
/usr/local/share/emacs/site-lisp/w3m/w3m-mail
/home/monsanto/.emacs.d/elisp/w3m/w3m-ems hides
/usr/local/share/emacs/site-lisp/w3m/w3m-ems
/home/monsanto/.emacs.d/elisp/w3m/w3m-namazu hides
/usr/local/share/emacs/site-lisp/w3m/w3m-namazu
/home/monsanto/.emacs.d/elisp/w3m/bookmark-w3m hides
/usr/local/share/emacs/site-lisp/w3m/bookmark-w3m
/home/monsanto/.emacs.d/elisp/w3m/octet hides
/usr/local/share/emacs/site-lisp/w3m/octet
/home/monsanto/.emacs.d/elisp/w3m/w3m-antenna hides
/usr/local/share/emacs/site-lisp/w3m/w3m-antenna
/home/monsanto/.emacs.d/elisp/w3m/w3m-session hides
/usr/local/share/emacs/site-lisp/w3m/w3m-session
/usr/local/share/emacs/site-lisp/reftex/reftex-vars hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-vars
/usr/local/share/emacs/site-lisp/reftex/reftex-global hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-global
/usr/local/share/emacs/site-lisp/reftex/reftex hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex
/usr/local/share/emacs/site-lisp/reftex/reftex-cite hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-cite
/usr/local/share/emacs/site-lisp/reftex/reftex-toc hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-toc
/usr/local/share/emacs/site-lisp/reftex/reftex-parse hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-parse
/usr/local/share/emacs/site-lisp/reftex/reftex-ref hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-ref
/usr/local/share/emacs/site-lisp/reftex/reftex-auc hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-auc
/usr/local/share/emacs/site-lisp/reftex/reftex-sel hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-sel
/usr/local/share/emacs/site-lisp/reftex/reftex-index hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-index
/usr/local/share/emacs/site-lisp/reftex/reftex-dcr hides
/usr/local/share/emacs/24.2.50/lisp/textmodes/reftex-dcr
/home/monsanto/.emacs.d/elisp/python/python hides
/usr/local/share/emacs/24.2.50/lisp/progmodes/python
/home/monsanto/.emacs.d/elisp/org/ob-exp hides
/usr/local/share/emacs/24.2.50/lisp/org/ob-exp
/home/monsanto/.emacs.d/elisp/org/org-src hides
/usr/local/share/emacs/24.2.50/lisp/org/org-src ...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Monsanto  
View profile  
 More options Sep 27 2012, 7:10 pm
Newsgroups: gnu.emacs.bug
From: Christopher Monsanto <ch...@monsan.to>
Date: Thu, 27 Sep 2012 19:08:19 -0400
Local: Thurs, Sep 27 2012 7:08 pm
Subject: bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists
Anyone alive :)? If someone can acknowledge that this is indeed a bug,
I can fix the problem if the maintainer does not have time at the
moment (due to the ubiquity of using quotation for lists, pcase is
more-or-less useless to me until this is fixed)

Also typo, but the first example I gave should comma prefix the
variable names. Not that it matters, as pcase craps out anyway.

Christopher Monsanto
ch...@monsan.to  --  http://monsan.to/

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 More options Sep 27 2012, 8:53 pm
Newsgroups: gnu.emacs.bug
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Thu, 27 Sep 2012 20:52:54 -0400
Local: Thurs, Sep 27 2012 8:52 pm
Subject: bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists

> 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Monsanto  
View profile  
 More options Sep 27 2012, 9:10 pm
Newsgroups: gnu.emacs.bug
From: Christopher Monsanto <ch...@monsan.to>
Date: Thu, 27 Sep 2012 21:09:54 -0400
Local: Thurs, Sep 27 2012 9:09 pm
Subject: bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 More options Sep 28 2012, 8:21 am
Newsgroups: gnu.emacs.bug
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Fri, 28 Sep 2012 08:20:04 -0400
Local: Fri, Sep 28 2012 8:20 am
Subject: bug#12512: 24.2.50; pcase treats quoted lists different than non-quoted lists

> (pcase '(1 2 3)
>   (`(a b c) b))

Should be fixed now, thank you,

        Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »