I noticed that Vim currently uses the stock implementation of Lua's debug.debug() function in if_lua.c, which will cause Vim to seemingly hang if called. I've written and attached a new implementation for debug.debug() that will make it more usable in Vim if Lua scripters want to make use of it.
> I noticed that Vim currently uses the stock implementation of Lua's
> debug.debug() function in if_lua.c, which will cause Vim to seemingly
> hang if called. I've written and attached a new implementation for
> debug.debug() that will make it more usable in Vim if Lua scripters
> want to make use of it.
> Thanks,
> Rob Hoelz
> vim-debug-debug.patch
> 2KViewDownload
> signature.asc
> < 1KViewDownload
Hello again,
It's been a week since I posted this patch, and I haven't seen any
response. If you guys don't want to incorporate my patch into Vim,
that's ok; I'd just like to know if I need to fix anything up, or if
it needs to get vetted or something.
On Mon, Sep 19, 2011 at 5:07 PM, Rob Hoelz wrote: > On Sep 12, 12:03 pm, Rob Hoelz <r...@hoelz.ro> wrote: > > Hello Vim developers,
> > I noticed that Vim currently uses the stock implementation of Lua's > > debug.debug() function in if_lua.c, which will cause Vim to seemingly > > hang if called. I've written and attached a new implementation for > > debug.debug() that will make it more usable in Vim if Lua scripters > > want to make use of it.
> > Thanks, > > Rob Hoelz
> > vim-debug-debug.patch > > 2KViewDownload
> > signature.asc > > < 1KViewDownload
> Hello again,
> It's been a week since I posted this patch, and I haven't seen any > response. If you guys don't want to incorporate my patch into Vim, > that's ok; I'd just like to know if I need to fix anything up, or if > it needs to get vetted or something.
> Thanks, > Rob
Hi Rob
Thanks for the patch. I just checked ":help todo.txt" in Vim-7.3.315 and it includes a comment about your patch:
> On Mon, Sep 19, 2011 at 5:07 PM, Rob Hoelz wrote:
> > On Sep 12, 12:03 pm, Rob Hoelz <r...@hoelz.ro> wrote:
> > > Hello Vim developers,
> > > I noticed that Vim currently uses the stock implementation of Lua's
> > > debug.debug() function in if_lua.c, which will cause Vim to seemingly
> > > hang if called. I've written and attached a new implementation for
> > > debug.debug() that will make it more usable in Vim if Lua scripters
> > > want to make use of it.
> > > Thanks,
> > > Rob Hoelz
> > > vim-debug-debug.patch
> > > 2KViewDownload
> > > signature.asc
> > > < 1KViewDownload
> > Hello again,
> > It's been a week since I posted this patch, and I haven't seen any
> > response. If you guys don't want to incorporate my patch into Vim,
> > that's ok; I'd just like to know if I need to fix anything up, or if
> > it needs to get vetted or something.
> > Thanks,
> > Rob
> Hi Rob
> Thanks for the patch. I just checked ":help todo.txt" in Vim-7.3.315
> and it includes a comment about your patch:
> It's been a week since I posted this patch, and I haven't seen any > response. If you guys don't want to incorporate my patch into Vim, > that's ok; I'd just like to know if I need to fix anything up, or if > it needs to get vetted or something.
Sorry for the delay in checking your patch. Can you please check if this luaV_debug works instead of your luaV_debug_debug? It's simpler and more in line with Lua's original debug.debug:
> > It's been a week since I posted this patch, and I haven't seen any
> > response. If you guys don't want to incorporate my patch into Vim,
> > that's ok; I'd just like to know if I need to fix anything up, or if
> > it needs to get vetted or something.
> Sorry for the delay in checking your patch. Can you please check if this
> luaV_debug works instead of your luaV_debug_debug? It's simpler and more in
> line with Lua's original debug.debug:
> If it works, can you please also product a patch?
> Cheers,
> Luis
> --
> Computers are useless. They can only give you answers.
> -- Pablo Picasso
> --
> Luis Carvalho (Kozure)
> lua -e 'print((("lexcarva...@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'
Hi Luis,
Thanks for your improvement to my patch; it works fine, except the
output from each command appears on the same line as the input. The
following patch is based on yours,
but includes a fix for the same line behavior.
> Thanks for your improvement to my patch; it works fine, except the > output from each command appears on the same line as the input. The > following patch is based on yours, > but includes a fix for the same line behavior.
Ok, great. We still need to define lua_remove for the dynamic version of the interpreter, so I'm updating the patch. I've also added a comment to msg_putchar and moved the function definition closer to luaV_print.
Thanks, Luis
-- Computers are useless. They can only give you answers. -- Pablo Picasso
-- Luis Carvalho (Kozure) lua -e 'print((("lexcarva...@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'