Function: hypb:ensure-dependency
hypb:ensure-dependency is a byte-compiled function defined in hypb.el.
Signature
(hypb:ensure-dependency PACKAGE)
Documentation
Return non-nil if PACKAGE is installed and ready for use.
If PACKAGE is not installed and the package.el package manager is in use, an install attempt may be made. When any other package manager is in use, an error is triggered prompting to manually install the PACKAGE.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hypb.el
(defun hypb:ensure-dependency (package)
"Return non-nil if PACKAGE is installed and ready for use.
If PACKAGE is not installed and the package.el package manager is in
use, an install attempt may be made. When any other package manager is
in use, an error is triggered prompting to manually install the PACKAGE."
(or (require package nil t)
(pcase (hypb:users-package-manager)
('package (hypb:package-el-install package))
(manager (hypb:notify-manual-install-needed package manager)))))