Skip to content

Commit

Permalink
fix: Allow error while compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Oct 29, 2023
1 parent be7a0bb commit 2b18dc4
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 10 deletions.
12 changes: 11 additions & 1 deletion lisp/core/compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,22 @@
(locate-dominating-file dir "_prepare.el"))
nil t))

;; Handle options
;;
;;; Flags

(advice-add #'eask-allow-error-p :override #'always)

;;
;;; Handle options

(add-hook 'eask-before-command-hook
(lambda ()
(when (eask-strict-p) (setq byte-compile-error-on-warn t))
(when (= eask-verbosity 4) (setq byte-compile-verbose t))))

;;
;;; Core

(defconst eask-compile-log-buffer-name "*Compile-Log*"
"Byte-compile log buffer name.")

Expand Down
7 changes: 7 additions & 0 deletions lisp/extern/compat.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@
(push (concat dir "/" file) files)))))
(nconc result (nreverse files)))))

(eask-defvc< 28
(defun always (&rest _arguments)
"Ignore ARGUMENTS, do nothing, and return t.
This function accepts any number of arguments in ARGUMENTS.
Also see `ignore'."
t))

;;; extern/compat.el ends here
2 changes: 1 addition & 1 deletion lisp/lint/checkdoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/elint.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/elisp-lint.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/elsa.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/keywords.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/license.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/package.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
;;
;;; Flags

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

;;
;;; Handle options
Expand Down
2 changes: 1 addition & 1 deletion lisp/lint/regexps.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
;;
;;; Flags

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

;;
;;; Core
Expand Down

0 comments on commit 2b18dc4

Please sign in to comment.