Ben Schmidt wrote:
> Hi, Bram,
>
> Another one for the todo list, I think (can't spot it on there).
>
> If you issue setglobal in a read-only buffer for an option that locally would
> change the buffer, it fails with an error. E.g. in a help window issue
>
> :setglobal fenc=anything
>
> and you get
>
> E21: Cannot make changes, 'modifiable' is off: fenc=anything
>
> Obviously neither the failure nor the message is appropriate.
>
> Ben.
I confirm that it fails if 'modifiable' is off, as in a helpfile. For a plain
'readonly' (but 'modifiable') file there is no problem, and the buffer is not
marked as modified.
Best regards,
Tony.
--
One is not superior merely because one sees the world as odious.
-- Chateaubriand (1768-1848)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---