GNU bug report logs - #37899
[feature request] Add a command to stop edebugging.

Previous Next

Package: emacs;

Reported by: HaiJun Zhang <netjune <at> outlook.com>

Date: Thu, 24 Oct 2019 04:09:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37899 in the body.
You can then email your comments to 37899 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37899; Package emacs. (Thu, 24 Oct 2019 04:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to HaiJun Zhang <netjune <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 Oct 2019 04:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: HaiJun Zhang <netjune <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: [feature request] Add a command to stop edebugging.
Date: Thu, 24 Oct 2019 04:07:53 +0000
[Message part 1 (text/plain, inline)]
I edebug(use edebug-defun) some functions in file.el and then close file.el. When I open a new file, emacs aborts and show a buffer with edebug error(It can’t find the original source buffer to debug).

And I even can’t quit emacs because there are functions in kill-emacs-hook which try to open file and save data(such as recentf).

It will be good if there is a command to stop edebugging.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37899; Package emacs. (Thu, 24 Oct 2019 11:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 37899 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: HaiJun Zhang <netjune <at> outlook.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 37899 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#37899: [feature request] Add a command to stop edebugging.
Date: Thu, 24 Oct 2019 13:15:31 +0200
HaiJun Zhang <netjune <at> outlook.com> writes:

> I edebug(use edebug-defun) some functions in file.el and then close
> file.el. When I open a new file, emacs aborts and show a buffer with
> edebug error(It can’t find the original source buffer to debug).
>
> And I even can’t quit emacs because there are functions in
> kill-emacs-hook which try to open file and save data(such as recentf).
>
> It will be good if there is a command to stop edebugging.

And as Stefan suggested, Edebug should be smart enough to offer this to
the user by itself automatically.

In current master (cancel-edebug-on-entry nil) removes
`edebug-on-entry' on all functions, and edebug-remove-instrumentation
removes Edebug instrumentation from all functions.  Would just using
these be appropriate?


Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37899; Package emacs. (Thu, 24 Oct 2019 11:45:01 GMT) Full text and rfc822 format available.

Message #11 received at 37899 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: HaiJun Zhang <netjune <at> outlook.com>
Cc: 37899 <at> debbugs.gnu.org
Subject: Re: bug#37899: [feature request] Add a command to stop edebugging.
Date: Thu, 24 Oct 2019 13:44:16 +0200
HaiJun Zhang <netjune <at> outlook.com> writes:

> I edebug(use edebug-defun) some functions in file.el and then close
> file.el. When I open a new file, emacs aborts and show a buffer with
> edebug error(It can’t find the original source buffer to debug).
>
> And I even can’t quit emacs because there are functions in kill-emacs-hook
> which try to open file and save data(such as recentf). 
>
> It will be good if there is a command to stop edebugging.

There is in Emacs 27 -- `M-x edebug-remove-instrumentation'.  Does this
do what you want to?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37899; Package emacs. (Thu, 24 Oct 2019 13:21:02 GMT) Full text and rfc822 format available.

Message #14 received at 37899 <at> debbugs.gnu.org (full text, mbox):

From: HaiJun Zhang <netjune <at> outlook.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "37899 <at> debbugs.gnu.org" <37899 <at> debbugs.gnu.org>
Subject: Re: bug#37899: [feature request] Add a command to stop edebugging.
Date: Thu, 24 Oct 2019 13:20:13 +0000
[Message part 1 (text/plain, inline)]
在 2019年10月24日 +0800 PM7:44,Lars Ingebrigtsen <larsi <at> gnus.org>,写道:
HaiJun Zhang <netjune <at> outlook.com> writes:

I edebug(use edebug-defun) some functions in file.el and then close
file.el. When I open a new file, emacs aborts and show a buffer with
edebug error(It can’t find the original source buffer to debug).

And I even can’t quit emacs because there are functions in kill-emacs-hook
which try to open file and save data(such as recentf).

It will be good if there is a command to stop edebugging.

There is in Emacs 27 -- `M-x edebug-remove-instrumentation'. Does this
do what you want to?

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

Yes. I copied the source code of the command to emacs 26.3. It worked well with emacs 26.3. Thanks.

This bug can be closed.

[Message part 2 (text/html, inline)]

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 24 Oct 2019 13:29:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 37899 <at> debbugs.gnu.org and HaiJun Zhang <netjune <at> outlook.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 24 Oct 2019 13:29:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 22 Nov 2019 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 290 days ago.

Previous Next


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