Function: vcursor-other-window
vcursor-other-window is an interactive and byte-compiled function
defined in vcursor.el.gz.
Signature
(vcursor-other-window N &optional ALL-FRAMES)
Documentation
Activate the virtual cursor in another window.
This is the next window cyclically after one currently showing the virtual cursor, or else after the current selected window. If there is no other window, the current window is split.
Arguments N and optional ALL-FRAMES are the same as with other-window.
ALL-FRAMES is also used to decide whether to split the window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vcursor.el.gz
(defun vcursor-other-window (n &optional all-frames)
"Activate the virtual cursor in another window.
This is the next window cyclically after one currently showing the
virtual cursor, or else after the current selected window. If there
is no other window, the current window is split.
Arguments N and optional ALL-FRAMES are the same as with `other-window'.
ALL-FRAMES is also used to decide whether to split the window."
(interactive "p")
(if (one-window-p nil all-frames)
(display-buffer (current-buffer) t))
(save-excursion
(save-window-excursion
;; We don't use fancy vcursor-find-window trickery, since we're
;; quite happy to have the vcursor cycle back into the current
;; window.
(let ((win (vcursor-find-window nil nil (not all-frames))))
(if win (select-window win))
;; else start from here
(other-window n all-frames)
(vcursor-disable -1))))
)