Variable: this-command

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

Value

nil

Documentation

The command now being executed.

The command can set this variable; whatever is put here will be in last-command during the following command.

View in manual

Probably introduced at or before Emacs version 19.23.

Source Code

// Defined in /usr/src/emacs/src/keyboard.c
  DEFVAR_LISP ("this-command", Vthis_command,
	       doc: /* The command now being executed.
The command can set this variable; whatever is put here
will be in `last-command' during the following command.  */);