> > > I had this same request before. complete_info() should give this info.
> >
> > Thank you, Prabir - this is exactly what I'm after.
> 
> Except that when completion has already finished, which is the
> situation we're talking about here because we're handling
> CompleteDone, then complete_info() returns a "mode" of "".
> 
> I think the simplest thing for now is to follow Bram's suggestion of
> using user_data.

Hmm, would there be any harm in triggering CompleteDone before resetting
the complete info?  I don't think so.  Would anyone using the
autocommand event depend on the completion already being cleared?
If yes, then we would need to introduce another event.  I rather keep it
simple and have just one event.

-- 
This message contains 78% recycled characters.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202001161800.00GI0xpo021740%40masaka.moolenaar.net.

Raspunde prin e-mail lui