From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Vigouroux via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: pcase map binding form expansion failure on Emacs 27 only Date: Tue, 07 Sep 2021 18:44:43 +0200 Message-ID: <87wnnsl4hw.fsf@laposte.net> References: <87eea0610n.fsf@alphapapa.net> Reply-To: Kevin Vigouroux Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26950"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: emacs-devel@gnu.org To: adam@alphapapa.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 07 18:46:53 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNeFH-0006kz-Eo for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Sep 2021 18:46:51 +0200 Original-Received: from localhost ([::1]:41096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNeFF-0006Yw-H9 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Sep 2021 12:46:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNeDV-000581-TD for emacs-devel@gnu.org; Tue, 07 Sep 2021 12:45:02 -0400 Original-Received: from smtp-outgoing-1802.laposte.net ([160.92.124.103]:41637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNeDT-0005Q8-Pq for emacs-devel@gnu.org; Tue, 07 Sep 2021 12:45:01 -0400 X-mail-filterd: {"version":"1.3.1", "queueID":"4H3rhr6wmQz7t7W", "contextId":"94065323-dfce-4465-9ca3-9c7fcfabce19"} Original-Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0102.laposte.net (SMTP Server) with ESMTP id 4H3rhr6wmQz7t7W; Tue, 7 Sep 2021 18:44:44 +0200 (CEST) X-mail-filterd: {"version":"1.3.1", "queueID":"4H3rhr4f00z7t7j", "contextId":"7d23fff6-0088-489e-85d2-fba94d99cabe"} X-lpn-mailing: LEGIT X-lpn-spamrating: 50 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgedvtddrudefhedguddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfntefrqffuvffgpdfqfgfvpdggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomhepmfgvvhhinhcugghighhouhhrohhugicuoehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepkeetjeetffegveeggeeugeekfeegkeefgedttdevhfffjeegfeekgfefgfekledtnecukfhppedutdelrddvudekrddufedtrdeiheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedutdelrddvudekrddufedtrdeihedphhgvlhhopegrrhgrghhoghdpmhgrihhlfhhrohhmpehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvthdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhgpdhrtghpthhtoheprggurghmsegrlhhphhgrphgrphgrrdhnvght Original-Received: from aragog (arennes-653-1-291-65.w109-218.abo.wanadoo.fr [109.218.130.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mlpnf0102.laposte.net (SMTP Server) with ESMTPSA id 4H3rhr4f00z7t7j; Tue, 7 Sep 2021 18:44:44 +0200 (CEST) Mail-Followup-To: adam@alphapapa.net, emacs-devel@gnu.org In-Reply-To: <87eea0610n.fsf@alphapapa.net> (Adam Porter's message of "Tue, 07 Sep 2021 07:08:56 -0500") DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1631033087; bh=InHPxaCW0gB286FoDEKdlQXVWIrGabp1DCtxys1LIvg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TZ7rgMHZNwnHFLuRVFdZ9m71dylJE7h+dWfJRenEHuUnAT1P6M8HEsxyroNnzuYj/WGj1j0KDmlFhDwow9V6x9skIYHPkguDqsoKLsLHLtOwOl9MwTQKRAJhI5OG1RpfWiO9ejNZSm3XsG7BDYkZok3DfH1+WKaS6pPUtNmxQf1KutHeiMixvvn7+AZ5ESlVuLU0EkzIb/EkxeLz9O2KOXRnOJAa4zC7bb+oOpFDsE7t+uqB0rSM3/JwO8MBMz+ZDA8mEvo7iAwFE+xVwTejiWs3qY3PMMtChEAt1ZRdReWUY1evsUhdBGGj1k26phPKpT1jzfMACx1ABD0z9fHekg==; Received-SPF: pass client-ip=160.92.124.103; envelope-from=ke.vigouroux@laposte.net; helo=smtp-outgoing-1802.laposte.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274267 Archived-At: Hi Adam, Your pattern seems incorrect. #+begin_quote (map :max-width) =E2=89=88 (map (:max-width :max-width)) #+end_quote :max-width is a keyword (pattern) but should be a symbol `max-width'. #+begin_quote -- (map &rest ARGS) Build a =E2=80=98pcase=E2=80=99 pattern matching map elements. ARGS is a list of elements to be matched in the map. Each element of ARGS can be of the form (KEY PAT), in which case KEY is evaluated and searched for in the map. The match fails if for any KEY found in the map, the corresponding PAT doesn=E2=80=99t match the value associated to the KEY. Each element can also be a SYMBOL, which is an abbreviation of a (KEY PAT) tuple of the form ('SYMBOL SYMBOL). Keys in ARGS not found in the map are ignored, and the match doesn=E2=80=99t fail. #+end_quote #+begin_src emacs-lisp (pcase-let* (((map (:max-width max-width)) plist)) max-width) #+end_src --=20 Best regards, Kevin Vigouroux