aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-19 00:50:48 +0000
committerStefan Monnier2004-03-19 00:50:48 +0000
commit5b421c815475955e928c2b2471a96569c81ca55e (patch)
tree39962a41360c168be6e37122ccb7634c261751da
parentdd816e0df87d4eb5d7f2e5e6e2b0416588cb6df0 (diff)
downloademacs-5b421c815475955e928c2b2471a96569c81ca55e.tar.gz
emacs-5b421c815475955e928c2b2471a96569c81ca55e.zip
(server-process-filter): Delete temp frame.
-rw-r--r--lisp/server.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 3a8bede9f95..fe2fc0f59f4 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -305,6 +305,7 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"."
305 client nowait eval 305 client nowait eval
306 (files nil) 306 (files nil)
307 (lineno 1) 307 (lineno 1)
308 (tmp-frame nil) ; Sometimes used to embody the selected display.
308 (columnno 0)) 309 (columnno 0))
309 ;; Remove this line from STRING. 310 ;; Remove this line from STRING.
310 (setq string (substring string (match-end 0))) 311 (setq string (substring string (match-end 0)))
@@ -319,7 +320,7 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"."
319 (let ((display (server-unquote-arg (match-string 1 request)))) 320 (let ((display (server-unquote-arg (match-string 1 request))))
320 (setq request (substring request (match-end 0))) 321 (setq request (substring request (match-end 0)))
321 (condition-case err 322 (condition-case err
322 (server-select-display display) 323 (setq tmp-frame (server-select-display display))
323 (error (process-send-string proc (nth 1 err)) 324 (error (process-send-string proc (nth 1 err))
324 (setq request ""))))) 325 (setq request "")))))
325 ;; ARG is a line number option. 326 ;; ARG is a line number option.
@@ -366,7 +367,9 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"."
366 (run-hooks 'server-switch-hook) 367 (run-hooks 'server-switch-hook)
367 (unless nowait 368 (unless nowait
368 (message (substitute-command-keys 369 (message (substitute-command-keys
369 "When done with a buffer, type \\[server-edit]"))))))) 370 "When done with a buffer, type \\[server-edit]")))))
371 ;; Avoid preserving the connection after the last real frame is deleted.
372 (if tmp-frame (delete-frame tmp-frame))))
370 ;; Save for later any partial line that remains. 373 ;; Save for later any partial line that remains.
371 (when (> (length string) 0) 374 (when (> (length string) 0)
372 (process-put proc 'previous-string string))) 375 (process-put proc 'previous-string string)))