Function: command-history

command-history is an autoloaded, interactive and byte-compiled function defined in chistory.el.gz.

Signature

(command-history)

Documentation

Examine commands from variable command-history(var)/command-history(fun) in a buffer.

The number of commands listed is controlled by list-command-history-max. The command history is filtered by list-command-history-filter if non-nil. Use x (command-history-repeat) to repeat the command on the current line.

Otherwise much like Emacs-Lisp Mode except that there is no self-insertion and digits provide prefix arguments. Tab does not indent.
- negative-argument
0 digit-argument
1 digit-argument
2 digit-argument
3 digit-argument
4 digit-argument
5 digit-argument
6 digit-argument
7 digit-argument
8 digit-argument
9 digit-argument
< beginning-of-buffer
<keymap> C-M-q indent-sexp
<keymap> C-M-q prog-indent-sexp
> end-of-buffer
? describe-mode
C-j next-line
DEL previous-line
DEL scroll-down-command
RET next-line
S-SPC scroll-down-command
SPC scroll-up-command
SPC..~ undefined
g revert-buffer
h describe-mode
q quit-window
x command-history-repeat

This command always recompiles the Command History listing and runs the normal hook command-history-hook.

Probably introduced at or before Emacs version 17.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/chistory.el.gz
;;;###autoload
(defun command-history ()
  "Examine commands from variable `command-history' in a buffer.
The number of commands listed is controlled by `list-command-history-max'.
The command history is filtered by `list-command-history-filter' if non-nil.
Use \\<command-history-mode-map>\\[command-history-repeat] to repeat the command on the current line.

Otherwise much like Emacs-Lisp Mode except that there is no self-insertion
and digits provide prefix arguments.  Tab does not indent.
\\{command-history-mode-map}

This command always recompiles the Command History listing
and runs the normal hook `command-history-hook'."
  (interactive)
  (list-command-history)
  (pop-to-buffer "*Command History*")
  (run-hooks 'command-history-hook))