Closed bruceravel closed 4 years ago
This must have something to do with comint-mode blocking while waiting for the process. If you type "sleep 10" in a shell buffer Emacs will hang similarly for 10 secnds waiting for it to finish. The same thing happens when running "pause 10" from gnuplot. In any of these cases typing C-g breaks Emacs out of its stupor, so there must be a reasonably easy fix. I will have a look through the comint-mode sources and see if there's an obvious way to tell it not to block...
Now pause -1
could cancel via C-c C-c
in *gnuplot*
buffer.
Jim Mehl says: “I usually put pause -1 lines in my gnuplot scripts. I have to be careful to comment these out if I execute the script within emacs. It just hangs. Is there a way out?” When run in a terminal the pauses let me review the screen, then proceed (like many gnuplot demo scripts). When I run this script within emacs 23.1.1 with gnuplot-mode (gnuplot 4.5), emacs becomes unresponsive. I cannot switch buffers. I can switch to another window and kill emacs (usually undesirable).