From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#48585: 28.0.50; Missing Edebug instrumentation for some 'if-let' variants Date: Sat, 16 Jul 2022 01:15:06 +0200 Message-ID: <87v8ry2cjp.fsf@web.de> 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="35670"; 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 To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 16 01:16:12 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 1oCUXb-000944-VY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 01:16:11 +0200 Original-Received: from localhost ([::1]:58676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCUXa-00034t-Eh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 19:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCUXS-00034j-LE for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 19:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCUXS-0003s0-CG for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 19:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCUXS-0004QL-3M for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 19:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 23:16: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.165792692016948 (code B ref 48585); Fri, 15 Jul 2022 23:16:02 +0000 Original-Received: (at 48585) by debbugs.gnu.org; 15 Jul 2022 23:15:20 +0000 Original-Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCUWm-0004PH-AB for submit@debbugs.gnu.org; Fri, 15 Jul 2022 19:15:20 -0400 Original-Received: from mout.web.de ([212.227.15.4]:41285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCUWh-0004Oy-OC for 48585@debbugs.gnu.org; Fri, 15 Jul 2022 19:15:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1657926909; bh=eFgqC+Pv4g6bVsy6Wb44zwT7506iUyfTAVdULKVc3WE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=IBsz6pruos5CNrgQUEQDd5q4+I3YXyIWglW2iPsVqd3tkc4tRYY9EB7DxzlcVKmix 59ygjk3T0oZ5Ur8OYlVYNkFzbxfA6/R7NTdEdhy8FP/8oHLivsbFmLjQRJcQENWkuD //urvhWKtI7krwk5wiBmcCUKXOx9lQdg1dQe0D80= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.18]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Myf3x-1nK6JU0LdN-00yrdD; Sat, 16 Jul 2022 01:15:09 +0200 In-Reply-To: (Philipp's message of "Sat, 22 May 2021 13:37:48 +0200") X-Provags-ID: V03:K1:H+d6GBd4JwEI6U42Zo8Bu0MFKrBTsRlhUQwqXyDbrvQ0ZR4TrZo CqbOqJx+ijcJF68RHhQ/ddf8GFZEGXXBW+Cd08ua+4W3JSF0tmv7W3jvocUF8NM9MG8tAfU BFYJdnH4eeAb9Mw9v2I59OY7725TjHl6b0VBnAWSNeaRF8KK8ELZ/IqurccLFaqfodlquUm 8RQbfF0eEZp60s4wh4xZQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:z+Pjes4ZtkQ=:OvxEUfeAOiSafT8Py3kQLw helqUX5rwsbBGHzOaklhpX6cp2Ze5ncgRpSnOyast8zMxnMoXFuTG/nr8+m1aHM55Emyy86hC Q79rRRGXXa7bMlVv5D57Oshmrz04uc+fq+unezI6fpdcRlAM0ADYyrk85HODLlFLpsenGIXDT hXkLPGj0Q90DQBlY0349yZksygq2LYRt3goWL3kgP95ewCst2/ErVDzGBvHqfAB37/VnOWLDh gpjFUQUEZW4V3TxnK7VHRhH0JhOHWX/ZGCdktXtfkkszhFbfT8wtUPnqizubgkg47UNfU5ZRP WVV/pJRHGdNnnIidM7pqVjXRPsYkrGL8YAKL7lFe+t0vd8uFd2s6ooQ8g7jJlxk5dIhmfwtwb aCgVBMqXP13mZWq1XNDb1GF1kAdtHmcycSwwztkVjJhfjxKNxvKvQzAowJ+OicmQeh/NvyJN8 SuxD9j6L2+T2k5aR+hLUX5LnOZhFu/VvjmFNO7bnN1QAFER67XojpAApgQSlg5XZcChpAUGYs 4076WGvquUafws7LR8RD/kbLTRWuCXcla4fvjC3hn4aJW4pz6k+5G47cj9UCVmCXeoUExyPdT W7P43D4j+T3MQyFYV3ZAKEhD4zJClt+1nKca6fY4rSYFlb05B4eZLFYrgEDNZbARVT/KBcaD0 +s729lFqxg6HGTpomTPUU1XIrP18XQUzPljWV3fxeBDfeyT9N2x2ctS89ZhLlFm9iL0aoL8I4 tKA4Dcd7k3y2X0q/OfOlQ5ui2FTd6yCT2PHEQ9tiVZD5ut+ZGsqKyegT0l7SbRpVv4e6ZvYb 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:237126 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. Dunno how bad an overlap is. I tried this: (debug ((&rest [&or (symbolp form) (form) form]) body)) That lets instrumenting error: | internal-macroexpand-for-load: Eager macro-expansion failure: (error | "`let' bindings can have only one value-form" edebug-after 0 1 x) Does that happen because `x` appears as binding _variable_ in the expansion, and Ebebug messes with that? Then we would have a second problem. Michael.