From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26906 invoked from network); 27 Jul 2008 01:06:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Jul 2008 01:06:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 71383 invoked from network); 27 Jul 2008 01:06:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Jul 2008 01:06:47 -0000 Received: (qmail 11799 invoked by alias); 27 Jul 2008 01:06:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25339 Received: (qmail 11773 invoked from network); 27 Jul 2008 01:06:37 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 27 Jul 2008 01:06:37 -0000 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by bifrost.dotsrc.org (Postfix) with ESMTP id 5831380561C3 for ; Sun, 27 Jul 2008 03:06:33 +0200 (CEST) Received: by wa-out-1112.google.com with SMTP id v27so2839834wah.21 for ; Sat, 26 Jul 2008 18:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=wUGHP6XXaHEDZmCG8ce8tzd/HALQ3SqWIK/j5EzuENs=; b=EOzWQL05cp+5/FS34winuHZs95tPBoN8SWPH8sKgptkh5Z6cZGl72/QYxQ8xF79SSU Gjz7ZbGk9Hm/C0Jyv9ZmFfZFpHLWqiNSCEFdg8ShIp/1/QUSJs94rmUbSSV1mBOllEw3 3msGZ1Q0JfpeD+hUZoOrBZBoLCNSKfFHJM3Ww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=YLRjFdMImYMfPvC/8jZ7H2+omoBmqSxqA1pLHhs6eFKzhj1jvaRLnUlW6I0JYYmKe9 478hWYWz7cC1MBo90y4CBZLKh/qvRfeuU1s0bUN+zQNZaJty7rYVEEkhMW3lSBZxe4SN 0SD1NkQYMzyxzLpy3Ncuqi2mCn+hZiQUzIUP4= Received: by 10.114.192.17 with SMTP id p17mr3610996waf.29.1217120793128; Sat, 26 Jul 2008 18:06:33 -0700 (PDT) Received: by 10.114.159.2 with HTTP; Sat, 26 Jul 2008 18:06:33 -0700 (PDT) Message-ID: <6cd6de210807261806r7ff184fdtcc7859cca0a98aef@mail.gmail.com> Date: Sat, 26 Jul 2008 21:06:33 -0400 From: "Rocky Bernstein" To: zsh-workers@sunsite.dk Subject: Getting source file and line number of a function. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: ClamAV 0.92.1/7840/Sun Jul 27 02:10:52 2008 on bifrost X-Virus-Status: Clean I see that zsh has now has array variables functrace and funcstack. Functrace stack gives a function name and a line offset from the function. But for many things involving location reporting, it would more be desirable to have a filename and absolute line location. Alternatively, if there were a way to get the filename and line number of the beginning of a given function, one can do some arithmetic to get the absolute position. Is there currently a way to get this information. Should I try at submitting a patch?