[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 348e69b3a5 1/2: Enable lexical-binding for tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/lua-mode 348e69b3a5 1/2: Enable lexical-binding for tests as required by buttercup |
Date: |
Thu, 27 Oct 2022 10:58:57 -0400 (EDT) |
branch: elpa/lua-mode
commit 348e69b3a5b8b0ebaac1da8dfedcd4c7c79fe7d8
Author: Hilko Bengen <bengen@hilluzination.de>
Commit: Hilko Bengen <bengen@hilluzination.de>
Enable lexical-binding for tests as required by buttercup
Tests broke using buttercup 1.26, this commit fixes the breakage by
simply enabling lexical binding in all test-related files.
See also: https://github.com/jorgenschaefer/emacs-buttercup/issues/226
---
test/test-electric-mode.el | 2 +-
test/test-fill.el | 2 +-
test/test-font-lock.el | 2 +-
test/test-funcname-at-point.el | 2 +-
test/test-generic.el | 2 +-
test/test-indentation.el | 2 +-
test/test-inferior-process.el | 2 +-
test/test-process.el | 2 +-
test/test-strings-and-comments.el | 2 +-
test/utils.el | 3 ++-
10 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/test/test-electric-mode.el b/test/test-electric-mode.el
index d88b4a3dca..39a32bf8e1 100644
--- a/test/test-electric-mode.el
+++ b/test/test-electric-mode.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
diff --git a/test/test-fill.el b/test/test-fill.el
index 75089f8906..44de7619e7 100644
--- a/test/test-fill.el
+++ b/test/test-fill.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
"utils.el") nil 'nomessage 'nosuffix)
diff --git a/test/test-font-lock.el b/test/test-font-lock.el
index 8fbb9747fc..7fa5f58580 100644
--- a/test/test-font-lock.el
+++ b/test/test-font-lock.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
diff --git a/test/test-funcname-at-point.el b/test/test-funcname-at-point.el
index 0ca220a5a0..3368d1edf5 100644
--- a/test/test-funcname-at-point.el
+++ b/test/test-funcname-at-point.el
@@ -1,4 +1,4 @@
-;;; test-funcname-at-point.el --- Test `lua-funcname-at-point'
+;;; test-funcname-at-point.el --- Test `lua-funcname-at-point' -*-
lexical-binding:t -*-
;;; Commentary:
diff --git a/test/test-generic.el b/test/test-generic.el
index 796db3bee6..a4e1ac3a27 100644
--- a/test/test-generic.el
+++ b/test/test-generic.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
"utils.el") nil 'nomessage 'nosuffix)
diff --git a/test/test-indentation.el b/test/test-indentation.el
index d58150445f..fff9bdd6e6 100644
--- a/test/test-indentation.el
+++ b/test/test-indentation.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
;; -*- lexical-binding: t -*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
diff --git a/test/test-inferior-process.el b/test/test-inferior-process.el
index 2d160a078e..6a4083e731 100644
--- a/test/test-inferior-process.el
+++ b/test/test-inferior-process.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
"utils.el") nil 'nomessage 'nosuffix)
diff --git a/test/test-process.el b/test/test-process.el
index 5f3870e2b1..a6ab026cf4 100644
--- a/test/test-process.el
+++ b/test/test-process.el
@@ -1,4 +1,4 @@
-;;; test-funcname-at-point.el --- Test the repl functions
+;;; test-funcname-at-point.el --- Test the repl functions -*-
lexical-binding:t -*-
;;; Commentary:
diff --git a/test/test-strings-and-comments.el
b/test/test-strings-and-comments.el
index cf928ebe24..c2f334721a 100644
--- a/test/test-strings-and-comments.el
+++ b/test/test-strings-and-comments.el
@@ -1,4 +1,4 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
(load (concat (file-name-directory (or load-file-name (buffer-file-name)
default-directory))
diff --git a/test/utils.el b/test/utils.el
index b8f26be548..60515c7f74 100644
--- a/test/utils.el
+++ b/test/utils.el
@@ -1,4 +1,5 @@
-;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) -*-
+;; -*- flycheck-disabled-checkers: (emacs-lisp-checkdoc) ; lexical-binding:t
-*-
+
(require 'lua-mode)
(require 'buttercup)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/lua-mode 348e69b3a5 1/2: Enable lexical-binding for tests as required by buttercup,
ELPA Syncer <=