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).


Best regards,
Tony.
-- 
Parkinson's Fourth Law:
        The number of people in any working group tends to increase
regardless of the amount of work to be done.

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

Raspunde prin e-mail lui