Gary Johnson wrote:

> When I execute the ":options" command from a read-only buffer, as 
> for example when vim is started like this:
> 
>    view -N -u NONE
> 
> I get the following error messages:
> 
>    Error detected while processing 
> /home/garyjohn/src/Linux/vim-7.1/share/vim/vim71/optwin.vim:
>    line  153:
>    W10: Warning: Changing a readonly file
> 
> The attached patch fixes this problem by modifying optwin.vim to set
> 'noreadonly' in the option-window.
> 
> Vim version is 7.1.297 and optwin.vim is dated 2008 Jan 22.
> 
> Regards,
> Gary
> 
> ----------------------------- cut here -----------------------------
> *** optwin.vim.orig   Wed May  7 17:46:44 2008
> --- optwin.vim        Mon May 12 11:11:20 2008
> ***************
> *** 147,152 ****
> --- 147,153 ----
>   
>   " Open the window
>   new option-window
> + setlocal noreadonly
>   setlocal ts=15 tw=0
>   
>   " Insert help and a "set" command for each option.

Thanks for the fix.  I'll include it.

-- 
BROTHER MAYNARD: Armaments Chapter Two Verses Nine to Twenty One.
ANOTHER MONK:    And St.  Attila raised his hand grenade up on high saying "O
                 Lord bless this thy hand grenade that with it thou mayest
                 blow thine enemies to tiny bits, in thy mercy. "and the Lord
                 did grin and people did feast upon the lambs and sloths and
                 carp and anchovies and orang-utans and breakfast cereals and
                 fruit bats and...
BROTHER MAYNARD: Skip a bit brother ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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