From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to stop all edebug? Date: Wed, 23 Oct 2019 08:46:32 +0200 Message-ID: <87zhhs0xiv.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="256759"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "help-gnu-emacs@gnu.org" To: Zhang Haijun Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 08:48:52 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNARv-0014gp-MD for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 08:48:51 +0200 Original-Received: from localhost ([::1]:55486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNARs-0007Xx-N6 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 02:48:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38694) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNAPq-0007RW-Jb for help-gnu-emacs@gnu.org; Wed, 23 Oct 2019 02:46:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNAPp-0001ae-KX for help-gnu-emacs@gnu.org; Wed, 23 Oct 2019 02:46:42 -0400 Original-Received: from mout.web.de ([212.227.15.4]:59305) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNAPj-0001XC-LE for help-gnu-emacs@gnu.org; Wed, 23 Oct 2019 02:46:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1571813185; bh=9Io3NlPkakshbiuR6cR1TVQ78MHhM9siDC41NiW3k/M=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Qyop4JBrSPKWt47YAZ9YFpBvMoxlJXAm//VvXDKm2A76/L0vlXrzTAECfKuX0pY22 3hHCmSZ/iNHc8q1gZWFr1RbMEfIxDTTp3M3NRi9L40Q/5etghj7b8ArQ/8lTSrxadm aCYdlk9gMJgIFaNiXvQ5X0GyHsu4pRSIClHqGHn4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MC6ZE-1iEKiu3c6i-008ojB; Wed, 23 Oct 2019 08:46:24 +0200 In-Reply-To: (Zhang Haijun's message of "Wed, 23 Oct 2019 04:56:28 +0000") X-Provags-ID: V03:K1:aQoKphiy0g+9nqu6Q9DedotAQ09qjfXYUqF10amHOTbK5didbiZ 1Y6BSo0mKYL7p+iH664hRXva3ILj+JHmiU2CGzu8PZSWKEtmMQtwIVWUaswQi6c8KOqepw1 q4dNGcrLrYbDv0rtJEDB0txv4bAiMJq/DyRUmY5gCsq8xrTwIarRplth/Gzl65uju3EJaOm 8zMGj8BYXQo5KhEqZb9Zw== X-UI-Out-Filterresults: notjunk:1;V03:K0:jUARp129A5g=:9BJjdzFhn6wQ/TW2Kq+rRo xILvE2eAfEXyRsb50SUZcDEdnTDaPFXmb+YNE+QYkCiW8weGoqC7QysMBqIRRepUycpgfe2Ee RA9jEP98b4Wz634jBgJDUa9gaW5/MK2SnWjkKkqgXFbUF4j03ufZjcBrdqFXTCvcXmO8OQVdx HGSXNvyCS9ur/A2g2IEwTSa9dmZ/DsXgp1oDlNxARPYjKigFE1rkSyMEmWETcO1BpB27Xalmy ywBWyKXDpvzE49mt/fBuj+AiTpQKUeIjcIYLw/FdEiMNabZlo2EbgbQX31Pt+CZt/E5u/gKWM vnnApFbJNW4YAtTDqNGRPD+JB/yIQCUX17vUqo17OAkLuk4nGpnW4eMge4mxkOjNxdjGoJket TjxjTCVX/LWiWkBRiMrufT04idIEGq8kJKDdSqIaj4+av8NMPS+kNmaFC+dFMmRxfory/u8T3 fcmq15WXPWEZmRczbPyPSmQfwScJJpUWBqbKAWHMYmyKft5tUqDQzuMHXcCovvGDc4qwzR+EK rh0ky6mf3Oz96xKyyQyK05zxSIrWnt4SePX3Ql5MeyduJp91K/o1kPgCVaFE9SvK7VCKeVOxC FqJQ9CUmiNynG1RAKJAP0nmunb4Mt6hHDlSHgWuflzJENRnod96rojFvDfOA9VwC03DQmsiRa 1PILInnjcOjYjdPU/Upd44pnrBf7Mg+mdH+WJv1MgqQUs+IXAzkLoMZXpAfNodHVCDb4l38ru 94N6vJgpOkazgP6b7FY2C+RTisS9bznJNtZel9Iv9nJ4NcvvghVigayvZWD7j4ihv5NOxUtg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121698 Archived-At: Zhang Haijun 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=E2=80=99t find the original buffer to debug). > > And I event can=E2=80=99t quit emacs because there are functions in > kill-emacs-hook which try to open file and save data(such as recentf). > > Is it possible to cleanup all edebug sessions? There has been a commit to the master branch some days ago that makes `cancel-edebug-on-entry' do that by default (confirm with an empty prompt). If you don't use the master branch, this is the code that does what you want: (dolist (function (edebug--edebug-on-entry-functions)) (put function 'edebug-on-entry nil)) Michael.