You can selectively supress autocommands at vimscript level with noautocmd
and eventignore. Can you do that at the C level? Do you think it's
undesirable to do so? I'm not able to think of a listener interested in
this particular buffer switch as it's more of a subproduct of a particular
implementation than of an intentional switch.

Cheers
--
Carlos
On Jul 4, 2014 7:37 AM, "h_east" <[email protected]> wrote:

> Hi Bram,
>
> 2014/7/4(Fri) 19:05:30 UTC+9 Bram Moolenaar:
> > Hirohito Higashi wrote:
> >
> >
> >
> > > Hi Carlos,
> >
> > >
> >
> > > 2014/7/3(Thu) 5:04:10 UTC+9 Carlos Pita:
> >
> > > > When the omnifunc provides extra info to be shown in the preview
> window (in case preview is included in completeopt) there is a permanent
> focus switching back and forth between the current window and the preview
> window, which produces several annoying and very noticeable visual
> artifacts:
> >
> > > >
> >
> > > > 1) The window title flickers (it changes too fast so the change is
> perceived as a flickering artifact).
> >
> > > >
> >
> > > > 2) The window name at the taskbar also flickers.
> >
> > > >
> >
> > > > 3) Plugins like vim-airline, which are able to show a buffer list
> highlighting the current buffer, will madly switch the highlight back and
> forth.
> >
> > > >
> >
> > > > I think an implementation which doesn't switch focus is in order.
> >
> > >
> >
> > > Attached patch fixed 1) and 2).
> >
> > >
> >
> > > Bram, what do you think?
> >
> >
> >
> > It's a nice simple solution, even though it won't fix everything.
> >
> > I haven't looked at the code yet, but often it's unavoidable to switch
> >
> > to the buffer to be changed, which also requires switching windows,
> >
> > which then requires triggering autocommands to have editing work as
> >
> > expected...  Perhaps it could be done with one switch and back, instead
> >
> > of switching multiple times.
>
> I think so, my patch is really good solution. If we don't think about
> autocommands. :-(
>
> autocommands is too powerful.
>
> --
> Best regards,
> Hirohito Higashi
>
> --
> --
> 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 a topic in the
> Google Groups "vim_dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/vim_dev/z-ABEOyJMFc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui