--- gnus-util.el~ 2002-08-21 12:49:51 +0000 +++ gnus-util.el 2002-08-23 10:01:33 +0000 @@ -1287,6 +1287,16 @@ (when focus-follows-mouse (set-mouse-position frame (1- (frame-width frame)) 0))))) +(defun gnus-frame-or-window-display-name (object) + "Given a frame or window, return the associated display name. +Return nil otherwise." + (if (featurep 'xemacs) + (device-name (dfw-device object)) + (if (or (framep object) + (and (windowp object) + (setq object (window-frame object)))) + (frame-parameter object 'display)))) + (provide 'gnus-util) ;;; gnus-util.el ends here --- gnus.el~ 2002-08-21 23:47:05 +0000 +++ gnus.el 2002-08-23 10:01:33 +0000 @@ -3378,19 +3378,24 @@ (defun gnus-other-frame (&optional arg) "Pop up a frame to read news." (interactive "P") - (let ((alive (gnus-alive-p))) - (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))) + (let ((alive (gnus-alive-p)) + (display (gnus-frame-or-window-display-name (selected-frame)))) + (unless + (and + alive + (catch 'found + (walk-windows + (lambda (window) + (when (and (equal display + (gnus-frame-or-window-display-name window)) + (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))) --- lpath.el~ 2002-08-21 12:49:51 +0000 +++ lpath.el 2002-08-23 10:01:33 +0000 @@ -92,7 +92,7 @@ window-edges x-color-values x-popup-menu browse-url frame-char-height frame-char-width url-generic-parse-url xml-parse-region - make-network-process)) + make-network-process frame-parameter)) (maybe-bind '(buffer-display-table buffer-file-coding-system font-lock-defaults global-face-data gnus-article-x-face-too-ugly @@ -123,7 +123,8 @@ specifier-instance url-generic-parse-url valid-image-instantiator-format-p w3-do-setup window-pixel-height window-pixel-width - xml-parse-region make-network-process))) + xml-parse-region make-network-process + device-name dfw-device))) (require 'custom)