elpa2nix: inline string-empty-p to support Emacs 26 (#352915)

This commit is contained in:
Lin Jian 2024-11-02 13:04:45 +08:00 committed by GitHub
commit 8190cd6c76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,9 +34,10 @@ The file can either be a tar file or an Emacs Lisp file."
(let ((flag (getenv "turnCompilationWarningToError")))
(when (and flag
(not (string-empty-p flag)))
;; we do not use `string-empty-p' because it requires subr-x in Emacs <= 26
(not (string= flag "")))
(setq byte-compile-error-on-warn t)))
(let ((flag (getenv "ignoreCompilationError")))
(when (string-empty-p flag)
(when (string= flag "")
(setq byte-compile-debug t)))