Function: hui:menu-enter
hui:menu-enter is an interactive and byte-compiled function defined in
hui-mini.el.
Signature
(hui:menu-enter &optional CHAR-STR)
Documentation
Use CHAR-STR or last input character as minibuffer argument.
Key Bindings
Aliases
hui:menu-abort(var)/hui:menu-abort(fun)
hui:menu-select(var)/hui:menu-select(fun)
hui:menu-quit(var)/hui:menu-quit(fun)
hui:menu-top(var)/hui:menu-top(fun)
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mini.el
(defun hui:menu-enter (&optional char-str)
"Use CHAR-STR or last input character as minibuffer argument."
(interactive)
(let ((input (or char-str (aref (recent-keys) (1- (length (recent-keys)))))))
(and (not (integerp input))
(eventp input)
(setq input (event-basic-type input)))
(if (or (symbolp input)
(and (integerp input) (= input ?\r)))
;; If no item selected, when on the menu name (ending with
;; '>', input will be set to 1. If at the end of the menu,
;; input will be set to 0. See `hui:menu-choose' for how
;; these are handled.
(setq input (hargs:at-p)))
(erase-buffer)
(when (or (characterp input) (stringp input))
(setq this-command #'self-insert-command)
(insert input)))
(exit-minibuffer))