Variable: this-original-command

this-original-command is a variable defined in keyboard.c.

Value

nil

Documentation

The command bound to the current key sequence before remapping.

It equals this-command if the original command was not remapped through any of the active keymaps. Otherwise, the value of this-command is the result of looking up the original command in the active keymaps.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

// Defined in /usr/src/emacs/src/keyboard.c
  DEFVAR_LISP ("this-original-command", Vthis_original_command,
	       doc: /* The command bound to the current key sequence before remapping.
It equals `this-command' if the original command was not remapped through
any of the active keymaps.  Otherwise, the value of `this-command' is the
result of looking up the original command in the active keymaps.  */);