From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Backtraces to use macro information from edebug-specs? Date: Fri, 13 Feb 2009 20:53:07 -0500 Message-ID: References: <87y6waow23.fsf@freebits.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234576402 2858 80.91.229.12 (14 Feb 2009 01:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 01:53:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Tobias C. Rittweiler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 14 02:54:37 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 1LY9jo-0000BR-48 for ged-emacs-devel@m.gmane.org; Sat, 14 Feb 2009 02:54:36 +0100 Original-Received: from localhost ([127.0.0.1]:43139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LY9iU-0004TS-A5 for ged-emacs-devel@m.gmane.org; Fri, 13 Feb 2009 20:53:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LY9iP-0004TN-Gd for emacs-devel@gnu.org; Fri, 13 Feb 2009 20:53:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LY9iP-0004TB-31 for emacs-devel@gnu.org; Fri, 13 Feb 2009 20:53:09 -0500 Original-Received: from [199.232.76.173] (port=36566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LY9iO-0004T8-TK for emacs-devel@gnu.org; Fri, 13 Feb 2009 20:53:08 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:7486 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LY9iO-0000ic-HK for emacs-devel@gnu.org; Fri, 13 Feb 2009 20:53:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEABKzlUlLd+Q0/2dsb2JhbACBbdBShBwGgyw X-IronPort-AV: E=Sophos;i="4.38,204,1233550800"; d="scan'208";a="33874161" Original-Received: from 75-119-228-52.dsl.teksavvy.com (HELO pastel.home) ([75.119.228.52]) by ironport2-out.teksavvy.com with ESMTP; 13 Feb 2009 20:53:08 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id DAC0884C5; Fri, 13 Feb 2009 20:53:07 -0500 (EST) In-Reply-To: <87y6waow23.fsf@freebits.de> (Tobias C. Rittweiler's message of "Fri, 13 Feb 2009 22:40:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:109057 Archived-At: > Given the information form edebug-specs (which are defined for all `cl' > macros), it may perhaps be possible to find out that > `quux(23)' comes from the body of case, but `(cond ((eql ...' doesn't. > `(case key ...' appears in the body of destructuring-bind, but the > `(let* ... ' and `(progn ...' do not. > As a result the backtrace could be presented as follows > Debugger entered--Lisp error: (error "QUUX -- 23") > signal(error ("QUUX -- 23")) > error("QUUX -- %S" 23) > quux(23) > (cond ((eql key ...) (quux slot1) (:bar ...))) > (case key (:foo (quux slot1) (:bar ...))) > (let* ((--cl-rest-- list) (key ...) (slot1 ...) (slot2 ...)) (case ...) > (progn (let* (... ... ... ...) (case key ...))) > (destructuring-bind (key slot1 slot2) list (case key (:foo ... ...))) > foo((:foo 23 42)) > Of course, they may be better ways to do this, depending on how much > debug information is available. > Has anyone worked on something like that? Not that I know. Stefan