> [...] Python 2 users
> may prefer using function attributes, and replace the last line with:
> hello_world.interactions = ''
Oops, sorry. I meant:
hello_world.interaction = ''
with no `s' after `interaction'.
--
François Pinard http://www.iro.umontreal.ca/~pinard
http://www.iro.umontreal.ca/~pinard/pymacs/pymacs.tar.gz
Pymacs allows Emacs users to extend Emacs using Python, where they might have
traditionally used Emacs LISP. Pymacs runs on systems having sub-processes.
Not much changed in this release. The limit of time while starting the
Python subprocess has been raised from 5 to 30 seconds, for heavily loaded
systems. Time limits may now be preset from the `.emacs' file, as needed.
With the publication notice of Pymacs 0.11, I gave this example:
import pymacs
interactions = {}
def hello_world():
"`Hello world' from Python."
pymacs.lisp.insert("Hello from Python!")
interactions[hello_world] = ''
to show how one provides an `(interactive)' specification. Python 2 users
may prefer using function attributes, and replace the last line with:
hello_world.interactions = ''
If this does not work, Pymacs falls back on the old portable method. Enjoy!