Function: transient--read-number-N
transient--read-number-N is a byte-compiled function defined in
transient.el.
Signature
(transient--read-number-N PROMPT INITIAL-INPUT HISTORY INCLUDE-ZERO)
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--read-number-N (prompt initial-input history include-zero)
(save-match-data
(cl-block nil
(while t
(let ((str (read-from-minibuffer prompt initial-input nil nil history)))
(when (or (string-equal str "")
(string-match-p (if include-zero
"\\`\\(0\\|[1-9][0-9]*\\)\\'"
"\\`[1-9][0-9]*\\'")
str))
(cl-return str)))
(message "Please enter a natural number (%s zero)."
(if include-zero "including" "excluding"))
(sit-for 1)))))