From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: debugging.texi Date: Sat, 11 Jun 2005 19:16:26 -0400 Message-ID: References: <200506092236.j59MaQf01709@raven.dms.auburn.edu> <200506110330.j5B3UrX05905@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118533309 26755 80.91.229.2 (11 Jun 2005 23:41:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2005 23:41:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 01:41:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhFbh-00065S-PD for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2005 01:41:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhFgB-00077a-B0 for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2005 19:46:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DhFbE-0005D1-Mf for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:41:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DhFbD-0005CI-Ox for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:41:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhFZX-0004JO-GZ for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:39:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DhFEJ-000805-IF for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:17:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DhFDG-0006qP-Vr; Sat, 11 Jun 2005 19:16:27 -0400 Original-To: Luc Teirlinck In-reply-to: <200506110330.j5B3UrX05905@raven.dms.auburn.edu> (message from Luc Teirlinck on Fri, 10 Jun 2005 22:30:53 -0500 (CDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38607 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38607 (defun debug-on-entry (function) "Request FUNCTION to invoke debugger each time it is called. + When called interactively, prompt for FUNCTION in the minibuffer. That is useful to add. If you tell the debugger to continue, FUNCTION's execution proceeds. This works by modifying the definition of FUNCTION, which must be written in Lisp, not predefined. Use \\[cancel-debug-on-entry] to cancel the effect of this command. ! Redefining FUNCTION also cancels it. This command returns FUNCTION." There's no need for that change. (defun cancel-debug-on-entry (&optional function) "Undo effect of \\[debug-on-entry] on FUNCTION. ! If argument is nil or an empty string, cancel for all functions. ! When called interactively, prompt for FUNCTION in the minibuffer. ! To specify a nil argument interactively, exit with an empty minibuffer. That is useful. ! ! If specified, FUNCTION must be a symbol with a function definition, ! nil, or an empty string. If FUNCTION is a non-nil symbol with ! a function definition, the return value is FUNCTION, even if FUNCTION ! was not previously set up to break on entry. If FUNCTION is omitted, ! nil, or an empty string the return value is a list of all functions ! for which break-on-entry was canceled." That is not needed.