Remove emacs-version check in autoloads file

Now that the autoload file's path is namespaced by version, this check
is no longer necessary.
This commit is contained in:
Henrik Lissner
2020-10-29 02:02:37 -04:00
parent 2b023357ee
commit dbeaa8e238

View File

@@ -35,11 +35,7 @@ one wants that.")
(and (print! (start "Generating autoloads file...")) (and (print! (start "Generating autoloads file..."))
(doom-autoloads--write (doom-autoloads--write
file file
`((unless (equal emacs-major-version ,emacs-major-version) `((unless (equal doom-version ,doom-version)
(signal 'doom-error
(list "The installed version of Emacs has changed since last 'doom sync' ran"
"Run 'doom sync && doom build' to bring Doom up to speed")))
(unless (equal doom-version ,doom-version)
(signal 'doom-error (signal 'doom-error
(list "The installed version of Doom has changed since last 'doom sync' ran" (list "The installed version of Doom has changed since last 'doom sync' ran"
"Run 'doom sync' to bring Doom up to speed")))) "Run 'doom sync' to bring Doom up to speed"))))