Function: hui-menu-global-buttons
hui-menu-global-buttons is a byte-compiled function defined in
hui-menu.el.
Signature
(hui-menu-global-buttons REST-OF-MENU)
Documentation
Global button menu to go before REST-OF-MENU.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-menu.el
;; List existing global buttons for menu activation.
(defun hui-menu-global-buttons (rest-of-menu)
"Global button menu to go before REST-OF-MENU."
(delq nil
(append
'(["Manual" (id-info "(hyperbole)Global Buttons") t]
"----")
(let ((labels (gbut:label-list))
(cutoff))
(when labels
;; Cutoff list if too long.
(setq cutoff (hui-menu-cutoff-list labels))
(delq nil (append
'("----" "Activate:")
(mapcar (lambda (label) (vector label `(gbut:act ,label) t))
(sort labels 'string-lessp))
(if cutoff '(". . ."))
'("----" "----")))))
rest-of-menu)))