Function: hypb:indirect-function
hypb:indirect-function is a byte-compiled function defined in hypb.el.
Signature
(hypb:indirect-function OBJ)
Documentation
Return the function at the end of OBJ's function chain.
Resolves autoloadable function symbols properly.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
(defun hypb:indirect-function (obj)
"Return the function at the end of OBJ's function chain.
Resolves autoloadable function symbols properly."
(let ((func (indirect-function obj)))
;; Handle functions with autoload bodies.
(if (and (symbolp obj) (listp func) (eq (car func) 'autoload))
(let ((load-file (car (cdr func))))
(load load-file)
;; Prevent infinite recursion
(if (equal func (symbol-function obj))
(error "(hypb:indirect-function): Autoload of '%s' failed" obj)
(hypb:indirect-function obj)))
func)))