To get a process buffer an eshell buffer I thought I used to be able to run:
In Emacs 25 this no longer works. Specifically "GNU Emacs 126.96.36.199 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-11-30"
Here is what I do. I start an eshell with
M-x eshell. Then with that as the only window or buffer around I run
M-x eval Eval: (get-buffer-process (current-buffer))
And the result is
I am using this in the code for realgud, an emacs front-end to various debuggers. It needs to interact with the debugger like see if the debugger is running or has terminated, send commands to it and run hooks when output appears.
How would I do this?