Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: some way to inherit kill ring in su'd shell?
- X-seq: zsh-users 13702
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: some way to inherit kill ring in su'd shell?
- Date: Sun, 11 Jan 2009 19:33:17 -0800
- In-reply-to: <m3ocyd70aj.fsf@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-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>
On Jan 11, 8:58pm, Greg Klanderman wrote:
}
} Is an enhancement something like this acceptable?
}
} +tindex(zle-line-finished)
} +item(tt(zle-line-finished))(
} +This is similar to tt(zle-line-init) but is executed every time the line
} +editor is finished reading a new line of input.
} +)
In concept this is OK (though there might be a better suffix than
"-finished", maybe even just "-finish") but I don't think your patch
follows through some possible ramifications. For example, it might
be preferable to save/restore errflag and retflag so that the values
from the end of zlecore() are preserved, and it's possible that the
zle-line-finish widget should not run when errflag != 0.
I don't know all the ramifications of the values of various globals
at the end of zlecore(). PWS?
(This probably ought to get redirected to zsh-workers.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author