fixed up other-window-in-any-frame

This commit is contained in:
Sami Samhuri 2010-05-14 00:05:28 -07:00
parent 9e1d11c572
commit 3b97e035c0

16
emacs
View file

@ -372,14 +372,14 @@ switch to that frame first using `select-frame-set-input-focus'.
If N is non-nil switch to the nth next window." If N is non-nil switch to the nth next window."
(interactive "p") (interactive "p")
(let ((window (next-window (selected-window) nil 'visible))) (while (> arg 0)
(when (not (member window (window-list))) (let ((window (next-window (selected-window) nil 'visible)))
(dolist (frame (delq (selected-frame) (frame-list))) (when (not (member window (window-list)))
(when (member window (window-list frame)) (dolist (frame (delq (selected-frame) (frame-list)))
(select-frame-set-input-focus frame)))) (when (member window (window-list frame))
(select-window window)) (select-frame-set-input-focus frame))))
(unless (= 1 arg) (select-window window))
(other-window-in-any-frame (- arg 1)))) (decf arg)))
;; Reload the .emacs file with a minimum of effort, ;; Reload the .emacs file with a minimum of effort,
;; first saving histories with Persistent ;; first saving histories with Persistent