Tony Mechelynck wrote:

> On 09/05/09 21:20, Bram Moolenaar wrote:
> > Dasn wrote:
> >
> >> Accessing buffer in 'BufDelete' or 'BufWipeout' autocmd makes hidden
> >> buffer displayed. Here's the test code:
> [...]
> > You are shooting yourself in the foot.  In the BufWipeout command you
> > should not start editing another buffer, weird things may happen, such
> > as wiping out the wrong buffer.
> >
> > I'll see if I can catch the situation and give an error message.
> >
> 
> IMHO it ought to be mentioned in the help (where I don't see it, in the 
> help for |BufWipeout| in autocmd.txt dated 2009 Mar 01; nor do I see a 
> similar warning under |BufUnload| or |BufDelete| whose text is otherwise 
> quite similar).

I had added a remark at BufWipeout, I'll do the same for BufUnload and
BufDelete.

-- 
Lawmakers made it obligatory for everybody to take at least one bath
each week -- on Saturday night.
                [real standing law in Vermont, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui