ZyX wrote:
[...]
> >":python os.chdir('/tmp')" makes short buffer names invalid. (Xavier de Gaye)
> >Check directory and call shorten_fnames()?
>
> Probably not only the python problem.
I wonder if there is a hook inside Python, so that we can do the
equivalent of ":cd" in Vim, handling the side effects.
> >Python: be able to define a Python function that can be called directly from
> >Vim script. Requires converting the arguments and return value.
>
> Converting the arguments and return value can be easily done. This proposal
> requires in first place not converting something, but changing the funcref
> implementation (proposal mentioned in my RFC, no detailed description
> yet; old detailed description written somewhere is probably outdated.
> AFAIR it was expressed in the thread where it was proposed to add FFI
> better then libcall*).
Ideally we could do vim.f.{function-name}() for every function defined
in eval.c. That's more than 250 functions. Creating a funcref for each
of them might slow down startup. I assume we can do it only when used.
> >Python interface: add vim.message() function. (Michal Vitecek, 2002 Nov 5)
>
> Unable to find. If equivalent to perl VIM::Msg then it is done by
> `print "foo"` or `sys.stdout.write("foo\n")`.
It's very old, let's drop it.
--
There are 10 kinds of people: Those who understand binary and those who don't.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.