Commit b768cdcd authored by Juanma Barranquero's avatar Juanma Barranquero

lisp/server.el: Catch quit and close the connection (bug#8942).

parent 13aa217b
2011-07-04 Juanma Barranquero <>
* server.el (server-execute): Catch quit and call
`server-return-error' to pass the error back to emacsclient and
close the connection (bug#8942).
2011-07-04 Ken Manheimer <>
* allout.el (allout-encrypt-unencrypted-on-saves): Do not provide
......@@ -1153,7 +1153,10 @@ The following commands are accepted by the client:
"When done with a buffer, type \\[server-edit]")))))
(when (and frame (null tty-name))
(server-unselect-display frame)))
(error (server-return-error proc err)))))
((quit error)
(when (eq (car err) 'quit)
(message "Quit emacsclient request"))
(server-return-error proc err)))))
(defun server-return-error (proc err)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment