Function: hierarchy-labelfn-button-if
hierarchy-labelfn-button-if is a byte-compiled function defined in
hierarchy.el.gz.
Signature
(hierarchy-labelfn-button-if LABELFN BUTTONP ACTIONFN)
Documentation
Return a function rendering LABELFN as a button if BUTTONP.
Pass LABELFN and ACTIONFN to hierarchy-labelfn-button if
BUTTONP is non-nil. Otherwise, render LABELFN without making it
a button.
BUTTONP is a function taking an item of HIERARCHY and an indentation value (a number) as input.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/hierarchy.el.gz
(defun hierarchy-labelfn-button-if (labelfn buttonp actionfn)
"Return a function rendering LABELFN as a button if BUTTONP.
Pass LABELFN and ACTIONFN to `hierarchy-labelfn-button' if
BUTTONP is non-nil. Otherwise, render LABELFN without making it
a button.
BUTTONP is a function taking an item of HIERARCHY and an
indentation value (a number) as input."
(lambda (item indent)
(if (funcall buttonp item indent)
(funcall (hierarchy-labelfn-button labelfn actionfn) item indent)
(funcall labelfn item indent))))