Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: function copy
- X-seq: zsh-workers 44538
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: function copy
- Date: Mon, 15 Jul 2019 23:51:45 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vBgxSVJbZ5LBa4vyLdRY0X+kXBOSMd4KTjuujR8Euzk=; b=nC+V9t34GgvZ/xvAHbZXX8Wgx0gLw38czW7ogrNjRjRv6g970Ih2E/z+2asp2yQcgb chnUUbb1JF1owkAaYJfsxfJN4RsnCF2wYRVj8zOENxoySOvF2JKPphBmu4TQZ1QkVJ9H P4GhGiQ78sKSLMYIbWjgwWzkiALrORH2LCdmrfQqZO7sXUHUUBF01uScXiAiIARDEPWS kAZnFBWxJOfffSoe18jZOAmK37kUVn7ntuBm35mMTHu+MIPk14jnZjdhcfWt4mIVf1Rz UKj8n1htCJ2hyXaPug9yqTQ1vL7A7dA1LQvvgvAon67UmgsncDvQ0+0ph6G89sjsNT+J fl9A==
- In-reply-to: <CAH+w=7b=AaS1s6_v8hBp6gqrJvY4ST28-XW85+qvK2sqoBojDg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <b80d50af30a0e94f5335d3deeb2bd7d4594ba112.camel@ntlworld.com> <CAH+w=7b=AaS1s6_v8hBp6gqrJvY4ST28-XW85+qvK2sqoBojDg@mail.gmail.com>
On Mon, 15 Jul 2019 at 23:43, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Emacs calls this "advice" and allows before/around/after variations
> which can be added without having to redefine the existing function.
> I have a half-finished (that may be optimistic) module to provide this
> for ZLE widgets. Handling the before/after is not too bad, but for
I have a somewhat related idea which i will now invoke because of the
nice use case it has – a module to add before and after set/get hooks
for parameters. Think about an after-set hook for BUFFER, being the
z-sy-h/f-sy-h _zsh_highlight function, which does the highlighting.
This might be an even better approach than the zle-line-pre-redraw
hook.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author