emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/with-simulated-input 89e63ebf6a 073/134: Fix tests for old


From: ELPA Syncer
Subject: [nongnu] elpa/with-simulated-input 89e63ebf6a 073/134: Fix tests for older Emacsen
Date: Mon, 10 Jan 2022 23:00:06 -0500 (EST)

branch: elpa/with-simulated-input
commit 89e63ebf6abf25e47cbaabf83be5d801e857f4b2
Author: Nikita Bloshchanevich <nikblos@outlook.com>
Commit: Nikita Bloshchanevich <nikblos@outlook.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]