The lisp function start-process
is meant to start an asynchronous
subprocess, namely a process running independently of Emacs
itself.
I have noticed that, under my GNOME desktop environment, when my subprocess opens another window, the focus is transferred to that other window, even if the mouse pointer remains over the portion of my emacs window visible outside the subprocess window.
I believe I am able to programmatically transfer the focus back
to the emacs window using the Unix utility wmctrl
, but for the sake of elegance, I would
much prefer to avoid doing this extra work.
Hence my question:
Question. Is it possible to start an asynchronous process whose window does not steal the focus from Emacs?
PS: I have attempted to replace start-process
with call-process
(with the DESTINATION
parameter set to 0), but the problem persists!