Reply to message «Re: added TextDeleted and TextYanked events», sent 01:00:50 24 May 2011, Tuesday by Philippe Vaucher:
> No because every delete/yank use the " register even if a register was > explicitely specified. As a matter of completeness maybe it'd be nice > to know which register was intended yes but it's the first time I > fiddle with vim's source (with some pain) so I'm not too sure how much > work is involved in creating one of those v:somevar. No, you forgot about deleting to black hole register. Original message: > > I think they should be called TextDeletePost and TextYankPost to be > > consistent. > > Ok, I can do that. > > > Try doing something weird in the autocommand, such as "help" and then > > deleting something. > > You probably need to disallow lots of things to avoid breaking stuff > > (and perhaps even crashing Vim). > > I'm not sure I want to support the crazy guys, there's probably lots > of ways to create problems with other events too if that's your goal. > Anyway, what do you have in mind? The current patch is very simple and > I kinda like it to be that way, but if there are obvious stuffs I can > disable/disallow I'll do it. > > > Don't you need to let the commands know what register text was yanked > > into? > > No because every delete/yank use the " register even if a register was > explicitely specified. As a matter of completeness maybe it'd be nice > to know which register was intended yes but it's the first time I > fiddle with vim's source (with some pain) so I'm not too sure how much > work is involved in creating one of those v:somevar. > > Philippe
signature.asc
Description: This is a digitally signed message part.
