From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: debug-on-entry question Date: Sun, 19 Jun 2005 10:24:59 -0700 Message-ID: References: <873breo37h.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1119201746 3484 80.91.229.2 (19 Jun 2005 17:22:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2005 17:22:26 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 19 19:22:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dk3Ut-0006LH-6g for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2005 19:22:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dk3aw-0003AD-NA for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2005 13:28:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dk3Zx-0002lH-MA for emacs-devel@gnu.org; Sun, 19 Jun 2005 13:27:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dk3Zp-0002fB-3I for emacs-devel@gnu.org; Sun, 19 Jun 2005 13:27:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dk3Zo-0002dA-FR for emacs-devel@gnu.org; Sun, 19 Jun 2005 13:27:20 -0400 Original-Received: from [141.146.126.229] (helo=agminet02.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dk3a5-0007td-Ms for emacs-devel@gnu.org; Sun, 19 Jun 2005 13:27:37 -0400 Original-Received: from agminet02.oracle.com (localhost [127.0.0.1]) by agminet02.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5JHP4F9023157 for ; Sun, 19 Jun 2005 12:25:04 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet02.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5JHP3Ft023120 for ; Sun, 19 Jun 2005 12:25:04 -0500 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j5JHP3Cc005458 for ; Sun, 19 Jun 2005 11:25:03 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-223.vpn.oracle.com [141.144.80.223]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j5JHP0Xo005441 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sun, 19 Jun 2005 11:25:03 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <873breo37h.fsf@jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:39120 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39120 change the interactive specification of `debug-on-entry' to call `function-called-at-point'. Yes. I've suggested this previously. When debugging, you are often in an Emacs-Lisp buffer, and this is useful. For post-release: it would be good to rewrite the function `call-interactively' in Lisp which will allow easy modification of reading arguments according to code letters (e.g. in this particular case adding a call to `function-called-at-point' for the code letter `a'). Not a bad idea. --- However, that would only help with uses of `call-interactively', not uses of `interactive' itself. It's probably not feasible (and I foresee immediate dismissal of the idea, regardless of feasibility), but what about also having a mechanism to let users extend (redefine) the predefined `interactive' code letters? For example, a user could define his own version of `b' in `(interactive "b...")'. Instead of having to find all occurrences of `(interactive "b...")' and replacing each of them with his own `(interactive (list (my-read-buffer...)...)...)', he could just redefine what `(interactive "b...")' means, in a single place. IOW, why not make the "bindings" between the `interactive' code letters (e.g. `b') and their input-reading functions available to users?