fixed up other-window-in-any-frame
This commit is contained in:
parent
9e1d11c572
commit
3b97e035c0
1 changed files with 8 additions and 8 deletions
4
emacs
4
emacs
|
|
@ -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")
|
||||||
|
(while (> arg 0)
|
||||||
(let ((window (next-window (selected-window) nil 'visible)))
|
(let ((window (next-window (selected-window) nil 'visible)))
|
||||||
(when (not (member window (window-list)))
|
(when (not (member window (window-list)))
|
||||||
(dolist (frame (delq (selected-frame) (frame-list)))
|
(dolist (frame (delq (selected-frame) (frame-list)))
|
||||||
(when (member window (window-list frame))
|
(when (member window (window-list frame))
|
||||||
(select-frame-set-input-focus frame))))
|
(select-frame-set-input-focus frame))))
|
||||||
(select-window window))
|
(select-window window))
|
||||||
(unless (= 1 arg)
|
(decf arg)))
|
||||||
(other-window-in-any-frame (- arg 1))))
|
|
||||||
|
|
||||||
;; 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue