From 6aeffc0c0452fe2941925286de0279b28ed035c2 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Mon, 15 Apr 2024 18:04:35 -0700 Subject: [PATCH] Use eval in lexical scope to fix tests * Buttercup since 1.34 starts to support oclosure, so eval will be used in dynamic scope by default. * This patch ensures that eval is using lexical scope to retain previous behavior and fix tests in buttercup >=1.34. --- test/test-indentation.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-indentation.el b/test/test-indentation.el index fff9bdd..827ba23 100644 --- a/test/test-indentation.el +++ b/test/test-indentation.el @@ -46,7 +46,7 @@ (list (car alist-cons) (cdr alist-cons))) ;; cl-caddr here is to support Emacs<26 that don't have caddr. (cl-caddr x))) - (expect lua-code :to-be-reindented-the-same-way)))))) + (expect lua-code :to-be-reindented-the-same-way))) t))) (let* ((current-path (or load-file-name (buffer-file-name) default-directory)) (indentation-tests-dir (concat (file-name-directory current-path) "indentation-tests"))