Function: ert-play-keys

ert-play-keys is a byte-compiled function defined in ert-x.el.gz.

Signature

(ert-play-keys KEYS)

Documentation

Play the key sequence KEYS as if it was user input.

KEYS shall have the same format as in a call to function kmacro.

This macro should be expanded within the body of ert-with-buffer-selected to select a buffer when keys KEYS start commands acting on this buffer, or within the body of ert-with-test-buffer used with :selected flag set.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert-x.el.gz
(defun ert-play-keys (keys)
  "Play the key sequence KEYS as if it was user input.

KEYS shall have the same format as in a call to function `kmacro'.

This macro should be expanded within the body of
`ert-with-buffer-selected' to select a buffer when keys KEYS start
commands acting on this buffer, or within the body of
`ert-with-test-buffer' used with `:selected' flag set."
  (funcall
    (kmacro keys)))