mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
elpa2nix: inline string-empty-p to support Emacs 26 (#352915)
This commit is contained in:
commit
8190cd6c76
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user