Function: hkey-drag
hkey-drag is an autoloaded, interactive and byte-compiled function
defined in hmouse-drv.el.
Signature
(hkey-drag RELEASE-WINDOW)
Documentation
Emulate Smart Mouse Key drag from the selected window to RELEASE-WINDOW.
When called interactively the RELEASE-WINDOW is chosen via ace-window. The drag action determines the final 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 (release-window)
"Emulate Smart Mouse Key drag from the selected window to RELEASE-WINDOW.
When called interactively the RELEASE-WINDOW is chosen via
ace-window. The drag action determines the final 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."
;; Note: Cannot add free variable start-window as first parameter to this
;; function because it is called like many other functions herein with a
;; single release-window argument by 'hmouse-choose-windows'.
;; Cancel any partial drag that may have been recorded.
(interactive (list (aw-select " Ace - Hyperbole: Drag")))
(condition-case nil
;; This may trigger a No Action error if starting window
;; (window of depress) and release-window are the same; in that
;; case: use the error handler to emulate dragging an item if on
;; one.
(progn (if current-prefix-arg
(setq assist-key-depressed-flag nil)
(setq action-key-depressed-flag nil))
(hkey-operate current-prefix-arg)
(when (window-live-p release-window)
(hypb:select-window-frame release-window))
(hkey-operate current-prefix-arg))
(error (when (eq start-window release-window)
(hmouse-drag-item-to-display)))))