Function: hui:delimited-selectable-thing
hui:delimited-selectable-thing is a byte-compiled function defined in
hui.el.
Signature
(hui:delimited-selectable-thing)
Documentation
Return any delimited selectable thing at point as a string or nil if none.
Return nil if hui:selectable-thing-priority-list is nil.
With point:
in a Koutline klink, copy the klink;
in a Koutline cell, outside any klink,
copy a klink reference to the current cell;
on a Hyperbole button, copy the text of the button excluding delimiters;
at the start of a paired delimiter,
copy the text including the delimiters.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:delimited-selectable-thing ()
"Return any delimited selectable thing at point as a string or nil if none.
Return nil if `hui:selectable-thing-priority-list' is nil.
With point:
in a Koutline klink, copy the klink;
in a Koutline cell, outside any klink,
copy a klink reference to the current cell;
on a Hyperbole button, copy the text of the button excluding delimiters;
at the start of a paired delimiter,
copy the text including the delimiters."
(when hui:selectable-thing-priority-list
(cond ((klink:absolute (klink:at-p)))
((derived-mode-p 'kotl-mode)
(kcell-view:absolute-reference))
((and (not (hyperb:stack-frame '(hui:kill-ring-save hbut:at-p ibut:at-p ebut:at-p)))
(let* ((hbut (hbut:at-p))
(start (when hbut (hattr:get hbut 'lbl-start)))
(end (when hbut (hattr:get hbut 'lbl-end))))
(and start end
(buffer-substring-no-properties start end)))))
((hui-select-at-delimited-thing-p)
(hui-select-get-thing)))))