Function: hui-select-at-delimited-thing-p

hui-select-at-delimited-thing-p is a byte-compiled function defined in hui-select.el.

Signature

(hui-select-at-delimited-thing-p)

Documentation

Return non-nil if point is at a delimited thing, else nil.

Ignore any match if on an Emacs button and instead return nil.

A delimited thing is a markup pair, list, array/vector, set, comment or string. The non-nil value returned is the function to call to select that syntactic unit, if any. The global hkey-value is set to this value.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-select.el
(defun hui-select-at-delimited-thing-p ()
  "Return non-nil if point is at a delimited thing, else nil.
Ignore any match if on an Emacs button and instead return nil.

A delimited thing is a markup pair, list, array/vector, set,
comment or string.  The non-nil value returned is the function to
call to select that syntactic unit, if any.  The global `hkey-value'
is set to this value."
  (unless (button-at (point))
    (setq hkey-value (hui-select-delimited-thing-call #'hui-select-at-p))
    (cond ((eq hkey-value 'hui-select-punctuation)
	   (if (hui-select-comment (point))
	       (setq hkey-value #'hui-select-comment)
	     ;; Else here used to be `hkey-value' but then we are returning a
	     ;; value for any punctuation character without knowing if
	     ;; it is part of a delimited thing.  Nil should be the
	     ;; right thing here.
	     nil))
	  (t hkey-value))))