<p>Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand:</p>

<p>(repeat-last-command)</p>

<p>do the last C- or M- command I just executed (to be rebound to a fn key)</p>

<p>or sometimes the related: </p>

<p>(describe-last-function)</p>

<p>what keystroke did I just mistakenly issue, the effect of which I'd like to add to my bag of tricks. describe-key is close, but requires knowing what I typed. </p>

<p>Am I simply asking too much from my trusty sidekick?</p>

Repeat functionality is provided by the
```
repeat.el
```
Emacs Lisp package, which is included with standard Emacs distributions.  From
```
repeat.el
```
's documentation:
This package defines a command that
  repeats the preceding command,
  whatever that was, including its
  arguments, whatever they were. This
  command is connected to the key C-x z.
  To repeat the previous command once,
  type C-x z. To repeat it a second time
  immediately after, type just z. By
  typing z again and again, you can
  repeat the command over and over.
To see additional information about the repeat command, type
C-h F repeat RET
from within Emacs.