Function: repeat-is-really-this-command
repeat-is-really-this-command is a byte-compiled function defined in
repeat.el.gz.
Signature
(repeat-is-really-this-command)
Documentation
Return t if this command is happening because user invoked repeat.
Usually, when a command is executing, the Emacs builtin variable
this-command identifies the command the user invoked. Some commands modify
that variable on the theory they're doing more good than harm; repeat does
that, and usually does do more good than harm. However, like all do-gooders,
sometimes repeat gets surprising results from its altruism. The value of
this function is always whether the value of this-command would've been
'repeat if repeat hadn't modified it.
Source Code
;; Defined in /usr/src/emacs/lisp/repeat.el.gz
;; Also, we can assign a name to the test for which that variable is
;; intended, which thereby documents here how to use it, & makes code that
;; uses it self-documenting:
(defsubst repeat-is-really-this-command ()
"Return t if this command is happening because user invoked `repeat'.
Usually, when a command is executing, the Emacs builtin variable
`this-command' identifies the command the user invoked. Some commands modify
that variable on the theory they're doing more good than harm; `repeat' does
that, and usually does do more good than harm. However, like all do-gooders,
sometimes `repeat' gets surprising results from its altruism. The value of
this function is always whether the value of `this-command' would've been
'repeat if `repeat' hadn't modified it."
(= repeat-num-input-keys-at-repeat num-input-keys))