2

I just started using emacs, and installed python-mode.el, along with a few extra add-ins (following Jess Hamrick's setup in Emacs as a python IDE).

I find myself with one tricky issue. I want to edit different buffers, but I want to be able to send code from both of them to my python shell. Unfortunately, when I try to send code from a file buffer using C-c |, a new python buffer is opened for it, and I can't figure out how to instruct emacs to send it to the original python shell buffer.

Any suggestions?

Anton Savin
  • 40,838
  • 8
  • 54
  • 90
Pablo
  • 10,425
  • 1
  • 44
  • 67

1 Answers1

1

A report at

https://bugs.launchpad.net/python-mode

would be useful, as it turns out there is not test for this. However, when checking it works nice here.

A reason for using a different output-buffer might be a different python-version in a shebang. Each python version connects to its own process and thus gets its own output-buffer. And running it dedicated would open a new process/buffer every time.

What's the python-mode.el version?

Setting py-split-windows-on-execute-p to nil might help.

Andreas Röhler
  • 4,804
  • 14
  • 18