Skip to content

Commit 8f383f8

Browse files
authored
fix: Warning missing lexical-binding cookie in Eask-file (#320)
* fix: Warning missing lexical-binding cookie in Eask-file * chore: changelog * fix test * ci: elisp-autofmt minimum is now 29.1
1 parent f2ea3b2 commit 8f383f8

File tree

36 files changed

+95
-25
lines changed

36 files changed

+95
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1111
* fix(install): Package installed calculation (a479d5355dfc832286288b790338652e174d606d)
1212
* fix(install-file): Get correct install package name (#318)
1313
* feat: Add `:try` for `depends-on` DSL (#319)
14+
* fix: Warning missing `lexical-binding` cookie in Eask-file (#320)
1415

1516
## 0.11.x
1617
> Released Apr 03, 2025

Easkfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
;; -*- mode: eask; lexical-binding: t -*-
2+
13
(package "cli"
24
"0.11.2"
35
"A set of command-line tools to build Emacs packages")

lisp/_prepare.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ If nil, never time out."
112112
(const :tag "Never time out" nil))
113113
:group 'eask)
114114

115+
;; This is used to avoid the error:
116+
;;
117+
;; Ignoring unknown mode `eask-mode'.
118+
;;
119+
(unless (fboundp 'eask-mode)
120+
(define-derived-mode eask-mode emacs-lisp-mode "Eask"))
121+
115122
;;
116123
;;; Execution
117124

lisp/core/init.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ Press ^C at any time to quit.")
7676
(split-string keywords "[ \t\n]+" t "[ ]+")))
7777
(keywords (mapconcat (lambda (s) (format "%S" s)) keywords " "))
7878
(content (format
79-
"(package \"%s\"
79+
";; -*- mode: eask; lexical-binding: t -*-
80+
81+
(package \"%s\"
8082
\"%s\"
8183
\"%s\")
8284

lisp/format/elisp-autofmt.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
(kill-buffer))))
4646

4747
(eask-start
48-
(eask-command-check "28.1")
48+
(eask-command-check "29.1")
4949

5050
;; Preparation
5151
(eask-archive-install-packages '("gnu" "melpa")

lisp/init/cask.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ Optional argument CONTENTS is used for nested directives. e.g. development."
146146
(keywords (split-string keywords "[, ]"))
147147
(keywords (string-join keywords "\" \""))
148148
(content (format
149-
"(package \"%s\"
149+
";; -*- mode: eask; lexical-binding: t -*-
150+
151+
(package \"%s\"
150152
\"%s\"
151153
\"%s\")
152154

lisp/init/eldev.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
(keywords (split-string keywords "[, ]"))
5151
(keywords (string-join keywords "\" \""))
5252
(content (format
53-
"(package \"%s\"
53+
";; -*- mode: eask; lexical-binding: t -*-
54+
55+
(package \"%s\"
5456
\"%s\"
5557
\"%s\")
5658

lisp/init/keg.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ If no found the Keg file, returns nil."
7373
(keywords (split-string keywords "[, ]"))
7474
(keywords (string-join keywords "\" \""))
7575
(content (format
76-
"(package \"%s\"
76+
";; -*- mode: eask; lexical-binding: t -*-
77+
78+
(package \"%s\"
7779
\"%s\"
7880
\"%s\")
7981

lisp/init/source.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
(keywords (string-join keywords "\" \""))
4747
(reqs (package-desc-reqs pkg-desc))
4848
(content (format
49-
"(package \"%s\"
49+
";; -*- mode: eask; lexical-binding: t -*-
50+
51+
(package \"%s\"
5052
\"%s\"
5153
%s)
5254

test/color/Eask

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
;; -*- mode: eask; lexical-binding: t -*-
2+
13
(package "color"
24
"0.0.1"
35
"Test to print color on the terminal")

0 commit comments

Comments
 (0)