From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 25 23:34:58 2021 Received: (at submit) by debbugs.gnu.org; 26 Jul 2021 03:34:58 +0000 Received: from localhost ([127.0.0.1]:49642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7rOM-0001Wj-8G for submit@debbugs.gnu.org; Sun, 25 Jul 2021 23:34:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:59720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7rOI-0001Wa-QW for submit@debbugs.gnu.org; Sun, 25 Jul 2021 23:34:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7rOI-0002aX-GU for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 23:34:54 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:39588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7rOG-0001Ei-Mo for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 23:34:54 -0400 Received: by mail-qt1-x829.google.com with SMTP id d2so6163314qto.6 for ; Sun, 25 Jul 2021 20:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=VsiXc/bb8qIe4rSMgw6BodNTqMgoL1PDGsuPOBQnrfg=; b=BAK8qMXdePJgK5mMwEpuc77DpgZLp3tyMbj8fG3mjuk7P8+Sf1rNv+vKxRHR7SVGnP dTuDHMQh5T9ppAHZ4mxHfK2qgMK3HU6nsBWfGzb4gqCfJpVz5kF9De0pQrjSJQK0IBSJ BjWYHtS9d5cDGbZOFN6zE7FaYCQULs4tPaHoOBKNrdd4gXztGyZpMxYwi49ruk8T/YW3 nz9lXLlDkvX2G2m4DU3XW2ksU8Iaic7JhowhcEgxUTHQc8+WvlBDnl5zLe5LndEVhnri upR+Wi5ZRfRX+AjuuP4+EdFFQeYmpRQq5L9Xlbc5t5h4P0xZU05DWzPEM8OgKbXIy7Vy TXGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=VsiXc/bb8qIe4rSMgw6BodNTqMgoL1PDGsuPOBQnrfg=; b=Yx5yVLfq96WwroQPsorzrJQZHcm6nmkMEqi2dy3mwZthzOnQey7DdS9273F8Idp0nU prd1MvJGIUBiJnQPQ4Ky+9AvhS7NVaYyB8HVbp8lHpRj6DQTEHg2pSjAz4cOeFph2Awj z1jrmH0Cb7HQAc+84vFksaAHLVsNKSjFl242wEUCCzFve/JrWqhA6th3yIY7Q6oOzSmy s4iokPbK7Au7kk17Dmcovu+hnOZ8BI8rLaWn0ojOmjpPy1bSNkkh1ty3mNcL4wDCek3w gam1XHCHI82oUkt9omBI7vQOrFMiH/iN2ubncLx5o4UCD/8GkwxpVUFSpGraj9U1xmfP PEpA== X-Gm-Message-State: AOAM531bXQEq8jPEvAHrINTz3zCwMJj+SDWq91zxitDXmtuAEJpk67Y9 pwOk4Jrtx4HRU4Ovc+h1BLlRcnGgMAk+jw== X-Google-Smtp-Source: ABdhPJxW5S8sZqJ7FBOi/1NAtZSnvu0Fpd0T2gQqUw5qdylic3Ww5KHLenYitY0jZz/NoXG+MeWPDw== X-Received: by 2002:ac8:7c54:: with SMTP id o20mr4504375qtv.142.1627270491108; Sun, 25 Jul 2021 20:34:51 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id e2sm18698600qkn.69.2021.07.25.20.34.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 20:34:50 -0700 (PDT) User-agent: mu4e 1.5.14; emacs 28.0.50 From: No Wayman To: bug-gnu-emacs@gnu.org Subject: 28.0.50; byte-compiled pcase pattern match failure Date: Sun, 25 Jul 2021 23:33:39 -0400 Message-ID: <875ywxeoit.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qt1-x829.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Recently a user reported a bug on Org-mode's mailing list in which an org-capture template was failing to fill properly: https://orgmode.org/list/87fsw3zyjl.fsf@ucl.ac.uk/T/#t I was able to reproduce the issue with emacs -Q and the following recipe: Evaluate the following in *scratch*: (progn (require 'org-capture) (org-capture-fill-template "%^t")) This should prompt the user for a time, instead we hit the `_` case in one of the pcase calls in `org-capture-fill-template' despite the valid template string. This results in the error: "unrecognized template placeholder: %^t" I've observed that this only occurs when `org-capture-fill-template' has been byte-compiled. Re-evaluating the defun results in the expected behavior. And byte-compiling the function puts us back in the erroneous state: (progn (byte-compile #'org-capture-fill-template) (org-capture-fill-template "%^t")) ; unrecognized template placeholder... I didn't do a proper git-bisect, but the everything works as expected when building from the parent (3af2cee64b86e4ce59adb8e8720d92db35039cbc) of the following commit: commit 937b6c18bd6c4806eb1e4c8764db56b314c09056 Author: Stefan Monnier Date: Fri Mar 19 17:42:22 2021 -0400 * lisp/emacs-lisp/pcase.el (pcase-compile-patterns): New function (bug#47261) Extracted from `pcase--expand`. (pcase--expand): Use it. I tried to do some more debugging, but I'm not familiar with how to debug a problem which only crops up in byte-compiled elisp. Happy to provide any other information if necessary. ~ Nick From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 26 18:26:41 2021 Received: (at 49739) by debbugs.gnu.org; 26 Jul 2021 22:26:41 +0000 Received: from localhost ([127.0.0.1]:51663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m893Y-0001xZ-NJ for submit@debbugs.gnu.org; Mon, 26 Jul 2021 18:26:40 -0400 Received: from mout.web.de ([217.72.192.78]:57497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m893W-0001xM-Rd for 49739@debbugs.gnu.org; Mon, 26 Jul 2021 18:26:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1627338391; bh=j9bEQAglf8wU/KoVpOhyKnwafN7IHfOkXPP9QLUH6qQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=bcCw0TpXAeQ0/sINBMQ6XWlTSr/50MS3EdyoIMfe++8uGdpnCgdQvYCxRGhCs7nIn 9cezwILXp+9ahV3xx51el+nQDD/stUIKm3uEPak6hvBIgzamJfgLzHA+EYGCinryUw bfH1DcCbnd/mCSdHYuliPXMskRrTsBp2pOoVp43E= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([88.66.201.45]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MAtwh-1lwqWk1oE5-00BNnK; Tue, 27 Jul 2021 00:26:31 +0200 From: Michael Heerdegen To: No Wayman Subject: Re: bug#49739: 28.0.50; byte-compiled pcase pattern match failure References: <875ywxeoit.fsf@gmail.com> Date: Tue, 27 Jul 2021 00:26:30 +0200 In-Reply-To: <875ywxeoit.fsf@gmail.com> (No Wayman's message of "Sun, 25 Jul 2021 23:33:39 -0400") Message-ID: <87v94wzp7t.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:UtzdyrClLTGdeNSq+J5lOQ02RXiggXm/iSxXe1Hq23EG8ctE5VG 7Bms7IjGzCnWkbjwJAlOY8RIEjnzw0KiwcXs9xXAvX0g9TTLyyiCv/nGSdvb1rUleT5G+Zk HbsNyuGufsTa4L06OJlDPN9OuL5hovd8HNUt12iUYd8SVNa7nnOCJ22otBjqcfpQ2OdMxHa grDzPYNCaXlazW5ZUmEtA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NxBMh30Vp3c=:lFDkm+ekq/Kiy1o71IwOBH WjjROKD1ccuf1f6Z4OF6MpR1Uy7gpbq9MTJRhiTr+IHGsMPjC8k58lGiNOCr1wxAhg4Pu+HfJ z5n755a5NjLqnvMooicx8e0fl2oHVp3jUJ6Z88P4q9jO6o91brOxI3JmXUlHB668rU5nzz43o ujP1Hf66qVwNDEI70owN3tGdmJVhVVqdTJATWSW6E7klcQl4yoE3KhHjLqqnWPhHiAy/vTDgd cVwVlXmlKfYfMa0IZ3iqKFQMsSLVqJEDU5ZJrf1a1Oc+sk8r+Hcx41QlBpmxNPNmdgoKJD77A hNGEcdHkFnYO68gaVXbecqSoLwPDLDLkFMCqw/IyRUuemwJQT2sMLrMYGTon3kfKWjhu0LUtY 9NtwGWpt5vosSa8It8gXYjSN/hsyp3QH9bawieCuivKaKXP1+lRKosrxudq67iyeakIxEW8X6 IcP9HGD6QW31qSRtaUBkXRAB/6AkJ/V/TGVVbX/syl2PErlzqhXB4vwaAsABaICV9a3bhzae/ vK8XTwcD8v4pUUXIUKvYdwZc+UDb5bUlvAoEJUk2rwHP3bY3gmfTOpAF1JCcnoAUg+jTw1CWA hKDrFkmx0G80n59JqVZKMg48Lu62zJkZsuuwxm0ea9AK8G6OdfXX3vDz8DVPX9nXQ12L5MIoV UHapLTjlFRQj1o0D9LMJ5EDcOnj1Zyq1KJnydcI0c9ZSUfjLgE982HURMBHNZoaHbhwEKoKyl K2QUyRdWbsUe3lIkJQxKzuzLRqKCV8LureERpYzsj4AKZTIZPHdU5gCjTXLtUfD5+l7b0xkXA mAdhx5dudFkSma4BLvJiYnHioeEDCCDUFZTsl/3BWRXhbAH4bvdk/NQngGmeQrvVGID7L3WQt qWHZRNU5Bkqjui9OzRosqco/VridVOmPnpXUuXhBmkhGMW9bhJ2fzIkUtuICzLsAR7GOTizuP I/cz6GaIC7hcP8vPAh/GI8cvl2lP/X27gnGxb89RNKmOj6+1xRXUMIr7tlrpjS98NzDNnY0Zy OadPyi3C8DgCIvlTbeHcTksWBAKZl3EkBK7f21bdq/jFiiIwA9ft5LIAORsHJVen8EqbAo/5e 8Wh6Xg90IttHzNACtpOK/EfAG1+rFUXJnFD8cz/fxlkjXYgWRQzbayLlw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49739 Cc: 49739@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) No Wayman writes: > (progn > (require 'org-capture) > (org-capture-fill-template "%^t")) > > This should prompt the user for a time, instead we hit the `_` case in > one of the pcase calls in `org-capture-fill-template' despite the > valid template string. This results in the error: > > "unrecognized template placeholder: %^t" That works for me. Are there any other requirements, a natively compiled Emacs or so? Or maybe "make bootstrap" (i.e. building Emacs from scratch) helps? If not, are you able to provide a test case? AFAIU the `pcase' call causing the trouble fails to compare strings correctly. If you compile and load a function like (defun test (string) (pcase string ("a" 1) (_ nil))) does that work as expected? TIA, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 27 13:10:55 2021 Received: (at 49739-done) by debbugs.gnu.org; 27 Jul 2021 17:10:55 +0000 Received: from localhost ([127.0.0.1]:53781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QbX-0006vk-Mj for submit@debbugs.gnu.org; Tue, 27 Jul 2021 13:10:55 -0400 Received: from mail204c50.megamailservers.eu ([91.136.10.214]:36674 helo=mail193c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QbV-0006vW-4f for 49739-done@debbugs.gnu.org; Tue, 27 Jul 2021 13:10:54 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1627405849; bh=ByxPCCw1sTz2o5m07dLtWpPoua7dtSBmOhRX8vJ8G7k=; h=From:Subject:Date:To:From; b=IrByxpt4UlOjzqm49k9dqxv/ARsdz+C8ABrgf2C6k2xX88JNCEqGTnnrb7sgBNJS0 Rw+71x3JsVToUM6bmn8GGKSmNLp9dF798YixGijVL9KBetKLAw9JBxmMPT39LbX0uX D9e63ozPCxOuRAhcQM/BBq/IC/fE6fZGsnZP9CMU= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail193c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 16RHAl0p007188 for <49739-done@debbugs.gnu.org>; Tue, 27 Jul 2021 17:10:49 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: bug#49739: 28.0.50; byte-compiled pcase pattern match failure Message-Id: <318CC258-27C4-47B6-A672-03B2CB7B72AF@acm.org> Date: Tue, 27 Jul 2021 19:10:46 +0200 To: 49739-done@debbugs.gnu.org X-Mailer: Apple Mail (2.3445.104.21) X-CTCH-RefID: str=0001.0A742F19.61003E19.0050, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=GJV27dFK c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=OzHcT2gyf4U0Ktt4jxAA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE X-Spam-Score: 4.0 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Fixed on master. Content analysis details: (4.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.136.10.214 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 3.7 FAKE_REPLY_B No description available. X-Debbugs-Envelope-To: 49739-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Fixed on master. Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.136.10.214 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.7 FAKE_REPLY_B No description available. Fixed on master. From unknown Sun Aug 17 09:10:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 25 Aug 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator