Skip to content

Commit 2b18dc4

Browse files
committed
fix: Allow error while compiling
1 parent be7a0bb commit 2b18dc4

File tree

11 files changed

+27
-10
lines changed

11 files changed

+27
-10
lines changed

lisp/core/compile.el

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,22 @@
1919
(locate-dominating-file dir "_prepare.el"))
2020
nil t))
2121

22-
;; Handle options
22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override #'always)
26+
27+
;;
28+
;;; Handle options
29+
2330
(add-hook 'eask-before-command-hook
2431
(lambda ()
2532
(when (eask-strict-p) (setq byte-compile-error-on-warn t))
2633
(when (= eask-verbosity 4) (setq byte-compile-verbose t))))
2734

35+
;;
36+
;;; Core
37+
2838
(defconst eask-compile-log-buffer-name "*Compile-Log*"
2939
"Byte-compile log buffer name.")
3040

lisp/extern/compat.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@
4444
(push (concat dir "/" file) files)))))
4545
(nconc result (nreverse files)))))
4646

47+
(eask-defvc< 28
48+
(defun always (&rest _arguments)
49+
"Ignore ARGUMENTS, do nothing, and return t.
50+
This function accepts any number of arguments in ARGUMENTS.
51+
Also see `ignore'."
52+
t))
53+
4754
;;; extern/compat.el ends here

lisp/lint/checkdoc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
;;
3131
;;; Flags
3232

33-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
33+
(advice-add #'eask-allow-error-p :override #'always)
3434

3535
;;
3636
;;; Core

lisp/lint/elint.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
;;
2828
;;; Flags
2929

30-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
30+
(advice-add #'eask-allow-error-p :override #'always)
3131

3232
;;
3333
;;; Core

lisp/lint/elisp-lint.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
;;
2828
;;; Flags
2929

30-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
30+
(advice-add #'eask-allow-error-p :override #'always)
3131

3232
;;
3333
;;; Core

lisp/lint/elsa.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
;;
3434
;;; Flags
3535

36-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
36+
(advice-add #'eask-allow-error-p :override #'always)
3737

3838
;;
3939
;;; Core

lisp/lint/indent.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
;;
2323
;;; Flags
2424

25-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
25+
(advice-add #'eask-allow-error-p :override #'always)
2626

2727
;;
2828
;;; Core

lisp/lint/keywords.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
;;
1818
;;; Flags
1919

20-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
20+
(advice-add #'eask-allow-error-p :override #'always)
2121

2222
;;
2323
;;; Core

lisp/lint/license.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
;;
1818
;;; Flags
1919

20-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
20+
(advice-add #'eask-allow-error-p :override #'always)
2121

2222
;;
2323
;;; Core

lisp/lint/package.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
;;
2828
;;; Flags
2929

30-
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
30+
(advice-add #'eask-allow-error-p :override #'always)
3131

3232
;;
3333
;;; Handle options

0 commit comments

Comments
 (0)