Synch with Oort Gnus.
authoryamaoka <yamaoka>
Wed, 21 Aug 2002 23:49:28 +0000 (23:49 +0000)
committeryamaoka <yamaoka>
Wed, 21 Aug 2002 23:49:28 +0000 (23:49 +0000)
lisp/ChangeLog
lisp/gnus.el

index 6a8553c..8fb74a3 100644 (file)
@@ -1,5 +1,9 @@
 2002-08-21  Katsumi Yamaoka <yamaoka@jpl.org>
 
+       * gnus.el (gnus-other-frame): Trivial fix.
+
+2002-08-21  Katsumi Yamaoka <yamaoka@jpl.org>
+
        * gnus.el (gnus-other-frame-parameters): New user option.
        (gnus-other-frame-object): New variable.
        (gnus-other-frame): Make it search for existing Gnus frame; don't
index a045479..4651234 100644 (file)
@@ -3475,30 +3475,30 @@ the variable `toolbar-news-frame-plist' will be refered instead."
   "Pop up a frame to read news."
   (interactive "P")
   (let ((alive (gnus-alive-p)))
-    (or (and alive
-            (catch 'found
-              (walk-windows
-               (lambda (window)
-                 (when (with-current-buffer (window-buffer window)
-                         (string-match "\\`gnus-.+-mode\\'"
-                                       (symbol-name major-mode)))
-                   (gnus-select-frame-set-input-focus
-                    (setq gnus-other-frame-object (window-frame window)))
-                   (select-window window)
-                   (throw 'found t)))
-               'ignore t)))
-       (gnus-select-frame-set-input-focus
-        (setq gnus-other-frame-object
-              (make-frame gnus-other-frame-parameters)))
-       (if alive
-           (switch-to-buffer gnus-group-buffer)
-         (gnus arg)
-         (add-hook 'gnus-exit-gnus-hook
-                   (lambda nil
-                     (when (and (frame-live-p gnus-other-frame-object)
-                                (cdr (frame-list)))
-                       (delete-frame gnus-other-frame-object))
-                     (setq gnus-other-frame-object nil)))))))
+    (unless (and alive
+                (catch 'found
+                  (walk-windows
+                   (lambda (window)
+                     (when (with-current-buffer (window-buffer window)
+                             (string-match "\\`gnus-.+-mode\\'"
+                                           (symbol-name major-mode)))
+                       (gnus-select-frame-set-input-focus
+                        (setq gnus-other-frame-object (window-frame window)))
+                       (select-window window)
+                       (throw 'found t)))
+                   'ignore t)))
+      (gnus-select-frame-set-input-focus
+       (setq gnus-other-frame-object
+            (make-frame gnus-other-frame-parameters)))
+      (if alive
+         (switch-to-buffer gnus-group-buffer)
+       (gnus arg)
+       (add-hook 'gnus-exit-gnus-hook
+                 (lambda nil
+                   (when (and (frame-live-p gnus-other-frame-object)
+                              (cdr (frame-list)))
+                     (delete-frame gnus-other-frame-object))
+                   (setq gnus-other-frame-object nil)))))))
 
 ;;;###autoload
 (defun gnus (&optional arg dont-connect slave)