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: Wed, 08 Sep 2021 18:47:57 +0200 Message-ID: <87fsufdneq.fsf@laposte.net> References: <87eea0610n.fsf@alphapapa.net> <87o8932p2x.fsf@laposte.net> <87wnnr3zw6.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="33555"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 08 18:49:29 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 1mO0lN-0008a6-45 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Sep 2021 18:49:29 +0200 Original-Received: from localhost ([::1]:39612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO0lL-00027d-Sn for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Sep 2021 12:49:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO0kE-00012S-Hq for emacs-devel@gnu.org; Wed, 08 Sep 2021 12:48:18 -0400 Original-Received: from smtp-outgoing-2003.laposte.net ([160.92.124.110]:49564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO0kB-0007Wh-OP for emacs-devel@gnu.org; Wed, 08 Sep 2021 12:48:18 -0400 X-mail-filterd: {"version":"1.3.1", "queueID":"4H4Sk675dJzWf0M", "contextId":"5722c809-614a-4990-97ed-f57a1b7e1de5"} Original-Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0107.laposte.net (SMTP Server) with ESMTP id 4H4Sk675dJzWf0M for ; Wed, 8 Sep 2021 18:47:58 +0200 (CEST) X-mail-filterd: {"version":"1.3.1", "queueID":"4H4Sk65cJpzWf07", "contextId":"6592fb4e-3e0b-480e-8a3d-a00844cff3b7"} X-lpn-mailing: LEGIT X-lpn-spamrating: 50 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgedvtddrudefjedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfntefrqffuvffgpdfqfgfvpdggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomhepmfgvvhhinhcugghighhouhhrohhugicuoehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepkeetjeetffegveeggeeugeekfeegkeefgedttdevhfffjeegfeekgfefgfekledtnecukfhppedutdelrddvudekrddufedtrdeiheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedutdelrddvudekrddufedtrdeihedphhgvlhhopegrrhgrghhoghdpmhgrihhlfhhrohhmpehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvthdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhg 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 mlpnf0107.laposte.net (SMTP Server) with ESMTPSA id 4H4Sk65cJpzWf07 for ; Wed, 8 Sep 2021 18:47:58 +0200 (CEST) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87wnnr3zw6.fsf@alphapapa.net> (Adam Porter's message of "Wed, 08 Sep 2021 09:28:25 -0500") DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1631119684; bh=sN3eZQm61/htLJwACniWaqJrRCDO6RlqLaO5prwL/hc=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dXcZnn5lEhTPyOvuAQ5kmHAAPCx/Ikoj3/gvbZd45sWRxz8Zb1vzKnSa0xlhAG4OqqC+qjAdVSb6qlr9TbtVR4GXo3OsLYTo/h86+VpEn4BfSizjMbjeGjaexm4DYEDxOK/pUMBk268/BTUWGjpQOIX3+ywyYdFnB4wLfOP27/3XPQNMEj2Sg6gOe6DnNNGfVh2bid/9UR7BOUBnNQMOeFnGUIiC/hJSKjk5F6VzpTwhrmBZJHwpa6VitZscgT5PQjBSPFepuRHhFpAs1jRCuhg0uWylXTS1r5mmJa5uKfpVSaOaDlZ1C1ZbjnsE397aVOa2XHCqXSNcW3PVFdfzfw==; Received-SPF: pass client-ip=160.92.124.110; envelope-from=ke.vigouroux@laposte.net; helo=smtp-outgoing-2003.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:274374 Archived-At: Adam Porter writes: > I am not using the version of map.el included with Emacs 27.2. As I > wrote in the original message. >> What does the compiler really generate? > It generates an incorrect macro expansion, which causes the eager macro > expansion/void-variable errors which precipitated this thread. However, in my test, the macro expansion returns a good result. Why? It seems to me that I proceeded as indicated by first loading =E2=80=98map = v3.1=E2=80=99 and then compiling the code. #+begin_quote ;ELC=00=00 ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defvar plist (list :max-height 3 :max-width 2)) (byte-code "\300\301\302\303!\"\207" [message "EXPANSION TEST: %S" macroexp= and-all (pcase-let* (((map :max-width) plist)) max-width)] 4) #+end_quote The message displayed in the echo area is: #+begin_quote EXPANSION TEST: (let* ((x3 (map-elt plist :max-width))) (let ((max-width x3= )) max-width)) #+end_quote > I'm not sure you understand the problem I'm describing. Please see my > original message. >> Looking at things again, I'm not sure that imposing a given version for >> a package is a good thing. > I don't know what you mean by "imposing a given version for a package." > The "Package-Requires" header instructs package.el to ensure that > certain dependencies are installed at certain minimum versions. This is > a standard practice in Emacs packages. Maybe I=E2=80=99m not right. --=20 Best regards, Kevin Vigouroux