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: Thu, 24 Oct 2019 15:13:07 +0200 Message-ID: <87a79qz3q4.fsf@web.de> References: <87zhhs0xiv.fsf@web.de> <87sgnis8t7.fsf@web.de> 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="157954"; 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" , Zhang Haijun To: HaiJun Zhang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 15:33:29 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 1iNdEz-000els-TV for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2019 15:33:26 +0200 Original-Received: from localhost ([::1]:42656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNdEx-0002U9-Fv for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2019 09:33:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNcvJ-0004Tx-KI for help-gnu-emacs@gnu.org; Thu, 24 Oct 2019 09:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNcvI-0001HM-JW for help-gnu-emacs@gnu.org; Thu, 24 Oct 2019 09:13:05 -0400 Original-Received: from mout.web.de ([212.227.15.4]:44767) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNcvI-0001Gd-6Q for help-gnu-emacs@gnu.org; Thu, 24 Oct 2019 09:13:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1571922778; bh=rXUhAizwj1SycENXWlDpHTnshI6afg7ph9MY22KCinQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=DzTX5P8StRZjmu79QcOfsyogqCNzI/3WPq+4JB/QOM+HEI1+fCfQJz66oSeCjHdk2 EavMlcaxVoU38ZDa5HaJv1wDD7eKAW0JKZKSLdU7xLN72XiEzT8vXiHgOB/JB6gAZ6 yoHcxdDFTQIk5/qZkR2UZ/s4xHAqMd0sngFFADnM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0McFQF-1igfbp1yYZ-00JeZ9; Thu, 24 Oct 2019 15:12:58 +0200 In-Reply-To: (HaiJun Zhang's message of "Thu, 24 Oct 2019 12:45:55 +0000") X-Provags-ID: V03:K1:oWLb0Y9CQiZ1TaiA+yoJZjaXYkMKB7vBfUVQMIThEdkY0q9w/oR 1lMWICSHoNi7rlrsNSL2CaerjFBsXvIqAGjHYq8XIy0mk5TFJuxqfkruQ9/imXiVhTiLjg0 X0123P57Fr8odIPmfNb3rPVyy5eaXtwLqlEIO8jbirIMUN2izkePdZEslzj+2p6d4ztUrRv VKJlYp8fUH7tMDZFozxzw== X-UI-Out-Filterresults: notjunk:1;V03:K0:JrO7d5ngoBM=:GzSiB8o26gB06b7qe5Y4fc D3aw3uZZyuBoyIzBpWBvOCokzCYAVV9wAmKCU7cuPH0Z40kXAN3l6yWyTipZrLH82bNLuDYTc pOSijtaFXDDAPua+bUgiuOfJ//Liosn9+z5AniPtZ8c3sSwhiefPEDAP8Lf2tZ+jAWPKlOzg/ GmKVIArLUPPsNODjc7DITYNsT+pEtYmPysTY5ZNleR8fYuw2jy5wWKcEu8B7hh/erGeC8X3c2 sM9mkweuNgHOKADk/WbVguyIIGTk55hNhpPMuSRARJXMe1vj41Ms7CtloHhHoqTfrIX3xRQ2Y pctdFHXYBWRuNzNBrDlJPUCUZAqg63Jl7Mt54XCRwaxrQRo1ZuIIAzj9RJXhVzsw2CPR7Xhkx disHPm/k0iPwfPFoCgfOWPFfclOUprO8sFaNEu0rs/51k/+NXm8a3mp6F17fTLTh8BE3PoS4V cs3d5jx4jSGpjLWxqKFF3vFYvcNBgpgp9DVdXkmLfpmjORKrv4oI6Iyy8xmBFgJMOogNDQi/k 3lXvXjYoCJlsg9r/yKxoW8OElZKoRV6d6zQmo3y9vT0/qmctL/heMe3L0mB35vJ2IN0OlnTHl cMcr6wO2QCEVtl1Din/uStXyP5dF4kM0BjCZlJ2wacm17tsaYPLGHRe8n/3sFPTBnqaDz4FG+ 4gV2L2CQW8p8uLRcmfYF1KGMy2Z8ou9nJ8Pzbi80CIt83tYfJEXwWOFV5Vz2gDQad9q8J6H5o dyLsSulTOWB5sKhsHN5vziT0mxGY6DNNQLA4eWdXpB7EtqtylOrbbYAdkKJseOBkqmNaAVzJ 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:121711 Archived-At: HaiJun Zhang writes: > I tried and it didn=E2=80=99t work. I eval > `(edebug--edebug-on-entry-functions)` and it returns nil. Oh well, correct again, that doesn't work as well, sorry for wasting your time. Ok, now I have tested that Lars' new `edebug-remove-instrumentation': #+begin_src emacs-lisp (defun edebug-remove-instrumentation () "Remove Edebug instrumentation from all functions." (interactive) (let ((functions nil)) (mapatoms (lambda (symbol) (when (and (functionp symbol) (get symbol 'edebug)) (let ((unwrapped (edebug-unwrap* (symbol-function symbol)))) (unless (equal unwrapped (symbol-function symbol)) (push symbol functions) (setf (symbol-function symbol) unwrapped))))) obarray) (if (not functions) (message "Found no functions to remove instrumentation from") (message "Remove edebug instrumentation from %s" (mapconcat #'symbol-name functions ", "))))) #+end_src works for me at least in 26.1. Can you please try that? Just M-x edebug-remove-instrumentation. Regards, Michael.