aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-12-05 19:20:20 +0100
committerJoakim Verona2012-12-05 19:20:20 +0100
commit1baa30e5483e4e6e35a3b8d67a1e380832932c0b (patch)
tree881e5fff665586d2886aeab6590e2c6aa88c269b
parenta8b4c5ff4258a3709c2f273277f331801fdc5cba (diff)
parentffcee8d7c43cef38612c39554212a5a20b75e05b (diff)
downloademacs-1baa30e5483e4e6e35a3b8d67a1e380832932c0b.tar.gz
emacs-1baa30e5483e4e6e35a3b8d67a1e380832932c0b.zip
auto upstream
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus.el21
2 files changed, 21 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 1a2df907271..522c688fc13 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12012-12-05 Sam Steingold <sds@gnu.org>
2
3 * gnus.el (gnus-delete-gnus-frame): Extract from `gnus-other-frame'.
4 (gnus-other-frame): Add `gnus-delete-gnus-frame' to
5 `gnus-suspend-gnus-hook' in addition to `gnus-exit-gnus-hook'.
6
12012-12-05 Katsumi Yamaoka <yamaoka@jpl.org> 72012-12-05 Katsumi Yamaoka <yamaoka@jpl.org>
2 8
3 * gmm-utils.el (gmm-called-interactively-p): Revert. 9 * gmm-utils.el (gmm-called-interactively-p): Revert.
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 8fbde5c8ecc..70e7f711f3d 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -4348,6 +4348,14 @@ server."
4348 (interactive "P") 4348 (interactive "P")
4349 (gnus arg nil 'slave)) 4349 (gnus arg nil 'slave))
4350 4350
4351(defun gnus-delete-gnus-frame ()
4352 "Delete gnus frame unless it is the only one.
4353Used for `gnus-exit-gnus-hook' in `gnus-other-frame'."
4354 (when (and (frame-live-p gnus-other-frame-object)
4355 (cdr (frame-list)))
4356 (delete-frame gnus-other-frame-object))
4357 (setq gnus-other-frame-object nil))
4358
4351;;;###autoload 4359;;;###autoload
4352(defun gnus-other-frame (&optional arg display) 4360(defun gnus-other-frame (&optional arg display)
4353 "Pop up a frame to read news. 4361 "Pop up a frame to read news.
@@ -4388,12 +4396,13 @@ current display is used."
4388 (if alive 4396 (if alive
4389 (switch-to-buffer gnus-group-buffer) 4397 (switch-to-buffer gnus-group-buffer)
4390 (funcall gnus-other-frame-function arg) 4398 (funcall gnus-other-frame-function arg)
4391 (add-hook 'gnus-exit-gnus-hook 4399 (add-hook 'gnus-exit-gnus-hook 'gnus-delete-gnus-frame)
4392 (lambda nil 4400 ;; One might argue that `gnus-delete-gnus-frame' should not be called
4393 (when (and (frame-live-p gnus-other-frame-object) 4401 ;; from `gnus-suspend-gnus-hook', but, on the other hand, one might
4394 (cdr (frame-list))) 4402 ;; argue that it should. No matter what you think, for the sake of
4395 (delete-frame gnus-other-frame-object)) 4403 ;; those who want it to be called from it, please keep (defun
4396 (setq gnus-other-frame-object nil))))))) 4404 ;; gnus-delete-gnus-frame) even if you remove the next `add-hook'.
4405 (add-hook 'gnus-suspend-gnus-hook 'gnus-delete-gnus-frame)))))
4397 4406
4398;;;###autoload 4407;;;###autoload
4399(defun gnus (&optional arg dont-connect slave) 4408(defun gnus (&optional arg dont-connect slave)