Function: prefix-command-preserve-state
prefix-command-preserve-state is a byte-compiled function defined in
simple.el.gz.
Signature
(prefix-command-preserve-state)
Documentation
Pass the current prefix command state to the next command.
Should be called by all prefix commands.
Runs prefix-command-preserve-state-hook.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun prefix-command-preserve-state ()
"Pass the current prefix command state to the next command.
Should be called by all prefix commands.
Runs `prefix-command-preserve-state-hook'."
(run-hooks 'prefix-command-preserve-state-hook)
;; If the current command is a prefix command, we don't want the next (real)
;; command to have `last-command' set to, say, `universal-argument'.
(setq this-command last-command)
(setq real-this-command real-last-command)
(prefix-command-update))