Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: add zle-line-finish special widget
- X-seq: zsh-workers 26408
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: add zle-line-finish special widget
- Date: Thu, 22 Jan 2009 19:50:51 -0500
- In-reply-to: <090117100812.ZM23494@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Sat, 17 Jan 2009 10:08:12 -0800")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <18789.30656.261463.382208@xxxxxxxxxxxxxxxxxx> <20090110095231.GA61601@xxxxxxxxxxxxxxxxxxxx> <m33afq97gg.fsf@xxxxxxxxxxxxxx> <20090111025418.GA7272@xxxxxxxxxxxxxxxxxxxx> <m3tz857mkm.fsf@xxxxxxxxxxxxxx> <090111110748.ZM12349@xxxxxxxxxxxxxxxxxxxxxx> <m3r63975pd.fsf@xxxxxxxxxxxxxx> <m3ocyd70aj.fsf@xxxxxxxxxxxxxx> <090111193317.ZM12655@xxxxxxxxxxxxxxxxxxxxxx> <m3k5916unp.fsf@xxxxxxxxxxxxxx> <m33afix0x0.fsf_-_@xxxxxxxxxxxxxx> <090117100812.ZM23494@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> Refreshing my memory of the code a bit, I'm coming
> to the conclusion that the test should be:
> if (done && !exit_pending && !errflag &&
> (initthingy = rthingy_nocreate("zle-line-finish"))) {
> At the very least it should check (done && !exit_pending), even if
> it ignores the state of errflag.
Either of those should be OK by me.. would you like me to
test one or the other a bit and re-submit the patch?
>>>>> Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> writes:
> I don't know if this is correct or not---it really depends what
> zle-line-finish is designed to do. If it's a catch-all tidy up, it
> probably *should* run and then you probably should set errflag to 0
> after saving the surrounding value.
Right.. for my current use case it doesn't really matter whether it
runs in the error case or not. I'm not sure which semantics is best
in general. If one wanted to use it for some cleanup, or messing with
font colors or whatever, you might want it to run always.
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author