Re: set readonly - strange?

2006-06-19 Thread Yakov Lerner
On 6/19/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > After the following patch, the output is better. Two out of > three 'readonly' lines are now in place. > > --- message.c.000 2006-06-19 02:49:34.0 +0300 > +++ message.c 2006-06-19 02:52:41.0 +0300

Re: set readonly - strange?

2006-06-19 Thread A.J.Mechelynck
Bram Moolenaar wrote: Yakov Lerner wrote: In case you can't reproduce it, Bram, I' attaching the output with all escape sequences. The output was taken using vim -u /tmp/1 /tmp/1 | tee >/tmp/output It clearly shows how the three delayed 'readonly readonly readonly' are printed *afer* vim u

Re: set readonly - strange?

2006-06-19 Thread Bram Moolenaar
Yakov Lerner wrote: > In case you can't reproduce it, Bram, I' attaching the output > with all escape sequences. The output was taken using > vim -u /tmp/1 /tmp/1 | tee >/tmp/output > It clearly shows how the three delayed 'readonly readonly readonly' > are printed *afer* vim uninitialized t

Re: set readonly - strange?

2006-06-18 Thread Yakov Lerner
On 6/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 6/18/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > Yakov Lerner wrote: > > > > On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > > > > create a file ~/.vimtest as follows: > > > > > > > > cat > .vimtest > > > > set nocompatible > > >

Re: set readonly - strange?

2006-06-18 Thread A.J.Mechelynck
Yakov Lerner wrote: On 6/18/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > > On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > > > create a file ~/.vimtest as follows: > > > > > > cat > .vimtest > > > set nocompatible > > > set readonly > > > > > > > > > and execute

Re: set readonly - strange?

2006-06-18 Thread Yakov Lerner
On 6/18/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > > On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > > > create a file ~/.vimtest as follows: > > > > > > cat > .vimtest > > > set nocompatible > > > set readonly > > > > > > > > > and execute (g)vim: > > > > > > v

Re: set readonly - strange?

2006-06-18 Thread Bram Moolenaar
Yakov Lerner wrote: > > On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > > > create a file ~/.vimtest as follows: > > > > > > cat > .vimtest > > > set nocompatible > > > set readonly > > > > > > > > > and execute (g)vim: > > > > > > vim .vimtest -u .vimtest > > > > > > try :set readonly? a

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 5/24/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > I think 'readonly' does not belong in the .vimrc since it is a > buffer-local-only option. If you try to set any other buffer-local option in .vimrc, you'll see that it works just fine. I tr

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Eric Arnold [mailto:[EMAIL PROTECTED] > Sent: 24 May 2006 12:38 > To: Zdenek Sekera > Cc: vim-dev@vim.org > Subject: Re: set readonly - strange? > > I think 'readonly'

Re: set readonly - strange?

2006-05-24 Thread Yakov Lerner
On 5/24/06, Eric Arnold <[EMAIL PROTECTED]> wrote: I think 'readonly' does not belong in the .vimrc since it is a buffer-local-only option. If you try to set any other buffer-local option in .vimrc, you'll see that it works just fine. I tried 'set tw=22' in file opened as 'vim -u file file' an

RE: set readonly - strange?

2006-05-24 Thread Zdenek Sekera
> -Original Message- > From: Eric Arnold [mailto:[EMAIL PROTECTED] > Sent: 24 May 2006 12:38 > To: Zdenek Sekera > Cc: vim-dev@vim.org > Subject: Re: set readonly - strange? > > I think 'readonly' does not belong in the .vimrc since it is a > buffer-l

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
-dev@vim.org > Subject: Re: set readonly - strange? > > On 5/24/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > > From: Eric Arnold [mailto:[EMAIL PROTECTED] > > > Sent: 23 May 2006 18:12 > > > To: Yakov Lerner

RE: set readonly - strange?

2006-05-24 Thread Zdenek Sekera
> -Original Message- > From: Eric Arnold [mailto:[EMAIL PROTECTED] > Sent: 24 May 2006 11:21 > To: Zdenek Sekera > Cc: Yakov Lerner; vim-dev@vim.org > Subject: Re: set readonly - strange? > > On 5/24/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > > >

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Eric Arnold [mailto:[EMAIL PROTECTED] > Sent: 23 May 2006 18:12 > To: Yakov Lerner > Cc: Zdenek Sekera; vim-dev@vim.org > Subject: Re: set readonly - strange? > > As far as

RE: set readonly - strange?

2006-05-24 Thread Zdenek Sekera
> -Original Message- > From: Eric Arnold [mailto:[EMAIL PROTECTED] > Sent: 23 May 2006 18:12 > To: Yakov Lerner > Cc: Zdenek Sekera; vim-dev@vim.org > Subject: Re: set readonly - strange? > > As far as I can tell, there are several instances where there are > t

Re: set readonly - strange?

2006-05-23 Thread Eric Arnold
As far as I can tell, there are several instances where there are transitory buffers as vim is starting, opening a new tab, probably some in closing op.s. I don't know if I used the right word by saying the buffer is "undefined", but I don't think it it's guaranteed to be usable until a certain p

Re: set readonly - strange?

2006-05-23 Thread Yakov Lerner
On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > create a file ~/.vimtest as follows: > > cat > .vimtest > set nocompatible > set readonly > > > and execute (g)vim: > > vim .vimtest -u .vimtest > > try :set readonly? and you'll get 'noreadonly'. The buffer does exist when initfile is exec

Re: set readonly - strange?

2006-05-23 Thread Eric Arnold
I wouldn't expect that to work. There is no defined loaded buffer when the -u vimrc is run. 'readonly' is local to buffers only, so in your example, it has no buffer to be applied to. If you want everything to be readonly, try setting a BufEnter autocommand. If you want just one file to be rea