> > Thank you. I'm attaching an updated version of the patch with a few more
> > changes. I should probably find a place to put the latest version of the
> > patch...
>
> A fairly small point:
>
> :lua print("a\nb\nc")
>
> prints
>
> [EMAIL PROTECTED]@c
>
> (i.e, newlines are printed as ^@, rather than as proper newlines).
>
> Vim converts nulls to newlines and vice versa in internal strings. You
> may want to look at LineToString, StringToLine, and writer, in
> if_python.c. Your MSG call in luaV_print needs to split the line at
> each \n character and call MSG on each line in turn. Same for the
> various EMSG callsThanks for catching this. A new patch, that also provides a simple configure.in, is available at http://wiki.linuxfromscratch.org/blfs/attachment/wiki/vim/vim72-lua-0.2.patch.gz I have a question. The standalone Lua interpreter is usually linked to a static library, but the linker gets a -E option to export all symbols and so dynamic modules get supported. Should I add a check for gcc and add -Wl,-E? That would export all symbols in Vim, and so it doesn't sound like a good idea... I could also link to a shared Lua library as default. What do you guys think? Cheers, Luis. -- Computers are useless. They can only give you answers. -- Pablo Picasso -- Luis Carvalho (Kozure) lua -e 'print((("[EMAIL PROTECTED]"):gsub("(%u+%.)","")))'
signature.asc
Description: Digital signature
