Function: hkey-drag-to
hkey-drag-to is an autoloaded, interactive and byte-compiled function
defined in hmouse-drv.el.
Signature
(hkey-drag-to RELEASE-WINDOW)
Documentation
Emulate Smart Mouse Key drag from a selected window to RELEASE-WINDOW.
When called interactively the RELEASE-WINDOW is chosen via ace-window. If an item is dragged to RELEASE-WINDOW, then RELEASE-WINDOW is selected; otherwise, the drag action determines the selected window. If no drag has taken place, then the selected window's buffer is displayed in RELEASE-WINDOW and that becomes the selected window.
Optional prefix arg non-nil means emulate Assist Key rather than the Action Key.
Works only when running under a window system, not from a dumb terminal.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-drv.el
;;;###autoload
(defun hkey-drag-to (release-window)
"Emulate Smart Mouse Key drag from a selected window to RELEASE-WINDOW.
When called interactively the RELEASE-WINDOW is chosen via
ace-window. If an item is dragged to RELEASE-WINDOW, then
RELEASE-WINDOW is selected; otherwise, the drag action determines
the selected window. If no drag has taken place, then the
selected window's buffer is displayed in RELEASE-WINDOW and that
becomes the selected window.
Optional prefix arg non-nil means emulate Assist Key rather than the
Action Key.
Works only when running under a window system, not from a dumb terminal."
(interactive
(list (let ((mode-line-text (concat " Ace - " (nth 2 (assq ?i aw-dispatch-alist)))))
(aw-select mode-line-text))))
(let ((start-window (if (and (boundp 'start-window) (window-live-p start-window))
start-window
(if current-prefix-arg
assist-key-depress-window
action-key-depress-window))))
(unless (window-live-p start-window)
(setq start-window (selected-window)))
(if (and (hmouse-at-item-p start-window) (window-live-p release-window))
(progn (hkey-drag release-window)
;; Leave release-window selected
(when (window-live-p release-window)
(hypb:select-window-frame release-window)))
;; Leave hkey-drag to choose final selected window
(hkey-drag release-window))))