Set revert-buffer-function in ert-results-mode
* lisp/emacs-lisp/ert.el (ert-results-mode): Set revert-buffer-function to re-run the same test selection. It is a good fit and permits use of the standard "g" key binding.
This commit is contained in:
parent
288e83ae00
commit
450fd8e570
1 changed files with 3 additions and 1 deletions
|
@ -2092,7 +2092,9 @@ and how to display message."
|
|||
;;; Commands and button actions for the results buffer.
|
||||
|
||||
(define-derived-mode ert-results-mode special-mode "ERT-Results"
|
||||
"Major mode for viewing results of ERT test runs.")
|
||||
"Major mode for viewing results of ERT test runs."
|
||||
(setq-local revert-buffer-function
|
||||
(lambda (&rest _) (ert-results-rerun-all-tests))))
|
||||
|
||||
(cl-loop for (key binding) in
|
||||
'( ;; Stuff that's not in the menu.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue