aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/server.el
diff options
context:
space:
mode:
authorYuuki Harano2020-12-21 01:53:07 +0900
committerYuuki Harano2020-12-21 01:53:07 +0900
commit565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42 (patch)
tree5a25406b9f4ff091cb6856e857d2857bb3e631e4 /lisp/server.el
parenta44cd7c88121bb0e04bdf13d73e15f085cf3b085 (diff)
parent87b82a1969edf80d3bd4781454ec9fc968773a6d (diff)
downloademacs-565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42.tar.gz
emacs-565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 84c2e00b26a..af752a4d4f7 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1332,6 +1332,8 @@ The following commands are accepted by the client:
1332 (t (server-return-error proc err)))) 1332 (t (server-return-error proc err))))
1333 1333
1334(defun server-execute (proc files nowait commands dontkill frame tty-name) 1334(defun server-execute (proc files nowait commands dontkill frame tty-name)
1335 (when server-raise-frame
1336 (select-frame-set-input-focus (or frame (selected-frame))))
1335 ;; This is run from timers and process-filters, i.e. "asynchronously". 1337 ;; This is run from timers and process-filters, i.e. "asynchronously".
1336 ;; But w.r.t the user, this is not really asynchronous since the timer 1338 ;; But w.r.t the user, this is not really asynchronous since the timer
1337 ;; is run after 0s and the process-filter is run in response to the 1339 ;; is run after 0s and the process-filter is run in response to the
@@ -1339,8 +1341,6 @@ The following commands are accepted by the client:
1339 ;; inhibit-quit flag, which is good since `commands' (as well as 1341 ;; inhibit-quit flag, which is good since `commands' (as well as
1340 ;; find-file-noselect via the major-mode) can run arbitrary code, 1342 ;; find-file-noselect via the major-mode) can run arbitrary code,
1341 ;; including code that needs to wait. 1343 ;; including code that needs to wait.
1342 (when (and frame server-raise-frame)
1343 (select-frame-set-input-focus frame))
1344 (with-local-quit 1344 (with-local-quit
1345 (condition-case err 1345 (condition-case err
1346 (let ((buffers (server-visit-files files proc nowait))) 1346 (let ((buffers (server-visit-files files proc nowait)))