Hi ZyX! On Fr, 28 Sep 2012, ZyX wrote:
> суббота, 29 сентября 2012 г., 0:15:33 UTC+4 пользователь Christian Brabandt > написал: > > >You may replace first "echom" with "setlocal" and see that > > > option is set for a wrong buffer. Your autocmd must not be used. > > > > You are changing buffers and wiping a buffer. I am not sure what you are > > trying to show here. > Do what I suggested with :setlocal. *It will set options for the buffer that > **was not being unloaded***. ****Wrong**** buffer. Because those options aren't freed correctly. See the patch, I submitted. > And, by the way, you are using b:undo_ftplugin from the *wrong* buffer > as well. Because "b:" is *current* buffer scope and you must not touch > buffer that is not being unloaded. I guess we are not going to agree here. So just one final remark from me here, before I'll shut up. Those buffer-local variables will be freed afterwards. We have not yet fully unloaded the old buffer, therefore we can still undo the old options. regards, Christian -- 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
