diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-20 22:34:48 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-20 22:34:48 -0700 |
commit | 6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef (patch) | |
tree | f7ff137da14c352412ee3dc3fbcaf1316428fd97 /lisp/emacs-lisp/ert.el | |
parent | 81e56e612dab7d80485c640068531710a713d205 (diff) | |
parent | 77185bdf91d42fb19c02af0f51ce63280ce911a0 (diff) | |
download | emacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.tar.gz emacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.tar.bz2 emacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.zip |
Merge from trunk and from gnulib stdio.
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
-rw-r--r-- | lisp/emacs-lisp/ert.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index 5bd8fd01b1e..b2e20843856 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1482,9 +1482,8 @@ Returns the stats object." (let ((print-escape-newlines t) (print-level 5) (print-length 10)) - (let ((begin (point))) - (ert--pp-with-indentation-and-newline - (ert-test-result-with-condition-condition result)))) + (ert--pp-with-indentation-and-newline + (ert-test-result-with-condition-condition result))) (goto-char (1- (point-max))) (assert (looking-at "\n")) (delete-char 1) @@ -1603,7 +1602,7 @@ Nothing more than an interactive interface to `ert-make-test-unbound'." (defun ert-delete-all-tests () "Make all symbols in `obarray' name no test." (interactive) - (when (interactive-p) + (when (called-interactively-p 'any) (unless (y-or-n-p "Delete all tests? ") (error "Aborted"))) ;; We can't use `ert-select-tests' here since that gives us only @@ -1793,7 +1792,7 @@ EWOC and STATS are arguments for `ert--results-update-stats-display'." BEGIN and END specify a region in the current buffer." (save-excursion (save-restriction - (narrow-to-region begin (point)) + (narrow-to-region begin end) ;; Inhibit optimization in `debugger-make-xrefs' that would ;; sometimes insert unrelated backtrace info into our buffer. (let ((debugger-previous-backtrace nil)) |