Function: list-command-history
list-command-history is an autoloaded, interactive and byte-compiled
function defined in chistory.el.gz.
Signature
(list-command-history)
Documentation
List history of commands that used the minibuffer.
The number of commands listed is controlled by list-command-history-max.
Calls value of list-command-history-filter (if non-nil) on each history
element to judge if that element should be excluded from the list.
The buffer is left in Command History mode.
Probably introduced at or before Emacs version 16.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/chistory.el.gz
;;;###autoload
(defun list-command-history ()
"List history of commands that used the minibuffer.
The number of commands listed is controlled by `list-command-history-max'.
Calls value of `list-command-history-filter' (if non-nil) on each history
element to judge if that element should be excluded from the list.
The buffer is left in Command History mode."
(interactive)
(with-output-to-temp-buffer
"*Command History*"
(let ((history command-history)
(buffer-read-only nil)
(count (or list-command-history-max -1)))
(while (and (/= count 0) history)
(if (and (bound-and-true-p list-command-history-filter)
(funcall list-command-history-filter (car history)))
nil
(setq count (1- count))
(prin1 (car history))
(terpri))
(setq history (cdr history))))
(with-current-buffer "*Command History*"
(goto-char (point-min))
(if (eobp)
(error "No command history")
(command-history-mode)))))