From: Mauricio Collares <mauricio@collares.org>
To: 46786@debbugs.gnu.org
Subject: bug#46786: 28.0.50; pcase-let does not bind variables used inside macro
Date: Thu, 25 Feb 2021 21:40:54 -0300 [thread overview]
Message-ID: <87blc74q5l.fsf@collares.org> (raw)
This testcase is a reduced version of a problem that happens in
the "matrix-client.el" package (available on alphapapa's GitHub):
(require 'cl-lib)
(require 'pcase)
(cl-macrolet
((message-self () `(message self)))
(pcase-let ((`(,self ,self2) '("1" "2")))
(message-self)))
Behavior before commit a218c9861573b5ec4979ff2662f5c0343397e3ff
("lisp/emacs-lisp/pcase.el: Don't bind unused vars in branches"):
outputs 1 to the minibuffer.
Behavior after the commit: Symbol’s value as variable is void: self
Best,
Mauricio
next reply other threads:[~2021-02-26 0:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-26 0:40 Mauricio Collares [this message]
2021-02-27 5:08 ` bug#46786: 28.0.50; pcase-let does not bind variables used inside macro Lars Ingebrigtsen
2021-03-01 20:38 ` Stefan Monnier
2021-03-09 22:30 ` Mauricio Collares
2021-03-09 23:57 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blc74q5l.fsf@collares.org \
--to=mauricio@collares.org \
--cc=46786@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.