Re: Bug with setglobal

2008-02-04 Fir de Conversatie Bram Moolenaar
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

Bug with setglobal

2008-02-03 Fir de Conversatie Ben Schmidt
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,

Re: Bug with setglobal

2008-02-03 Fir de Conversatie Tony Mechelynck
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

Re: Bug with setglobal

2008-02-03 Fir de Conversatie Ben Schmidt
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. Thanks again for the correction, Tony. Not my week evidently! Ben. Send instant messages to your online

Re: Bug with setglobal

2008-02-03 Fir de Conversatie Tony Mechelynck
Ben Schmidt wrote: 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. Thanks again for the correction, Tony. Not my week evidently! Ben. If ever I make