From 2f6e5d2eda006cfa65a6f4e2aa0d63e20a47c0ec Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 5 Nov 2025 09:14:43 +0200 Subject: [PATCH] * test/lisp/emacs-lisp/map-ynp-tests.el: Use 'eval-expression-debug-on-error'. (test-map-ynp-kmacro): Bind 'eval-expression-debug-on-error' to nil instead of silencing 'backtrace-print'. --- test/lisp/emacs-lisp/map-ynp-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lisp/emacs-lisp/map-ynp-tests.el b/test/lisp/emacs-lisp/map-ynp-tests.el index 6a9c8213791..4e88e5865fe 100644 --- a/test/lisp/emacs-lisp/map-ynp-tests.el +++ b/test/lisp/emacs-lisp/map-ynp-tests.el @@ -33,7 +33,7 @@ (ert-deftest test-map-ynp-kmacro () "Test that `map-y-or-n-p' in a kmacro terminates on end of input." - (cl-letf* (((symbol-function #'backtrace-print) (lambda ()))) ;; bug#67836 + (let ((eval-expression-debug-on-error nil)) ;; bug#67836 (execute-kbd-macro (read-kbd-macro "M-: (map-ynp-tests-simple-call) RET y")) (should-error (execute-kbd-macro (read-kbd-macro "M-: (map-ynp-tests-simple-call) RET")))