diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/server.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/server.el b/lisp/server.el index 8e3b7e9a2cd..37b8eeb7574 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -319,6 +319,15 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"." | |||
| 319 | (server-select-display display) | 319 | (server-select-display display) |
| 320 | (error (process-send-string proc (nth 1 err)) | 320 | (error (process-send-string proc (nth 1 err)) |
| 321 | (setq request ""))))) | 321 | (setq request ""))))) |
| 322 | ;; Open a new tty at the client. | ||
| 323 | ((and (equal "-pty" arg) (string-match "\\([^ ]*\\) \\([^ ]*\\) " request)) | ||
| 324 | (let ((pty (server-unquote-arg (match-string 1 request))) | ||
| 325 | (type (server-unquote-arg (match-string 2 request)))) | ||
| 326 | (setq request (substring request (match-end 0))) | ||
| 327 | (condition-case err | ||
| 328 | (make-terminal-frame `((tty . ,pty) (tty-type . ,type))) | ||
| 329 | (error (process-send-string proc (nth 1 err)) | ||
| 330 | (setq request ""))))) | ||
| 322 | ;; ARG is a line number option. | 331 | ;; ARG is a line number option. |
| 323 | ((string-match "\\`\\+[0-9]+\\'" arg) | 332 | ((string-match "\\`\\+[0-9]+\\'" arg) |
| 324 | (setq lineno (string-to-int (substring arg 1)))) | 333 | (setq lineno (string-to-int (substring arg 1)))) |