Function: hmouse-drag-item-to-display

hmouse-drag-item-to-display is a byte-compiled function defined in hui-window.el.

Signature

(hmouse-drag-item-to-display &optional NEW-WINDOW-FLAG)

Documentation

Drag an item and release where it is to be displayed.

Draggable items include Hyperbole buttons, Dired items, buffer/ibuffer menu items.

Depress on the item and release where the item is to be displayed.

If depress is on an item and release is outside of Emacs, the item is displayed in a new frame with a single window. If the release is inside Emacs and the optional NEW-WINDOW-FLAG is non-nil, the release window is sensibly split before the buffer is displayed. Otherwise, the buffer is simply displayed in the release window.

Return t unless source buffer is not one of these modes or point is not on an item, then nil.

See hmouse-drag-item-mode-forms for how to allow for draggable items in other modes.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun hmouse-drag-item-to-display (&optional new-window-flag)
  "Drag an item and release where it is to be displayed.
Draggable items include Hyperbole buttons, Dired items, buffer/ibuffer
menu items.

Depress on the item and release where the item is to be displayed.

If depress is on an item and release is outside of Emacs, the
item is displayed in a new frame with a single window.  If the
release is inside Emacs and the optional NEW-WINDOW-FLAG is non-nil,
the release window is sensibly split before the buffer is
displayed.  Otherwise, the buffer is simply displayed in the
release window.

Return t unless source buffer is not one of these modes or point is
not on an item, then nil.

See `hmouse-drag-item-mode-forms' for how to allow for draggable
items in other modes."
  (when (hmouse-at-item-p action-key-depress-window)
    (hmouse-item-to-window new-window-flag)
    t))