Skip to main content

Questions tagged [process]

A process is a running instance of a program. Use this tag for how Emacs interacts with programs that it runs (compilers, viewers, network backends, etc.)

Filter by
Sorted by
Tagged with
8 votes
2 answers

Exiting emacs without confirmation to kill running processes

It turned out not to be the same problem as Kill process buffer without confirmation?: emacs asks for different kind of confirmations when exiting and when just killing a buffer. How to specify for ...
user905686's user avatar
26 votes
4 answers

How can I run an async process in the background without popping up a buffer?

I have defined some functions to run async background process using async-shell-command in my .emacs, but everytime I run the commands a new window (not frame) is created and the process' buffer is ...
rlazo's user avatar
  • 993
19 votes
5 answers

Kill process buffer without confirmation?

I have C-x C-k bound to kill-this-buffer. But when I enter into a buffer which is running a process like Python or MySQL, if I do C-x C-k it asks Buffer "*Python*" has a running process; kill it (...
Chillar Anand's user avatar
10 votes
3 answers

Send process output to *Messages* buffer, but bypass the echo area

Is it possible to send the output from a process-filter to the *Messages* buffer and suppress that message output from appearing in the echo area, such that I am able to simultaneously use interactive ...
lawlist's user avatar
  • 19.2k
8 votes
3 answers

Set environment variables for spawned subprocesses

I would like to set the environment variables for a spawned subprocess only. They are controlled by process-environment. The documentation says: binding that variable with let is also reasonable ...
antonio's user avatar
  • 1,822
6 votes
0 answers

How do I reliably get output from a process?

I have created a comint mode for using mongo. The mode works fine in the buffer, and now I am trying to use it programmatically where I need to get the output from commands. Getting input to the ...
John Kitchin's user avatar
  • 11.9k
6 votes
2 answers

Temporarily set the `default-directory` for `start-process`

Is it possible to set the default-directory temporarily (e.g., let-bound) when using start-process? If so, how please. (let ((default-directory "/Users/HOME/Desktop/tmp")) (start-process "touch-...
lawlist's user avatar
  • 19.2k
5 votes
1 answer

Asynchronous version of shell-command-on-region?

I have a problem which is very similar to this one. I have some text that I'd like to listen to with macOS's say utility. Unfortunately, Emacs locks up when I use shell-command-on-region because it is ...
GDP2's user avatar
  • 1,350
5 votes
1 answer

Capturing stderr of subprocesses

I'm trying to capture stderr separately from stdout for a (synchronous) process run from emacs. I've found one way of doing it based on some code copied from emacs' shell-command function (I don't ...
dshepherd's user avatar
  • 1,281
5 votes
1 answer

Shell coding system

If, before M-x shell, I run C-x RET c (universal-coding-system-argument) I can change the coding system used by the shell. Therefore, given echo Straße > foo foo will be encoded in the related ...
antonio's user avatar
  • 1,822
4 votes
2 answers

start-process output processed too slowly

When start a command asynchronously, using (start-process ...), the output is added to the buffer 3-5 times more slowly than if I had used (async-shell-command ...). I don't have any output filters, I ...
erjoalgo's user avatar
  • 873
2 votes
1 answer

How can I query Emacs from a separate process?

I'm interested in tracking how I spend my time at work. I have been using ManicTime, and it does much of what I want. However, I use Emacs as my primary editor, and ManicTime doesn't know how to get ...
mojo's user avatar
  • 125
2 votes
1 answer

Size of process output sent to filter functions

I'm using comint to communicate with a REPL. From time to time the REPL sends large amounts of data. This causes a significant lag (about one second), because my filter function gets called on a ...
Clément's user avatar
  • 3,995
0 votes
1 answer

Window's PID of the current emacs' process

I use to edit LaTeX documents with okular as pdf viewer in Ubuntu Linux. I have this code: (defun okular-forward-search () (interactive) (start-process "okular" "okular-output" "okular" ;...
Gabriele's user avatar
  • 1,642