I have the opposite issue from How to avoid losing focus after starting an asynchronous process?. I would like to call start-process and have the resulting window be focused.

Specifically, I am calling dragon-drop and would like its popup window focused so I can close it with ESC if needed. Neither start-process nor call-process did the trick:

(defun xf/dragon ()
  "Share file from current buffer via dragon."
  (apply 'start-process
         `("dragon" nil
         "dragon-drop" "-a" "-x"
           ,(unless (dired-get-marked-files)
             (or (buffer-file-name)

Can I do anything from within Emacs about this, or do I have to configure my WM?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.