print to emacs buffer?
Paul Winkler
slinkp23 at yahoo.com
Thu Oct 25 16:21:52 EDT 2001
On Thu, 25 Oct 2001 18:27:00 GMT, Jeff Sandys <sandysj at juno.com>
wrote:
>Is there an easy way to get a python
>script to print to an emacs buffer?
>
>So when I enter 'python my-script.py'
>at the unix prompt in an emacs shell
>the output of the print statements
>goes to a separate (python-output)
>buffer instead of the shell buffer.
Have you tried hitting C-c C-c in the buffer for your python script?
This sends stdout to a buffer *Python Output*, or just prints "No
output" in the minibuffer.
M-x describe-mode in a python buffer will tell you lots of interesting
things!
>If it helps, I am using emacs 19.34.1
>(I don't have a choice about this!)
>and python-mode 3.105.
I have emacs 20.something, but the same version of python-mode.
A link that may be helpful with updating your python-mode,
if you want to:
http://www.python.org/emacs/python-mode/compat_emacs19.html
-- Paul Winkler
More information about the Python-list
mailing list