diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2014-02-26 04:02:21 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2014-02-26 04:02:21 +0200 |
commit | 40ff7f86b6e030763327fd306702ba0928e5b09e (patch) | |
tree | 640f91f67af9b6a0540aba669372d9140e394e26 /lisp/emacs-lisp/ert.el | |
parent | 0e46275b4d2f06f8d60302db2e94083d66349cbc (diff) | |
download | emacs-40ff7f86b6e030763327fd306702ba0928e5b09e.tar.gz |
* lisp/emacs-lisp/ert.el (ert-run-tests-interactively): `read' the
result of `completing-read' in the interactive form.
Fixes: debbugs:16854
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
-rw-r--r-- | lisp/emacs-lisp/ert.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index ee058a8f607..34041aab9a8 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1882,11 +1882,12 @@ and how to display message." ;; defined without cl. (car ert--selector-history) "t"))) - (completing-read (if (null default) - "Run tests: " - (format "Run tests (default %s): " default)) - obarray #'ert-test-boundp nil nil - 'ert--selector-history default nil)) + (read + (completing-read (if (null default) + "Run tests: " + (format "Run tests (default %s): " default)) + obarray #'ert-test-boundp nil nil + 'ert--selector-history default nil))) nil)) (unless message-fn (setq message-fn 'message)) (let ((output-buffer-name output-buffer-name) |