Function: hycontrol-window-to-new-frame
hycontrol-window-to-new-frame is an autoloaded, interactive and
byte-compiled function defined in hycontrol.el.
Signature
(hycontrol-window-to-new-frame)
Documentation
Create a new frame sized to match the selected window with the same buffer.
If there is only one window in the source frame or if
hycontrol-keep-window-flag is non-nil, leave the original
window and just clone it into the new frame; otherwise, delete
the original window.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hycontrol.el
;; Derived from Emacs mouse.el.
;;;###autoload
(defun hycontrol-window-to-new-frame ()
"Create a new frame sized to match the selected window with the same buffer.
If there is only one window in the source frame or if
`hycontrol-keep-window-flag' is non-nil, leave the original
window and just clone it into the new frame; otherwise, delete
the original window."
(interactive)
(let ((w (selected-window))
(frame-resize-pixelwise t)
(only-one-window (one-window-p)))
(cond ((window-minibuffer-p w)
(beep)
(minibuffer-message "(Hyperbole): Select a non-minibuffer window"))
(t
;; Give temporary modes such as isearch a chance to turn off.
(run-hooks 'mouse-leave-buffer-hook)
(select-frame (make-frame (frame-parameters)))
(unless only-one-window
(hycontrol-set-frame-size nil (window-size w t t) (window-size w nil t) t))
(set-frame-position nil (+ (car hycontrol-frame-offset)
(car (frame-position (window-frame w))))
(+ (cdr hycontrol-frame-offset)
(cdr (frame-position (window-frame w)))))
(with-selected-frame (window-frame w)
(unless (or hycontrol-keep-window-flag (one-window-p t))
(delete-window w)))))))