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: be able to have `d' in debugger treat macro expansion like `c' does Date: Mon, 11 May 2009 15:34:42 -0700 Message-ID: <007101c9d288$ae7a84e0$c2b22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242081304 13049 80.91.229.12 (11 May 2009 22:35:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 22:35:04 +0000 (UTC) To: "'emacs-devel'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 12 00:34:54 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3e5F-0006G4-CH for ged-emacs-devel@m.gmane.org; Tue, 12 May 2009 00:34:53 +0200 Original-Received: from localhost ([127.0.0.1]:36631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3e5E-0007uX-R7 for ged-emacs-devel@m.gmane.org; Mon, 11 May 2009 18:34:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3e58-0007rC-RT for emacs-devel@gnu.org; Mon, 11 May 2009 18:34:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3e54-0007jB-Dy for emacs-devel@gnu.org; Mon, 11 May 2009 18:34:46 -0400 Original-Received: from [199.232.76.173] (port=53041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3e54-0007iy-6D for emacs-devel@gnu.org; Mon, 11 May 2009 18:34:42 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:60673) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3e53-0004Hz-MR for emacs-devel@gnu.org; Mon, 11 May 2009 18:34:41 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4BMYvE6024103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 11 May 2009 22:34:58 GMT Original-Received: from abhmt002.oracle.com (abhmt002.oracle.com [141.146.116.11]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4BMZ1Z3001143 for ; Mon, 11 May 2009 22:35:02 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 May 2009 15:34:34 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcnSiK2t6v2l7ZEKTQqBb3dIQ7U5yg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: abhmt002.oracle.com [141.146.116.11] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4A08A7FA.0173:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:110830 Archived-At: In the Lisp debugger (the one for `debug-on-entry' etc.), if you're going along doing `d, d, d...', and you get to a Lisp macro, such as `dolist', you must switch to `c' instead of `d', if you don't want to drill down into the steps of the macro expansion itself. It would be good to be able to optionally have `d' skip over macro expansions (that is, expand all at once, like `c' does). A new user option could control this. [Alternatively, we could have a different key from `d', say `s' (for "step"), that does this always - does what `d' does except for macros, where it does what `c' does. But I suspect a user option would be sufficient - you probably either want to do this all the time or you don't (no need for two different stepping keys).] With the alternative behavior, in `dolist', for example, you would step through the function calls, using `d', and automatically skip over the macro expansions, also using `d'. There are two macro expansions for `dolist': #[(spec &rest body) "...] for `dolist' itself and #[(name &rest body) "...] for `block'. No need to switch from `d' to `c' for those expansions. In something like `dolist', you typically just want to get quickly to the loop iterations. Dunno what others think, but using the debugger with things like `dolist' (which I've been doing for years) is a pain, compared to using the debugger with, say, `while'. It's almost enough of a pain to make one avoid using `dolist' and such. ;-)