Fix error on deleting an emacsclient terminal (Dan Nicolaescu).
lisp/server.el (server-delete-client): Check that the buffer is live before switching to it. Also, check that the tty display still has live buffers before deleting it. (server-handle-delete-frame): Don't do anything if the frame was on a tty device (reported by Dan Nicolaescu). git-archimport-id: email@example.com/emacs--multi-tty--0--patch-148
Showing with 15 additions and 11 deletions