Function: hact
hact is a byte-compiled function defined in hact.el.
Signature
(hact &rest ARGS)
Documentation
Perform action function formed from rest of ARGS and return the result.
The value of hrule:action determines what effect this has. The default for hrule:action is actype:act which returns the result of the action unless it is nil, in which case t is returned instead, to ensure that implicit button types register the performance of the action.
Alternatively act as a no-op when testing implicit button type contexts.
First arg may be a symbol or symbol name for either an action type or a
function. Runs action-act-hook before performing action.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hact.el
;;; ========================================================================
;;; action type class, actype
;;; ========================================================================
(defun hact (&rest args)
"Perform action function formed from rest of ARGS and return the result.
The value of `hrule:action' determines what effect this has. The
default for `hrule:action' is `actype:act' which returns the result of
the action unless it is nil, in which case t is returned instead, to
ensure that implicit button types register the performance of the action.
Alternatively act as a no-op when testing implicit button type contexts.
First arg may be a symbol or symbol name for either an action type or a
function. Runs `action-act-hook' before performing action."
;; (message "hact args: %S" args)
(hattr:set 'hbut:current 'actype (actype:elisp-symbol (car args)))
(apply hrule:action args))