Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle_line_init_functions (Re: accept-line-and-down-history and push-input)
- X-seq: zsh-workers 28383
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: zle_line_init_functions (Re: accept-line-and-down-history and push-input)
- Date: Mon, 01 Nov 2010 00:01:58 -0700
- In-reply-to: <20101031215450.06b7ed7b@xxxxxxxxxxxxxxxxxxx>
- 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: <AANLkTin4qeNKcBt_TDzY2xt-XJ6aHVH257FOa6iriPSm@xxxxxxxxxxxxxx> <101026075546.ZM28500@xxxxxxxxxxxxxxxxxxxxxx> <20101026161947.19279c58@xxxxxxxxxxxxxxxxxxxxxxxxx> <101026220102.ZM29774@xxxxxxxxxxxxxxxxxxxxxx> <20101027102216.16719058@xxxxxxxxxxxxxxxxxxxxxxxxx> <101027084031.ZM31108@xxxxxxxxxxxxxxxxxxxxxx> <20101031215450.06b7ed7b@xxxxxxxxxxxxxxxxxxx>
On Oct 31, 9:54pm, Peter Stephenson wrote:
}
} > I'd amend to suggest a second nameless widget that can't be
} > replaced by "zle -N" whose purpose is to walk the array, following
} > the structure of your patch in user/15493 more closely.
}
} Alas, it still doesn't work. Because the widget is built-in, there's
} no point at which the zle parameters get added --- the hierarchy is
} builtin widget -> ordinary shell function
Ah, and hmm. So there's no clever way to pull off the equivalent of
(pseudo-code):
zle -N hook-runner (){ local f; for f in ... }
I.e., take an anonymous function that does what you want and make a
user-defined widget out of it?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author