Commit 90ee5627 authored by Richard M. Stallman's avatar Richard M. Stallman

(server-switch-buffer): Say when no server buffers remain.

parent 019f8c1e
......@@ -534,7 +534,8 @@ Arg NEXT-BUFFER is a suggestion; if it is a live buffer, use it."
(if server-clients
(server-switch-buffer (nth 1 (car server-clients)) killed-one)
(unless (or killed-one (window-dedicated-p (selected-window)))
(switch-to-buffer (other-buffer))))
(switch-to-buffer (other-buffer))
(message "No server buffers remain to edit")))
(if (not (buffer-name next-buffer))
;; If NEXT-BUFFER is a dead buffer, remove the server records for it
;; and try the next surviving server buffer.
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