Function: format-kbd-macro

format-kbd-macro is an autoloaded and byte-compiled function defined in edmacro.el.gz.

Signature

(format-kbd-macro &optional MACRO VERBOSE)

Documentation

Return the keyboard macro MACRO as a human-readable string.

This string is suitable for passing to read-kbd-macro. Second argument VERBOSE means to put one command per line with comments. If VERBOSE is 1, put everything on one line. If VERBOSE is omitted or nil, use a compact 80-column format.

Source Code

;; Defined in /usr/src/emacs/lisp/edmacro.el.gz
;;;###autoload
(defun format-kbd-macro (&optional macro verbose)
  "Return the keyboard macro MACRO as a human-readable string.
This string is suitable for passing to `read-kbd-macro'.
Second argument VERBOSE means to put one command per line with comments.
If VERBOSE is `1', put everything on one line.  If VERBOSE is omitted
or nil, use a compact 80-column format."
  (and macro (symbolp macro) (setq macro (symbol-function macro)))
  (edmacro-format-keys (or macro last-kbd-macro) verbose))