Function: hkey-drag-item
hkey-drag-item is an autoloaded, interactive and byte-compiled
function defined in hmouse-drv.el.
Signature
(hkey-drag-item RELEASE-WINDOW)
Documentation
Emulate Smart Mouse Key drag from item in a selected window to RELEASE-WINDOW.
When called interactively the RELEASE-WINDOW is chosen via ace-window. RELEASE-WINDOW is left selected unless point is not on an item, in which case, an error is signalled.
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-item (release-window)
"Emulate Smart Mouse Key drag from item in a selected window to RELEASE-WINDOW.
When called interactively the RELEASE-WINDOW is chosen via
ace-window. RELEASE-WINDOW is left selected unless point is not
on an item, in which case, an error is signalled.
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)))
at-item-flag)
(unless (window-live-p start-window)
(setq start-window (selected-window)))
(cond ((and (setq at-item-flag (hmouse-at-item-p start-window))
(window-live-p release-window))
(hkey-drag release-window)
;; Leave release-window selected
(when (window-live-p release-window)
(hypb:select-window-frame release-window)))
((not at-item-flag)
(error "(hkey-drag-item): No listing item at point"))
(t ;; No item at point or selected release is invalid
(error "(hkey-drag-item): No item at point or invalid final window, %s" release-window)))))