Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add a hook on isearch
- X-seq: zsh-workers 28275
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Add a hook on isearch
- Date: Sun, 19 Sep 2010 16:54:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=yasvx32PRvlWZC/C+YddMW9gNml0RHc81/63NqpMxJI=; b=GDu4n7PLM7QamKdcOKWJkhBuK8PrLrX17htzbqSalzdUSuXQGv1E2fZiTMdcIouILO CJhDRt1Ch6QKOJwb1PbHRWQDj/u3wIloiG/nw36fph0SHOzAggPFdZf2anei89GZxxPy o1qwqRNKlMSSUpNZbQXlMhsYrRes8ZpDe0PCw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XO4tHVjorfoHRHgWenOrIN2VlRLPPpPVfX/1icyoFo0qgRbZQaeGPOKTsIr76/Pjxx ieX9KDNiLo4JTOigrDdJJykeFXqaNc1a1nTl4gD9qsKYMD2wUO92/rkX7S2w5DiMrsd9 I/RYZhiBybGO3uh/oS1PISTqazYwhhhYi/WL4=
- In-reply-to: <100918130049.ZM31211@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTinEDT7WjY3JFUuMXiN7mHLCYo5OJfsgs2jGW1Sd@xxxxxxxxxxxxxx> <100918130049.ZM31211@xxxxxxxxxxxxxxxxxxxxxx>
On 18 September 2010 22:00, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 18, 6:50pm, Mikael Magnusson wrote:
> }
> } This might make something explode, but it's probably pretty useful.
>
> Maybe it's time for a callhookzle() to go with callhookfunc() and
> runhookdef()?
>
> } ref:
> } + if ((cmd = rthingy_nocreate("zle-isearch-update"))) {
> } + char *args[2];
> } + args[0] = cmd->nam;
> } + args[1] = NULL;
> } + execzlefunc(cmd, args, 1);
> } + unrefthingy(cmd);
> } + }
> } +
>
> Seems like there's some global state management that this might not
> be doing with respect to errflag and retflag.
I did something similar on that patch i just linked to on users that
runs on every buffer refresh, and that subtly breaks ^r searching, so
I guess this might have similar problems. Unfortunately (for me) I
just wrote "some static variables" in that mail, so who knows which
ones it actually is... :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author