unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: Paul Pogonyshev <pogonyshev@gmail.com>
Cc: Mark Oteiza <mvoteiza@udel.edu>,
	26068@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	tino.calancha@gmail.com
Subject: bug#26068: [PATCH] bug in generator function with pcase
Date: Sat, 01 Apr 2017 22:08:57 +0900	[thread overview]
Message-ID: <87efxcp95i.fsf@calancha-pc> (raw)
In-Reply-To: <CAG7BpaotL45JjnFAmk8XORJHxVDCvNzpEkMQWNgHtHSeA+nrMw@mail.gmail.com> (Paul Pogonyshev's message of "Sun, 12 Mar 2017 09:51:23 +0100")

Paul Pogonyshev <pogonyshev@gmail.com> writes:

> To reproduce:
>
> (iter-next (funcall (iter-lambda () (pcase (list 1 2)
>                                       (`(,a ,b) (iter-yield (+ a b)))))))
>
> Patch is attached. I have no idea if it affects something else, but
> matching symbols with `eq' on their names (`eq' on strings?!) seems
> outright wrong to me.
It looks also weird to me.  It seems written on purpose in order to
not expand fuction names in `cl-symbol-macrolet'.

Stefan has added a new test 2 days ago which fails after your
patch:
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet)





  parent reply	other threads:[~2017-04-01 13:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-12  8:51 bug#26068: [PATCH] bug in generator function with pcase Paul Pogonyshev
2017-03-19 19:18 ` Mark Oteiza
2017-04-01 13:08 ` Tino Calancha [this message]
2017-04-01 13:44   ` Paul Pogonyshev
2017-04-01 16:12     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efxcp95i.fsf@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=26068@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=mvoteiza@udel.edu \
    --cc=pogonyshev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).