From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#48585: 28.0.50; Missing Edebug instrumentation for some 'if-let' variants Date: Fri, 15 Jul 2022 12:16:25 +0200 Message-ID: <87wncen0jq.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1662"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 48585@debbugs.gnu.org, Stefan Monnier To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 12:17:38 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oCIOA-0000DN-16 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 12:17:38 +0200 Original-Received: from localhost ([::1]:37206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCIO8-0003OV-Or for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 06:17:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCINg-0003Nh-1I for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 06:17:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCINa-0000OQ-8r for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 06:17:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCINa-0005l1-3G for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48585 X-GNU-PR-Package: emacs Original-Received: via spool by 48585-submit@debbugs.gnu.org id=B48585.165788020222096 (code B ref 48585); Fri, 15 Jul 2022 10:17:02 +0000 Original-Received: (at 48585) by debbugs.gnu.org; 15 Jul 2022 10:16:42 +0000 Original-Received: from localhost ([127.0.0.1]:39510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCINF-0005kJ-VP for submit@debbugs.gnu.org; Fri, 15 Jul 2022 06:16:42 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCINC-0005k1-H9 for 48585@debbugs.gnu.org; Fri, 15 Jul 2022 06:16:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=REK+tx2n9PL3N+UDz0D4DAe5aE3PKFXbGJ4sL99ra1c=; b=R2FDZdwXVAkyS+CPI5Ti5Yjhj9 aRyub5K5PR+S3zeD2l3pLD6x+afNnPvBPhbiDg7har3ONkmX9W4oQfCrOQzDxXMq7i0qX0dmIVZ1i u9Va3wg1C2sPc9DUCiWH94/iRKnvdfCAJ0KSmFtxl/xlrUpWYHijFMtFzDYMl5ikVAMk=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCIN1-0005SH-6e; Fri, 15 Jul 2022 12:16:29 +0200 In-Reply-To: (Philipp's message of "Sat, 22 May 2021 13:37:48 +0200") X-Now-Playing: Peter Broderick's _Blackberry_: "Wild Food" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237066 Archived-At: Philipp writes: > Instrument the following definition using C-u C-M-x: > (defun f (x) (if-let* (x) 1)) > > Then, evaluate this form: > (f 2) > > Edebug will step into 'f', but won't stop at 'x'. > > The problem lies in this part of the Edebug specification for 'if-let*': > > [&or symbolp (symbolp form) (form)] > > The 'symbolp' specification element causes Edebug to not instrument the > 'x' symbol. However, the 'symbolp' specification is also necessary > here; we couldn't just replace it with 'form' because that would make > the branches overlap. What we'd need here is something like > [&and symbolp form], i.e. match only in case of a symbol, but also > instrument as a form. IIUC Edebug doesn't support such constructs yet. Perhaps Stefan has some comments here; added to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no