diff options
Diffstat (limited to 'lisp/server.el')
| -rw-r--r-- | lisp/server.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/server.el b/lisp/server.el index 79204b3cb8e..019a16a43d7 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -418,10 +418,11 @@ If CLIENT is non-nil, add a description of it to the logged message." | |||
| 418 | (server-delete-client proc 'noframe)))) ; Let delete-frame delete the frame later. | 418 | (server-delete-client proc 'noframe)))) ; Let delete-frame delete the frame later. |
| 419 | 419 | ||
| 420 | (defun server-handle-suspend-tty (terminal) | 420 | (defun server-handle-suspend-tty (terminal) |
| 421 | "Notify the emacsclient process to suspend itself when its tty device is suspended." | 421 | "Notify the client process that its tty device is suspended." |
| 422 | (dolist (proc (server-clients-with 'terminal terminal)) | 422 | (dolist (proc (server-clients-with 'terminal terminal)) |
| 423 | (server-log (format "server-handle-suspend-tty, terminal %s" terminal) proc) | 423 | (server-log (format "server-handle-suspend-tty, terminal %s" terminal) |
| 424 | (condition-case err | 424 | proc) |
| 425 | (condition-case nil | ||
| 425 | (server-send-string proc "-suspend \n") | 426 | (server-send-string proc "-suspend \n") |
| 426 | (file-error ;The pipe/socket was closed. | 427 | (file-error ;The pipe/socket was closed. |
| 427 | (ignore-errors (server-delete-client proc)))))) | 428 | (ignore-errors (server-delete-client proc)))))) |
| @@ -1207,7 +1208,10 @@ so don't mark these buffers specially, just visit them normally." | |||
| 1207 | (process-put proc 'buffers | 1208 | (process-put proc 'buffers |
| 1208 | (nconc (process-get proc 'buffers) client-record))) | 1209 | (nconc (process-get proc 'buffers) client-record))) |
| 1209 | client-record)) | 1210 | client-record)) |
| 1210 | 1211 | ||
| 1212 | (defvar server-kill-buffer-running nil | ||
| 1213 | "Non-nil while `server-kill-buffer' or `server-buffer-done' is running.") | ||
| 1214 | |||
| 1211 | (defun server-buffer-done (buffer &optional for-killing) | 1215 | (defun server-buffer-done (buffer &optional for-killing) |
| 1212 | "Mark BUFFER as \"done\" for its client(s). | 1216 | "Mark BUFFER as \"done\" for its client(s). |
| 1213 | This buries the buffer, then returns a list of the form (NEXT-BUFFER KILLED). | 1217 | This buries the buffer, then returns a list of the form (NEXT-BUFFER KILLED). |
| @@ -1329,9 +1333,6 @@ specifically for the clients and did not exist before their request for it." | |||
| 1329 | (setq live-client t)))) | 1333 | (setq live-client t)))) |
| 1330 | (yes-or-no-p "This Emacs session has clients; exit anyway? "))) | 1334 | (yes-or-no-p "This Emacs session has clients; exit anyway? "))) |
| 1331 | 1335 | ||
| 1332 | (defvar server-kill-buffer-running nil | ||
| 1333 | "Non-nil while `server-kill-buffer' or `server-buffer-done' is running.") | ||
| 1334 | |||
| 1335 | (defun server-kill-buffer () | 1336 | (defun server-kill-buffer () |
| 1336 | "Remove the current buffer from its clients' buffer list. | 1337 | "Remove the current buffer from its clients' buffer list. |
| 1337 | Designed to be added to `kill-buffer-hook'." | 1338 | Designed to be added to `kill-buffer-hook'." |