1

I know we can kill using the following if we know the name of the process.

(delete-process (get-process "compilation"))

But how to know the process running in current window?

I am using gradle mode for java. And when use "gradle run" to run the command in a windows, sometime I need to kill it without it runs too long. But need a way to know the process name. I will be nice to have some function to get the process name running in current window.

Daniel Wu
  • 5,853
  • 12
  • 42
  • 93
  • 2
    How about `(delete-process (get-buffer-process (current-buffer)))`? – Pradhan Dec 27 '14 at 06:24
  • Closing as a duplicate, as the accepted answer + comments for the other Q&A cover this exact scenario. – phils Dec 31 '14 at 06:44
  • `C-h f delete-process` also tells you that `(delete-process nil)` deletes the current buffer's process. – phils Dec 31 '14 at 06:47

0 Answers0