On 2006-08-21, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 8/21/06, Jürgen Krämer <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > A.J.Mechelynck wrote:
> > >
> > > Yakov Lerner wrote:
> > > >
> > > > I fixed another bug, the '*' missing in the autocommand:
> > > >
> > > > au BufWritePre * if(expand('%') == '') | exe "file ".TempName() | endif
> > > > au BufWritePre * if(expand('%') == '') | exe "saveas ".TempName() | 
> > endif
> > > >
> > > > , but still no luck. I'm still getting the "E32: No file name" error.
> > >
> > > Well, what gets displayed when you replace "exe" by "echo" or "echomsg"?
> >
> > probably nothing; I guess the file name is checked before BufWritePre is
> > executed.
> 
> not good.

How about trying the BufWriteCmd event instead?  Maybe it doesn't 
check the buffer name.

HTH,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Wireless Division
                             | Spokane, Washington, USA

Reply via email to