From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28833 invoked from network); 18 Sep 2006 15:17:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Sep 2006 15:17:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 65610 invoked from network); 18 Sep 2006 15:17:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 15:17:31 -0000 Received: (qmail 23080 invoked by alias); 18 Sep 2006 15:17:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22738 Received: (qmail 23071 invoked from network); 18 Sep 2006 15:17:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Sep 2006 15:17:28 -0000 Received: (qmail 65249 invoked from network); 18 Sep 2006 15:17:28 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 15:17:24 -0000 Received: from torch.brasslantern.com ([71.116.118.106]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J5S006DENRM13K2@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 18 Sep 2006 10:16:35 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k8IFGXGQ001872 for ; Mon, 18 Sep 2006 08:16:34 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k8IFGXZA001871 for zsh-workers@sunsite.dk; Mon, 18 Sep 2006 08:16:33 -0700 Date: Mon, 18 Sep 2006 08:16:33 -0700 From: Bart Schaefer Subject: Re: PATCH: functrace [was Re: funcstack and backtraces] In-reply-to: <20060918110758.GA23984@scowler.net> To: zsh-workers@sunsite.dk Message-id: <060918081633.ZM1870@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060901191034.GA31335@scowler.net> <060904142643.ZM9472@torch.brasslantern.com> <20060917191418.GA22898@scowler.net> <060917153954.ZM32752@torch.brasslantern.com> <20060918033708.GA6522@scowler.net> <060917225733.ZM1116@torch.brasslantern.com> <20060918110758.GA23984@scowler.net> Comments: In reply to Clint Adams "Re: PATCH: functrace [was Re: funcstack and backtraces]" (Sep 18, 7:07am) On Sep 18, 7:07am, Clint Adams wrote: } } > TRAPDEBUG prompt_bart_precmd precmd } > prompt_bart_precmd:1 Src/zsh:2 Src/zsh:9 } } So Src/zsh:9 calls precmd, Src/zsh:2 (precmd?) calls prompt_bart_precmd, } and prompt_bart_precmd:1 unwittingly calls TRAPDEBUG. OK, so I was misreading it. Just up too late, I guess. Thanks. } Maybe grabbing the name of the previous function from the funcstack } would be more useful. Particularly in combination with my "functions"-output newline-placement suggestion from zsh-users/10591, so that you could actually match the line number to a line in a function without having to re-read the source file.