* bug#37899: [feature request] Add a command to stop edebugging.
@ 2019-10-24 4:07 HaiJun Zhang
2019-10-24 11:15 ` Michael Heerdegen
2019-10-24 11:44 ` Lars Ingebrigtsen
0 siblings, 2 replies; 4+ messages in thread
From: HaiJun Zhang @ 2019-10-24 4:07 UTC (permalink / raw)
To: 37899
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1015 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37899: [feature request] Add a command to stop edebugging.
2019-10-24 4:07 bug#37899: [feature request] Add a command to stop edebugging HaiJun Zhang
@ 2019-10-24 11:15 ` Michael Heerdegen
2019-10-24 11:44 ` Lars Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Michael Heerdegen @ 2019-10-24 11:15 UTC (permalink / raw)
To: HaiJun Zhang; +Cc: Lars Ingebrigtsen, 37899, Stefan Monnier
HaiJun Zhang <netjune@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37899: [feature request] Add a command to stop edebugging.
2019-10-24 4:07 bug#37899: [feature request] Add a command to stop edebugging HaiJun Zhang
2019-10-24 11:15 ` Michael Heerdegen
@ 2019-10-24 11:44 ` Lars Ingebrigtsen
2019-10-24 13:20 ` HaiJun Zhang
1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-24 11:44 UTC (permalink / raw)
To: HaiJun Zhang; +Cc: 37899
HaiJun Zhang <netjune@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37899: [feature request] Add a command to stop edebugging.
2019-10-24 11:44 ` Lars Ingebrigtsen
@ 2019-10-24 13:20 ` HaiJun Zhang
0 siblings, 0 replies; 4+ messages in thread
From: HaiJun Zhang @ 2019-10-24 13:20 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 37899@debbugs.gnu.org
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
在 2019年10月24日 +0800 PM7:44,Lars Ingebrigtsen <larsi@gnus.org>,写道:
HaiJun Zhang <netjune@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.
[-- Attachment #2: Type: text/html, Size: 1573 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-24 13:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-24 4:07 bug#37899: [feature request] Add a command to stop edebugging HaiJun Zhang
2019-10-24 11:15 ` Michael Heerdegen
2019-10-24 11:44 ` Lars Ingebrigtsen
2019-10-24 13:20 ` HaiJun Zhang
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.