From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26217 invoked by alias); 15 May 2016 11:59:32 -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: X-Seq: 38496 Received: (qmail 22861 invoked from network); 15 May 2016 11:59:31 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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:date:message-id:subject:from:to :content-transfer-encoding; bh=hxmLimdhYKQZWlPVo0cglcmpW8O1YrVZ8nJf32o/t5k=; b=ra10/ih0/IxZoUyPp8hcLUjMi52Ata4coW/sshcJ0quj8Dyj5V3vqyZUwtEaVmwMDN i4yG8KtnDA1e/Wf35XxSY8EYTtgxelinFC87YHjM6MCukyKgaVEulrPC1oTyw3Vu9P6r qppF17HM+lMuIbzZFdNrtwn6s0EmA9zamxpZdiEHZ9zOm2zKysvl9HoWLeNMlW88gzSE LQ7iRcbHhqzp1KNBmXd5gWUeBCKIdD1l/CPnzmBHVJlpZNbYiYjcXGStRhevEuiOOS0o /PA1cQQOb8koUprZp2bNX8k5EvolyI6DlxqFK/1G0fB5gXQ0lvJWa+twcVBtE/HCrF+4 o+Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=hxmLimdhYKQZWlPVo0cglcmpW8O1YrVZ8nJf32o/t5k=; b=jgXF9rwUab8umdC0sBh++nYgIdEW0f1M4YvZq6QnvoIRqF2oqEyBNZALVZmsF3vGcN YmwhC+lkaEwEKgGHkuu/ZqoZ/X/nWGlgcoOYrLjQ0bSr9ajjkyYdF9iD3Y1QPcFLh3GR K3WUQWpu+ynvTnxjj014qHwAtMawC7GO4Sr+M1Xhv5X9eaWe7OArdDqfQh9QQ0Ijng9w vbrES+Ix2WXiaEmmpJU/KEiO5U8NLLzDKiyoMziS+Fe/B6WOzFR/40JDbnbZTBy1JFZp Tq4s73B29HvbpYf+SWFQBV01Zhzpkmm2id/Ed0Y/+9QeE6WqDscRwYfkCVDRltWmjhvB pRhw== X-Gm-Message-State: AOPr4FXOE44vgI3R9ewuymWYRBX1/G7yW/P+VDLiHGS3lpTAP7+8HV2ddJHZpMCzpLoUk7WdfTFhYIMpPL4/Eg== MIME-Version: 1.0 X-Received: by 10.25.149.84 with SMTP id x81mr8383694lfd.166.1463313567991; Sun, 15 May 2016 04:59:27 -0700 (PDT) In-Reply-To: <20160514030031.GA2530@tarsus.local2> References: <20160506205309.GY5029@sym.noone.org> <160508115026.ZM10022@torch.brasslantern.com> <20160509141306.GA18211@cventin.lip.ens-lyon.fr> <160509084143.ZM13554@torch.brasslantern.com> <20160510085833.GA20332@cventin.lip.ens-lyon.fr> <160510125848.ZM1686@torch.brasslantern.com> <20160513092348.GB18186@zira.vinc17.org> <20160513222039.GA2425@tarsus.local2> <20160514030031.GA2530@tarsus.local2> Date: Sun, 15 May 2016 04:59:27 -0700 Message-ID: Subject: Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic) From: Bart Schaefer To: Zsh hackers list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, May 13, 2016 at 8:00 PM, Daniel Shahaf wro= te: > > Asking the user to explicitly invoke from pre-redraw all plugins that > need to be invoked from pre-redraw would be a compatibility / upgrades > nightmare: whenever a plugin that previously didn't use pre-redraw would > want to start using pre-redraw, all that plugin's end users would have > to edit the Single Master Pre-Redraw Function in their .zshrc's, in > lockstep with installing the updated plugin. This would simply not > scale. > > What would scale is an interface similar to the one add-zsh-hook > provides for non-zle hooks: an interface that allows an arbitrary number > of registrations, where the various registrants =E2=80=94 be they the use= r's > .zshrc or plugins =E2=80=94 need not know or care whether there are other > registrants. I was never very happy with the built-in variables for lists of hooks, particularly because they needed an externally-defined helper (add-zsh-hook) to make them practical. I think add-zsh-hook could have been written entirely in terms of the original precmd et al. functions without the corresponding variables. Hence I also think that a plugin registry for the special zle hook widgets ought to be implemented externally, and the plugins agree to make use of it -- because if the plugins don't follow such a convention then the user has to update .zshrc in lockstep with the plugin installation anyway. This convention could include allowing plugins to describe (or at least suggest) the order in which their hook should be called.