Bram wrote: > Perhaps the complete function should somehow indicate that it > must be called whenever the leader changes.
I thought about that too. It would be better that second 'complefunc' option, like 'completefunc2'. Of course 'completefunc2' prior to 'completefunc' when both of them are set. Changing the specification of original 'completefunc' causes other problems, like patch#289. How do you think about this idea? If you feed good, I will start to implement it. 2011/9/7 Bram Moolenaar <[email protected]>: > > Taro Muraoka wrote: > >> I want to know policy of patch including. >> >> Patch#289 is a fix for vim's incomplete feature. >> Some plugins has redundant script lines to avoid it. Those are in >> unatural ways, makes many lines and waste developer times. Of course, >> I >> understand that patch#289 causes some troubles for some plugins. >> >> # It may be included when major upgrading. >> >> Although, I have to complain this reverting, because it slows vim's >> improvement speed. >> >> So pathc#289 has these characteristics: >> >> * Vim is not perfect. >> * Plugin covers it. (and depending on it) >> * A patch makes vim more perfect. >> * It breaks those plugins (depending on vim's imperfect features). >> >> I want to know including policy for this like patches. > > Several users complained that the patch has broken existing plugins. > That's a good reason to revert it. > > The Insert mode completion is very complex. It's hard to say what the > right way is to do something. We need specific examples to find out > what is the best solution. > > A complete function can be slow, thus we should only call it when > needed. In your specific case it's needed in a very unexpected way. > Adding a character is expected to reduce the number of matches. You > wrote: > * Complete "a" to "foo1", "foo2" and "foo3". > * Complete "ab" to "bar1", "bar2" and "bar3". > That's not logical, thus it is no surprise this is not the default > behavior. Perhaps the complete function should somehow indicate that it > must be called whenever the leader changes. > > -- > Are leaders born or made? And if they're made, can we return them under > warranty? > (Scott Adams - The Dilbert principle) > > /// Bram Moolenaar -- [email protected] -- 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 /// > -- MURAOKA Taro <[email protected]> -- 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
