summaryrefslogtreecommitdiff
path: root/lisp/server.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-10-29 18:17:46 +0000
committerRichard M. Stallman <rms@gnu.org>2002-10-29 18:17:46 +0000
commit90ee5627ad7ea73128bc50c2a79bd576e0246ef2 (patch)
tree530b4c53d7e2be525af3ca87a8fa5a92a3910882 /lisp/server.el
parent019f8c1e2e5f6addd40d508e2bfcef0dc8245307 (diff)
downloademacs-90ee5627ad7ea73128bc50c2a79bd576e0246ef2.tar.gz
(server-switch-buffer): Say when no server buffers remain.
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 857ffa6b9f0..4551f40c737 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -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.