GNU bug report logs - #26847
26.0.50; Using edebug-step-in on a macro switches to go-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Gemini Lasswell <gazally@HIDDEN>; Keywords: confirmed; dated Mon, 8 May 2017 21:08:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 26847 <at> debbugs.gnu.org:


Received: (at 26847) by debbugs.gnu.org; 21 Oct 2019 19:35:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 21 15:35:26 2019
Received: from localhost ([127.0.0.1]:57859 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMdSg-0003FW-5j
	for submit <at> debbugs.gnu.org; Mon, 21 Oct 2019 15:35:26 -0400
Received: from quimby.gnus.org ([80.91.231.51]:50958)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iMdSe-0003FO-FR
 for 26847 <at> debbugs.gnu.org; Mon, 21 Oct 2019 15:35:24 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iMdSa-0003qy-L6; Mon, 21 Oct 2019 21:35:23 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Gemini Lasswell <gazally@HIDDEN>
Subject: Re: bug#26847: 26.0.50; Using edebug-step-in on a macro switches to
 go-mode
References: <87vapb12k2.fsf@chinook> <87sgnnccy8.fsf@HIDDEN>
 <8736fmd6bl.fsf@HIDDEN>
Date: Mon, 21 Oct 2019 21:35:20 +0200
In-Reply-To: <8736fmd6bl.fsf@HIDDEN> (Gemini Lasswell's message of "Sun,
 20 Oct 2019 22:18:54 -0700")
Message-ID: <87lftdq4cn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Gemini Lasswell <gazally@HIDDEN> writes: > If you use
 these steps to reproduce, with the same sample code: > > M-x edebug-all-defs
 RET > M-x eval-buffer RET > M-: (my-try-thing 'a) RET > i > > then the
 original bug still occurs. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 26847
Cc: 26847 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gemini Lasswell <gazally@HIDDEN> writes:

> If you use these steps to reproduce, with the same sample code:
>
> M-x edebug-all-defs RET
> M-x eval-buffer RET
> M-: (my-try-thing 'a) RET
> i
>
> then the original bug still occurs.

Yup.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26847; Package emacs. Full text available.

Message received at 26847 <at> debbugs.gnu.org:


Received: (at 26847) by debbugs.gnu.org; 21 Oct 2019 05:19:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 21 01:19:31 2019
Received: from localhost ([127.0.0.1]:55590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMQ6M-0002MS-Sr
	for submit <at> debbugs.gnu.org; Mon, 21 Oct 2019 01:19:31 -0400
Received: from aibo.runbox.com ([91.220.196.211]:56430)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@HIDDEN>) id 1iMQ6K-0002MH-F3
 for 26847 <at> debbugs.gnu.org; Mon, 21 Oct 2019 01:19:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From;
 bh=J7rxhhseYiv3ZmfAkTC62AHP2hvixq27NL/PJGCa/Ew=; b=gDBBpzBl6a+a51/ykmh5ni7J9K
 0KNQGgNQw9IQMdkxfbHjPi7MP9x6Sv2AYE4CUtJRXpxB2SUZWWXz3GuRYCh3gyGaR2ynhiAFrUnvH
 fD5n1MJKr1DXBz6jGwVdg6Xx7SnSnQ3MbtABSGexP/KeADY0Yy8TIE/4AAFjD8yLyuD+PYkrZwI47
 dRkkLFg0SgX2XBoZLjKyAxdOc9a+HfLKNhNGDAetM5tDxqqH83mW4pmfzy6ZfS3qmd6cseRbtLaPy
 pqw3+dJf1EL7owfY2OKn1JtC458kTntrZH4vYjiiTHOWJH4WHOSNgr0+WT0ezQ2CYmc6iNPcJJik7
 iHNeOfWA==;
Received: from [10.9.9.202] (helo=mailfront20.runbox)
 by mailtransmit02.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@HIDDEN>)
 id 1iMQ6I-0003Ic-48; Mon, 21 Oct 2019 07:19:26 +0200
Received: by mailfront20.runbox with esmtpsa [Authenticated alias (696087)]
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1)
 id 1iMQ62-0006Yt-Uo; Mon, 21 Oct 2019 07:19:11 +0200
From: Gemini Lasswell <gazally@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#26847: 26.0.50;
 Using edebug-step-in on a macro switches to go-mode
References: <87vapb12k2.fsf@chinook> <87sgnnccy8.fsf@HIDDEN>
Date: Sun, 20 Oct 2019 22:18:54 -0700
In-Reply-To: <87sgnnccy8.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun,
 20 Oct 2019 23:41:03 +0200")
Message-ID: <8736fmd6bl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 26847
Cc: 26847 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> I'm unable to reproduce this in Emacs 27.  When I hit `i', I'm then
> edebugging the `push' macro, and then I can step through it, and then
> I'm back to stepping through my-try-thing.
>
> Are you still seeing this bug in Emacs 27?

In Emacs 26, eager macro expansion happened when instrumenting code for
Edebug using eval-defun.  In current master, it's not getting done.
Looking at (symbol-function 'my-try-thing) in both versions will show
you the difference.

The lack of macroexpansion doesn't only happen when instrumenting for
Edebug.  If you evaluate a function definition with eval-buffer or
eval-last-sexp then macroexpansion is done, but if you evaluate it with
eval-defun with or without the universal argument, then no
macroexpansion happens. This is a change from Emacs 26, and is masking
the original bug.

If you use these steps to reproduce, with the same sample code:

M-x edebug-all-defs RET
M-x eval-buffer RET
M-: (my-try-thing 'a) RET
i

then the original bug still occurs.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26847; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 26847 <at> debbugs.gnu.org:


Received: (at 26847) by debbugs.gnu.org; 20 Oct 2019 21:41:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 20 17:41:08 2019
Received: from localhost ([127.0.0.1]:55393 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iMIwm-00086s-Gu
	for submit <at> debbugs.gnu.org; Sun, 20 Oct 2019 17:41:08 -0400
Received: from quimby.gnus.org ([80.91.231.51]:56688)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iMIwl-00086l-Fx
 for 26847 <at> debbugs.gnu.org; Sun, 20 Oct 2019 17:41:08 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iMIwi-0007xo-1C; Sun, 20 Oct 2019 23:41:06 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Gemini Lasswell <gazally@HIDDEN>
Subject: Re: bug#26847: 26.0.50; Using edebug-step-in on a macro switches to
 go-mode
References: <87vapb12k2.fsf@chinook>
Date: Sun, 20 Oct 2019 23:41:03 +0200
In-Reply-To: <87vapb12k2.fsf@chinook> (Gemini Lasswell's message of "Mon, 08
 May 2017 14:06:21 -0700")
Message-ID: <87sgnnccy8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Gemini Lasswell <gazally@HIDDEN> writes: > edebug-step-in
 doesn't behave well when you try to use it on a > macro. For an example,
 enter the following code in *scratch*: > > (setq my-things nil) > (defun
 my-try-thing (thing) > (push thing my [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 26847
Cc: 26847 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gemini Lasswell <gazally@HIDDEN> writes:

> edebug-step-in doesn't behave well when you try to use it on a
> macro. For an example, enter the following code in *scratch*:
>
> (setq my-things nil)
> (defun my-try-thing (thing)
>   (push thing my-things))
>
> Then:
>
> M-x eval-buffer RET
> navigate to my-try-thing and C-u C-M-x
> M-: (my-try-thing 'a) RET
> i
>
> Result: Edebug exits and code runs to completion, result printed in
> minibuffer.

I'm unable to reproduce this in Emacs 27.  When I hit `i', I'm then
edebugging the `push' macro, and then I can step through it, and then
I'm back to stepping through my-try-thing.

Are you still seeing this bug in Emacs 27?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26847; Package emacs. Full text available.

Message received at 26847 <at> debbugs.gnu.org:


Received: (at 26847) by debbugs.gnu.org; 9 May 2017 22:23:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 09 18:23:55 2017
Received: from localhost ([127.0.0.1]:34724 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1d8DXu-0001M1-Qt
	for submit <at> debbugs.gnu.org; Tue, 09 May 2017 18:23:54 -0400
Received: from mail-wr0-f196.google.com ([209.85.128.196]:34485)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1d8DXs-0001Lo-Nf
 for 26847 <at> debbugs.gnu.org; Tue, 09 May 2017 18:23:53 -0400
Received: by mail-wr0-f196.google.com with SMTP id 6so3685164wrb.1
 for <26847 <at> debbugs.gnu.org>; Tue, 09 May 2017 15:23:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=1U0JoRmbKiMFh/vPlsi05o00YLgQ67i/8yHD+YfCgws=;
 b=gU/wm3lecjM3cRVVIQvWdyyXrVUaOrjn1Vznb1RLuHp3GNUpKWdnhZXWnIxcvaoCj5
 jzk8+odX6yZ+5y1Ei4YFiWZqtcNbKncvUhflU+ULqz3GvT5EBDrhnKLUjHzzszhqCtUZ
 x1Ug/RTBScegh7bPzVMEZX8omBNhvXSGRD/olqnmdObay7FkNaGSKfRekx+p2sBQDU4l
 uUKItDzPr0FVJ4MYLIRWfSc8FdTxR4VI64bi1tW8UJVusrJJGj3yjv7JhnpXRLcXem6c
 UQmsVEZ4Rub5PRSdssCsTZyYuWX4nHCkl5tlG8+T43ct1KwrZPWAyOE2+D9MffV35cju
 W2CQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=1U0JoRmbKiMFh/vPlsi05o00YLgQ67i/8yHD+YfCgws=;
 b=TGmmknx6c2LzZILGlmWHRAI+kdKHXOCiLpEEoodUqyB3vpy1k3wahqjH+ljvPwJ7DR
 MUp/qioIq4lgkbHoiLL941qDqx+4CBamF5CYDhR+Js5OEEgEt4HI/Zt2H45Q6cJ/HOqF
 1sLyFTPIRuIU3eXcfmObwG5pB9v8ZKjFlWuSz3dDklCMckfXnuZNKg4ixkhImQxY1hPx
 3HtAq6CfLKtm8Y4cae5CEbWcSKxBfdATIHykJxQL/t9hQ3e2iCJjzqD9tW4AD6F1xveH
 SSvLOXmwHlY+kYfPGQ13cN7sV5D7OOrChSGAsHDkKsbXkFFRqVTCnnZhIXUY6rhjmpAf
 cE+w==
X-Gm-Message-State: AODbwcATXFfIXUTSIyoVCMu0tccNhazzYbWO/dvvl+x1cU2Jtz+U2uMD
 J2YPapR0qvnp2gtASuQ=
X-Received: by 10.28.54.165 with SMTP id y37mr2419323wmh.29.1494368626659;
 Tue, 09 May 2017 15:23:46 -0700 (PDT)
Received: from [192.168.1.3] ([185.105.173.156])
 by smtp.googlemail.com with ESMTPSA id n49sm1411428wrn.30.2017.05.09.15.23.44
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 09 May 2017 15:23:45 -0700 (PDT)
Subject: Re: bug#26847: 26.0.50; Using edebug-step-in on a macro switches to
 go-mode
To: Gemini Lasswell <gazally@HIDDEN>, 26847 <at> debbugs.gnu.org
References: <87vapb12k2.fsf@chinook>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <3aa02b7a-3031-73f3-a344-3a10f95d0171@HIDDEN>
Date: Wed, 10 May 2017 01:23:39 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101
 Thunderbird/53.0
MIME-Version: 1.0
In-Reply-To: <87vapb12k2.fsf@chinook>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 26847
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

On 09.05.2017 0:06, Gemini Lasswell wrote:

> Stepping into macros would have made sense before eager
> macro-expansion, but now by the time Edebug instruments the code the
> macro has already run. Probably the simplest thing to do here is to
> have edebug-step-in signal an error if asked to step into a macro. The
> documentation for edebug-step-in also should be updated to remove
> mention of stepping into macros.

Since nobody has complained about this problem by now, it's probably the 
easiest solution indeed.

However, I wonder if we could inhibit eager macro-expansion when a 
function is being instrumented by edebug. Its definition is being 
re-evaluated at that time, right?

I don't know if we have a good way to do that, though. Or if adding one 
ends up being easy to maintain.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26847; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 May 2017 21:07:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 08 17:07:11 2017
Received: from localhost ([127.0.0.1]:60323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1d7ps7-0000PC-E4
	for submit <at> debbugs.gnu.org; Mon, 08 May 2017 17:07:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60272)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@HIDDEN>) id 1d7ps5-0000P0-6Z
 for submit <at> debbugs.gnu.org; Mon, 08 May 2017 17:07:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1d7prz-00066u-8o
 for submit <at> debbugs.gnu.org; Mon, 08 May 2017 17:07:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54813)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <gazally@HIDDEN>) id 1d7prz-00066q-5V
 for submit <at> debbugs.gnu.org; Mon, 08 May 2017 17:07:03 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51221)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1d7pry-0003Jb-4v
 for bug-gnu-emacs@HIDDEN; Mon, 08 May 2017 17:07:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1d7pru-00065q-6M
 for bug-gnu-emacs@HIDDEN; Mon, 08 May 2017 17:07:02 -0400
Received: from aibo.runbox.com ([91.220.196.211]:34182)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <gazally@HIDDEN>) id 1d7prt-00065d-SJ
 for bug-gnu-emacs@HIDDEN; Mon, 08 May 2017 17:06:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; 
 bh=TTdVnv9u7y92YJcCCnEDMkj2iVjPdekM/XYSXR+EEpI=; b=DW25rNVmaYRQXLG40T/v2suGC
 Ds7l8S6Q/JX1F8uXgvPAmTdCbYZLssdLLJcCmxh2bTZumQaKjWWqWy3amAGFBremFyA+XMSFybEGJ
 P9upIa4EW5TeNMg0p4x/J9N6F7QfBj2CV/oG6fqbpnSUIi8Y6aep0c9cFzk0IZt0kxD4tdcwYeKik
 G6ea4uwyhJPD5wbilEupJfh2jvrSuumCfD6+e2KKJIXFfqTs5GOe0n6v9CLg74wEHgwVjaGIUyuzD
 Dr44vjymAs8CcaOHaekXFC+FCUuPW5Hy7Zlj3Kn5LQ+7F0M35F9Tpi+eY/oTrc87XSiRdN2/nxIUk
 hvIPxnF+A==;
Received: from [10.9.9.211] (helo=mailfront11.runbox.com)
 by mailtransmit03.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@HIDDEN>) id 1d7prp-0003Nf-S1
 for bug-gnu-emacs@HIDDEN; Mon, 08 May 2017 23:06:53 +0200
Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161]
 helo=chinook) by mailfront11.runbox.com with esmtpsa (uid:179284 )
 (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1d7prd-0006sL-Hy
 for bug-gnu-emacs@HIDDEN; Mon, 08 May 2017 23:06:41 +0200
From: Gemini Lasswell <gazally@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.50; Using edebug-step-in on a macro switches to go-mode
Date: Mon, 08 May 2017 14:06:21 -0700
Message-ID: <87vapb12k2.fsf@chinook>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

edebug-step-in doesn't behave well when you try to use it on a
macro. For an example, enter the following code in *scratch*:
  
(setq my-things nil)
(defun my-try-thing (thing)
  (push thing my-things))

Then:

M-x eval-buffer RET
navigate to my-try-thing and C-u C-M-x
M-: (my-try-thing 'a) RET
i

Result: Edebug exits and code runs to completion, result printed in
minibuffer.

Then navigate to my-try-thing again and C-M-x

Result: Edebug activates with the debugger prompt in `push'.

Stepping into macros would have made sense before eager
macro-expansion, but now by the time Edebug instruments the code the
macro has already run. Probably the simplest thing to do here is to
have edebug-step-in signal an error if asked to step into a macro. The
documentation for edebug-step-in also should be updated to remove
mention of stepping into macros.




Acknowledgement sent to Gemini Lasswell <gazally@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#26847; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.