From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: debug-on-entry question Date: Sat, 18 Jun 2005 13:23:39 +0200 Message-ID: <85br63c3ic.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119093867 31386 80.91.229.2 (18 Jun 2005 11:24:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2005 11:24:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 13:24:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DjbQS-0006ua-Jc for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2005 13:23:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjbWF-0004eS-VG for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2005 07:29:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DjbQu-0002pI-Ae for emacs-devel@gnu.org; Sat, 18 Jun 2005 07:24:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DjbQo-0002oN-QV for emacs-devel@gnu.org; Sat, 18 Jun 2005 07:24:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjbQn-0002cU-Ew for emacs-devel@gnu.org; Sat, 18 Jun 2005 07:24:09 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DjbSW-00086o-1k for emacs-devel@gnu.org; Sat, 18 Jun 2005 07:25:56 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DjbPv-0001rr-Gy; Sat, 18 Jun 2005 07:23:15 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 9CF951C142D7; Sat, 18 Jun 2005 13:23:39 +0200 (CEST) Original-To: Yoni Rabkin Katzenell In-Reply-To: (Yoni Rabkin Katzenell's message of "Sat, 18 Jun 2005 13:03:31 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:39071 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39071 Yoni Rabkin Katzenell writes: > Is there an existing function which performs the following? > > (defun debug-on-entry-at-point () > "Perform \\[debug-on-entry] on the function at point." > (let ((fn (function-called-at-point))) > (if fn > (debug-on-entry fn) > (message "No function at point")))) Usually M-x edebug-defun RET is much more useful. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum