File: 0001-eval-in-lexical-scope.patch

package info (click to toggle)
lua-mode 20250310~git.2f6b8d7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: lisp: 3,186; makefile: 40; sh: 21
file content (27 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Xiyue Deng <manphiz@gmail.com>
Date: Mon, 16 Sep 2024 20:15:23 -0700
Subject: eval in lexical scope

Bug-Debian: https://bugs.debian.org/1069073
Forwarded: https://github.com/immerrr/lua-mode/pull/214
Last-Update: 2024-04-15

* Buttercup since 1.34 starts to support oclosures, so we need to
ensure eval in lexical scope to retain previous behavior.
---
 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"))