Use abbreviated, extension-less paths for autodefs

Decreases the size of doom-autoload-file, improves its portability and
fixes byte-compilation support for autodefs.
This commit is contained in:
Henrik Lissner 2018-06-26 18:33:25 +02:00
parent 81753150a7
commit 7d59b9c5a5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -485,7 +485,7 @@ even if it doesn't need reloading!"
((memq type '(defmacro cl-defmacro)) ((memq type '(defmacro cl-defmacro))
(push doom-file-form forms) (push doom-file-form forms)
sexp) sexp)
((make-autoload sexp path))) ((make-autoload sexp (abbreviate-file-name (file-name-sans-extension path)))))
forms) forms)
(push `(put ',name 'doom-module ',origin) forms)))) (push `(put ',name 'doom-module ',origin) forms))))