gabrielelanaro / emacs-for-python

Collection of emacs extensions specifically collected for python development, with workflow guidelines!
http://gabrielelanaro.github.com/emacs-for-python
GNU General Public License v3.0
809 stars 151 forks source link

Send a block to inferior python #132

Closed eepgwde closed 10 years ago

eepgwde commented 10 years ago

Hello, I'm using Emacs 24 and I had to change yas--version to yas/version.

Also I would like you to consider a send-block method. Here is a part of a patch.

It's very simple, the use-case is from testing: write a bit of code, run it, move on, if that code worked, try the next block. I had a similar system in aanother inferior interpreter system with Emacs. I've only used forward paragraph (ie. to a blank line). You might have a way of honouring control statements - in which case, it would be more like the send-defun.

Thanks for all your work: M-x praise-emacs-big-up-yourself

+(defun python-shell-send-block (arg)

gabrielelanaro commented 10 years ago

Ok I'll try to fix the yasnippet problem by the end of the week.

Regarding the send-block sounds like a pretty good idea, I guess it gives a "ipython notebook-like" fashion to evaluation. I'll also include the patch thanks!

eepgwde commented 10 years ago

Hello Gabriel! Thanks, in person, for making emacs-for-python available. It sets up so much stuff! That patch isn't a complete one. I don't have a way to upload it or send it, but, as you can see, it is very simple. Thanks again!