From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e75abc5d for ; Tue, 16 Jul 2019 19:12:10 +0000 (UTC) Received: (qmail 13789 invoked by alias); 16 Jul 2019 19:12:05 -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: 44550 Received: (qmail 25417 invoked by uid 1010); 16 Jul 2019 19:12:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f182.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25510. spamassassin: 3.4.2. Clear:RC:0(209.85.208.182):SA:0(-1.9/5.0):. Processed in 2.560042 secs); 16 Jul 2019 19:12:05 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.182 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3YYvVtQpC7qAqvJF77QdoGU9FffyqhehE+s3Mr5vyKk=; b=km4jdh1S/HZznv2aFd/mbhfjLvgDQHFaYdR18oNrq+hcubFv1pQTw7OFJaOG5VCx12 vins+7tLJOtQCkQLIRrOvH92FboORQoBMT/9TUz/BztuFqziX0V922q5X0NY7CmY6FV2 Ow62t6662fiPweO42M+5ypb0hDm90bZomjeUx9eFsLY6Xkr15PUlkiuu6NIhcczTmSWq l0SXX7KfB4nGQJbxcGN1xbvup97yX9rTiPZu3xh0qnOS6C1z3P2W0d7J87tTffCeQJpK KRIuZAz7e5tdRZTDyWsxTwUIwYAijMo4ViGC+AJlJErOr1blC1lpGhRCLcViyIVeugW8 kn7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3YYvVtQpC7qAqvJF77QdoGU9FffyqhehE+s3Mr5vyKk=; b=JUDWHByZvoPEu6eqwapTFpbVkqq8VV5VCw50KthTZumE7vy9x9nNRZNBEkXg+h1xiv pq09CbgFnIPWrPnJmLLJEoqvL/fxnxsYxuU5S1225pppbevnxnzZ6qkZcrMeCCR/ky+5 XI/eAFiD1W/kzKys6Zy0ckUziND1j6DqoSrRU/Rh2tquDBmTxnIJT6T/tlGtOZu/IMiN RfBXGXbkGsjUw8TeGViYlluIR7GhdtLU2bnnT3xYqffBZhF5gqCcdI0sfMaWIGqF9ptY N0QsANZxnUGosfQljAQ+AYId24KJJ94QeQTJ1Uh6pKSGK7U2I3WS6tOirTHKv65kJ4dj TkNA== X-Gm-Message-State: APjAAAVtjZfIfXfo/1Cs6Z9JEIF+rNlSkuNZyUz3i6q7Xm6B00KmQW4M 6+6li22rJtKy6qwloCLRaRaUEli/TU/86apwVu7WIw== X-Google-Smtp-Source: APXvYqwRdto4vabo85GrW09ETGvVZAHOBN51epdO+qcVkriNmQBOUznn4dJtdp4Lfz3XsZNTUI/YZNMGbELik0tv8bI= X-Received: by 2002:a2e:9d8a:: with SMTP id c10mr18194863ljj.147.1563304289302; Tue, 16 Jul 2019 12:11:29 -0700 (PDT) MIME-Version: 1.0 References: <1563267373.6702.5.camel@samsung.com> In-Reply-To: From: Bart Schaefer Date: Tue, 16 Jul 2019 12:11:17 -0700 Message-ID: Subject: Re: PATCH: function copy To: Peter Stephenson Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" One other thought ... On Tue, Jul 16, 2019 at 12:06 PM Bart Schaefer wrote: > > On Tue, Jul 16, 2019 at 1:56 AM Peter Stephenson > wrote: > > > > On Mon, 2019-07-15 at 14:42 -0700, Bart Schaefer wrote: > > > > > "around" you need a way to say "call the original function HERE" > > > > I think you're implying you'd rather not have an additional function > > There doesn't need to be any special syntax, just some special name > linking The other significant thing about "not have an additional function" is that ideally _my_fn and _orig_fn would occur at the same locallevel, that is, the call to the original function would not push a new parameter context onto the stack but would instead behave as if you'd eval'd the source text of the advised function.