From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8126 invoked by alias); 16 Dec 2017 21:10:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42135 Received: (qmail 22294 invoked by uid 1010); 16 Dec 2017 21:10:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f172.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.172):SA:0(-1.9/5.0):. Processed in 2.514652 secs); 16 Dec 2017 21:10:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hy5sJ4Ux3m2rYL3Jwsji9dWAPOpELYUCpu576sJYKjA=; b=qRAG9aojxi3POVCLAOy01RduQD1Dad1aCwgGZo57It75wWogYTX59nl+ntWyiplZap jpuNamRfwgTGPbeF8TUibTVecelWAFIjJNOpPPQYNkjLTs4G5zq4Hj1gdZYbDkEyQ2Ew Ec7zYWYNz6PQqBfngYwvxfCmDB//10WgVQnR5weULCuy/CwfqUCQDw61PmBi0t973qX3 2llzNYTRXM9DMMLi9djGtCs4dgshhkbSmI8EuRaCE8rtRdiJZnScKaVvXKgQ69tMhMrb 88Bukxrxx+8RyViKAxDWBmU3iAYqtCS4tSwN3xY0dc+13HOZCZI4TTFhuQYMBtKL+LvH YCZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hy5sJ4Ux3m2rYL3Jwsji9dWAPOpELYUCpu576sJYKjA=; b=OM8dFRlb5TqcdTIngpwIJ0VqNtQSzsNcUxDMBsUWP1Mwq5HP6WaNwbIxa8D+dYVDZc X/4KzzfBmdsyx992D2hwBTwjsEct64K5QoP7HLDjhRS0ww1eRgEm4nyIbqTVQip6htR/ u7Y4tUEA9wggzLbnd0VOmznTAqqTi21KTfci4UUlgtxgQAhLkQB0/pj638aw3N0BA+Hx drD8ennmiIYWAui1apMJNG7DFgd9SV19yfDLNLMyXDESAHdaTAy6XSAE0SPrs2BM8zD+ JD3cg6pfKcuVTvrlO5OiSGslg4B/Q1eP03oOWlzbCjTvCPnkJ0/TuNnaRttKioiCi8ir OITQ== X-Gm-Message-State: AKGB3mK2Wzh64A3lok/yo0wc9KVl9/oNTTIPGm6Ccsww4ARZ2DnZpNPV uKd/7/HR2owTXxLeLUpRoOSJ5W3+NW49EZDygAa8hA== X-Google-Smtp-Source: ACJfBovQb5reMRuhmKfrUOE81oramzdBWFvb6X7/QTYNtLC5u6SvHSdkOG22F44owezh8VsbSPQgOY2wHkjIKjQtj/Y= X-Received: by 10.200.46.167 with SMTP id h36mr29386818qta.267.1513458632916; Sat, 16 Dec 2017 13:10:32 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20171211094116.48e29012@pwslap01u.europe.root.pri> <20171211101238.410a91b1@pwslap01u.europe.root.pri> <26AB704C-51B8-49FE-87E2-3BCDE5F7DF42@dana.is> <20171215102118.7bdfff2e@pwslap01u.europe.root.pri> From: Bart Schaefer Date: Sat, 16 Dec 2017 13:10:32 -0800 Message-ID: Subject: Re: [BUG] Anonymous functions cause funcfiletrace to produce function-relative line numbers To: dana Cc: Peter Stephenson , "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Fri, Dec 15, 2017 at 10:45 AM, dana wrote: > > tried it with the functions in separate files, and they look correct there > too... unless you use ksh-style definitions. Does the same thing happen whenever a function is defined like this -- > % < puts > # > puts() { > # > # > panic > } -- in an autoload file (zsh included)? That is, if the function is parsed as part of a larger function, so it isn't defined until the surrounding function is executed, then I'm betting the line numbers from the original file are lost.