Closed amelio-vazquez-reina closed 8 years ago
Hi,
thanks for your message, I'm always happy to see someone use `isend'. Could you please include a link to the mentioned article?
Regarding the recommendation you mention, here is how isend
handles things:
term-mode
), isend
calls term-send-input
in order for the code to be executed right now (this is almost equivalent to the comint-send-input
that is used in the code you mention, except it is more specific to terminal buffers)So there is an issue only if you want to execute code in a buffer that (a) is not a terminal, and (b) for which pressing RETURN does not execute the last line. I personally have not encountered such cases. But if you have (or if the author of the article you mention has), I would be more than happy to fix isend-mode
to handle more specific cases once I know about them.
Also, the advice mentioned here is not necessarily very idiomatic. If for some reason you still want to do this outside of isend-mode
, please ask and I can propose alternative ways to implement this.
I hope this answers your question. Please ask if something is unclear or you want anything to be implemented in isend-mode
.
Thanks @ffevotte ! Sorry I forgot to include the link. Here it is (I also updated the OP). I frankly never found the need to change isend-mode
in any way. It has always been working for me perfectly. It was running into this problem what prompted me to look up if anyone else had encountered any problems (although IPython 5 came out just this week) what led me to the article I included above.
BTW, the author seems to be using M-x shell
maybe that's why?
Thanks for the update. I don't know what happened, but I missed your other two issues. I'll try to debug this ASAP...
I found this article which includes some recommended modifications to
isend-mode.el
.Specifically it recommends defining
advice
for isend. Quoting literally:What do you think of this suggest this @ffevotte ? Is it really needed?