branch: elpa/with-simulated-input
commit 89e63ebf6abf25e47cbaabf83be5d801e857f4b2
Author: Nikita Bloshchanevich <[email protected]>
Commit: Nikita Bloshchanevich <[email protected]>
Fix tests for older Emacsen
Emacs < 27.1 cannot check all signals using `condition-case' `t'. Use
`error' as
HANDLER instead, which is good enough.
---
with-simulated-input.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/with-simulated-input.el b/with-simulated-input.el
index 03abc94f34..91d29bb969 100644
--- a/with-simulated-input.el
+++ b/with-simulated-input.el
@@ -123,7 +123,7 @@ the body form as a function."
(interactive)
(condition-case data
(funcall (pop actions))
- (t (throw error-sym data)))))
+ (error (throw error-sym data)))))
(catch result-sym
;; Signals are not passed trough `read-from-minibuffer'.
(let ((err (catch error-sym