Add Emacs version check to noninteractive session

Changing Emacs versions can cause incompatibilities. Doom now warns the
user about these.
This commit is contained in:
Henrik Lissner 2018-06-04 19:58:35 +02:00
parent 84c17b0413
commit ee154a3eb7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 31 additions and 2 deletions

View file

@ -122,7 +122,8 @@ modified."
doom-autoload-file))
(not (cl-loop for file in targets
if (file-newer-than-file-p file doom-autoload-file)
return t)))
return t))
(doom-same-emacs-version-p))
(ignore (print! (green "Doom core autoloads is up-to-date"))
(doom-initialize-autoloads doom-autoload-file))
(doom-delete-autoloads-file doom-autoload-file)
@ -202,7 +203,8 @@ This should be run whenever your `doom!' block or update your packages."
(cl-loop for key being the hash-keys of (doom-module-table)
for path = (doom-module-path (car key) (cdr key) "packages.el")
if (file-newer-than-file-p path doom-package-autoload-file)
return t))))
return t)))
(doom-same-emacs-version-p))
(ignore (print! (green "Doom package autoloads is up-to-date"))
(doom-initialize-autoloads doom-package-autoload-file))
(doom-delete-autoloads-file doom-package-autoload-file)