[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r107186: In server-unselect-display m
From: |
martin rudalics |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r107186: In server-unselect-display make sure that buffer is live before killing it |
Date: |
Wed, 08 Feb 2012 15:59:05 +0100 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 107186
committer: martin rudalics <address@hidden>
branch nick: trunk
timestamp: Wed 2012-02-08 15:59:05 +0100
message:
In server-unselect-display make sure that buffer is live before killing it
modified:
lisp/server.el
=== modified file 'lisp/server.el'
--- a/lisp/server.el 2012-02-08 08:02:17 +0000
+++ b/lisp/server.el 2012-02-08 14:59:05 +0000
@@ -403,14 +403,15 @@
;; Rewritten to avoid inadvertently killing the current buffer after
;; `delete-frame' removed FRAME (Bug#10729).
(let ((buffer (frame-parameter frame 'server-dummy-buffer)))
- (if (and (one-window-p 'nomini frame)
- (eq (window-buffer (frame-first-window frame)) buffer))
- ;; The temp frame still only shows one buffer, and that is the
- ;; internal temp buffer.
- (delete-frame frame)
- (set-frame-parameter frame 'visibility t)
- (set-frame-parameter frame 'server-dummy-buffer nil))
- (kill-buffer buffer))))
+ (when (buffer-live-p buffer)
+ (if (and (one-window-p 'nomini frame)
+ (eq (window-buffer (frame-first-window frame)) buffer))
+ ;; The temp frame still only shows one buffer, and that is the
+ ;; internal temp buffer.
+ (delete-frame frame)
+ (set-frame-parameter frame 'visibility t)
+ (set-frame-parameter frame 'server-dummy-buffer nil))
+ (kill-buffer buffer)))))
(defun server-handle-delete-frame (frame)
"Delete the client connection when the emacsclient frame is deleted.
- [Emacs-diffs] /srv/bzr/emacs/trunk r107186: In server-unselect-display make sure that buffer is live before killing it,
martin rudalics <=