[slim-vim] ECL's gray streams working, or me misunderstanding?

Mikael Jansson mail at mikael.jansson.be
Sun Jun 22 13:43:44 CDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I had a look in core form in if_ecl.c and how it tries to rebind
*standard-output* to *vim-buf-stream* (an instance of vim-buf-stream).

- From what I understand, the point of that is to have everything written
to *s-o* dumped in a Vim buffer, so I executed the following:

  :e Lisp "to get a buffer named Lisp
  :ecl << EOF
  (setf (vim::buffer vim::*vim-buf-stream* (vim:current-buffer)))
  (format t "Hello, world.")
  EOF

and expected the buffer Lisp to have the text "Hello, world" in it, as
vim::safe-eval rebinds *standard-output* to *vim-buf-stream*.

Now, were my expectations wrong, or is the setup code not working correctly?

Thanks.
- --
Mikael Jansson | http://mikael.jansson.be | GPG Key 0x88986608
Limp: The Vim Lisp IDE - http://mikael.jansson.be/hacking/limp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIXp1gs8liwIiYZggRArhrAKDTBN9W+w9xSW5RzcJ60sJwzYh/OACgpKaZ
dq2mQ5KIEBqTvC/DA1YDcsU=
=GCqj
-----END PGP SIGNATURE-----


More information about the slim-vim mailing list