Function: hycontrol-frame-swap-buffers
hycontrol-frame-swap-buffers is an interactive and byte-compiled
function defined in hycontrol.el.
Signature
(hycontrol-frame-swap-buffers)
Documentation
Swap the buffers displayed by each of two visible, most recently used frames.
Return t on success. The selected window in each frame is used. If there are not at least two visible frames, do nothing and return nil.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hycontrol.el
(defun hycontrol-frame-swap-buffers ()
"Swap the buffers displayed by each of two visible, most recently used frames.
Return t on success. The selected window in each frame is used.
If there are not at least two visible frames, do nothing and
return nil."
(interactive)
(let ((frames (filtered-frame-list #'frame-visible-p))
frame2
windows2
buf1 buf2)
(when (>= (length frames) 2)
(setq frame2 (if (eq (car frames) (selected-frame))
(cadr frames)
(car frames))
windows2 (window-list frame2 'no-mini))
(setq buf1 (window-buffer (selected-window))
buf2 (window-buffer (car windows2)))
(set-window-buffer (selected-window) buf2)
(set-window-buffer (car windows2) buf1)
(other-frame 1)
t)))