From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#40992: 27.0.90; Evaluating a function while using edebug breaks Date: Mon, 11 May 2020 20:16:30 +0000 Message-ID: <20200511201630.GA4577@ACM> References: <87sggkawmz.fsf@russet.org.uk> <20200501155630.GA22689@ACM> <20200501173306.GB22689@ACM> <87o8r7xgb8.fsf@gnus.org> <87sggjm3yb.fsf@gmail.com> <83wo5uu81f.fsf@gnu.org> <875zde3sur.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30658"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 40992@debbugs.gnu.org, Noam Postavsky To: Phillip Lord Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 11 22:17:12 2020 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 1jYErQ-0007qT-Bv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 May 2020 22:17:12 +0200 Original-Received: from localhost ([::1]:57826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYErP-00036J-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 May 2020 16:17:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYErG-00035z-5L for bug-gnu-emacs@gnu.org; Mon, 11 May 2020 16:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYErF-0004UZ-SO for bug-gnu-emacs@gnu.org; Mon, 11 May 2020 16:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYErF-0008PI-Nl for bug-gnu-emacs@gnu.org; Mon, 11 May 2020 16:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 May 2020 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40992 X-GNU-PR-Package: emacs Original-Received: via spool by 40992-submit@debbugs.gnu.org id=B40992.158922819432262 (code B ref 40992); Mon, 11 May 2020 20:17:01 +0000 Original-Received: (at 40992) by debbugs.gnu.org; 11 May 2020 20:16:34 +0000 Original-Received: from localhost ([127.0.0.1]:53415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYEqo-0008OH-9f for submit@debbugs.gnu.org; Mon, 11 May 2020 16:16:34 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:61097 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1jYEqm-0008O8-8j for 40992@debbugs.gnu.org; Mon, 11 May 2020 16:16:32 -0400 Original-Received: (qmail 16489 invoked by uid 3782); 11 May 2020 20:16:30 -0000 Original-Received: from acm.muc.de (p4FE15C1A.dip0.t-ipconnect.de [79.225.92.26]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Mon, 11 May 2020 22:16:29 +0200 Original-Received: (qmail 4602 invoked by uid 1000); 11 May 2020 20:16:30 -0000 Content-Disposition: inline In-Reply-To: <875zde3sur.fsf@russet.org.uk> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:180080 Archived-At: Hello, Phillip. On Sat, May 02, 2020 at 22:54:52 +0100, Phillip Lord wrote: > Eli Zaretskii writes: > >> From: Noam Postavsky > >> Date: Fri, 01 May 2020 23:05:32 -0400 > >> Cc: Alan Mackenzie , 40992@debbugs.gnu.org, > >> Phillip Lord > > If this fixes the problem, it's okay for emacs-27. But then why did > > Alan say there was no easy solution? > I guess it's because the edebug should really still be using the overlay > information for the function it is still stepping through. > When I do this, it's because I do not want the function instrumented any > more; I'd probably be just as happy if edebug dropped out at this point > (i.e. stopped stepping through and continued). That I can step through a > function definition that is no longer instrumented is not really a > feature for me. > Not having it error, clearly, is a feature! > Thanks all for looking at this. I've just committed a fix to master, whereby the information in property `edebug' is saved in property `ghost-edebug' when the function is re-evaluated. `ghost-edebug' is used by most of edebug in place of `edebug' when the latter contains a bare marker. Modulo any bugs in this patch, I think it fixes bug #40992 completely. > Phil -- Alan Mackenzie (Nuremberg, Germany).