Function: vip-prefix-arg-value
vip-prefix-arg-value is a byte-compiled function defined in vip.el.gz.
Signature
(vip-prefix-arg-value CHAR VALUE COM)
Documentation
Compute numeric prefix arg value. Invoked by CHAR. VALUE is the value obtained so far, and COM is the command part obtained so far.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vip.el.gz
;; prefix argument for vi mode
;; In vi mode, prefix argument is a dotted pair (NUM . COM) where NUM
;; represents the numeric value of the prefix argument and COM represents
;; command prefix such as "c", "d", "m" and "y".
(defun vip-prefix-arg-value (char value com)
"Compute numeric prefix arg value. Invoked by CHAR. VALUE is the value
obtained so far, and COM is the command part obtained so far."
(while (and (>= char ?0) (<= char ?9))
(setq value (+ (* (if (numberp value) value 0) 10) (- char ?0)))
(setq char (read-char)))
(setq prefix-arg value)
(if com (setq prefix-arg (cons prefix-arg com)))
(while (= char ?U)
(vip-describe-arg prefix-arg)
(setq char (read-char)))
(push char unread-command-events))