From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Lisp debugger problems. Date: Wed, 02 Mar 2005 17:15:01 +0100 Message-ID: <87fyze2fei.fsf@xs4all.nl> References: <878y5eke1b.fsf@xs4all.nl> <874qfwaaat.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109780658 5309 80.91.229.2 (2 Mar 2005 16:24:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2005 16:24:18 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 02 17:24:18 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6WTR-0002EZ-Ec for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 17:13:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6WmD-0008IS-0G for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 11:32:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6Wl3-0007tW-AW for emacs-devel@gnu.org; Wed, 02 Mar 2005 11:31:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6Wl0-0007s7-Je for emacs-devel@gnu.org; Wed, 02 Mar 2005 11:31:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6Wl0-0007rb-Bs for emacs-devel@gnu.org; Wed, 02 Mar 2005 11:31:30 -0500 Original-Received: from [194.109.24.35] (helo=smtp-vbr15.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D6WV7-0008LV-Q6; Wed, 02 Mar 2005 11:15:06 -0500 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr15.xs4all.nl (8.12.11/8.12.11) with ESMTP id j22GF4Zh013305; Wed, 2 Mar 2005 17:15:04 +0100 (CET) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1D6WV7-0000QS-00; Wed, 02 Mar 2005 17:15:05 +0100 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 02 Mar 2005 06:22:14 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 16 X-Virus-Scanned: by XS4ALL Virus Scanner 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:34086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34086 Richard Stallman writes: > IIRC defadvice has some support for such things (e.g. you can > add an advice even before the function is defined). Maybe it'd > be a good idea to implement debug.el in terms of advice. > > Right now, the code to implement debug on entry is so simple that it > would be a shame to use something as heavyweight as the advice > mechanism. However, if these new changes add a lot of complexity, > maybe using the advice mechanism will become the simplest way. What about advising the primitives that define functions to add debug-entry-code when a function is in debug-function-list? Would that work? Lute.