Don't insert autoloads literally #2281

It causes encoding issues.
This commit is contained in:
Henrik Lissner 2020-01-01 03:01:30 -05:00
parent 445ba1a46d
commit 4a53f0818d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -225,7 +225,7 @@ it is nil, it will try to reload both."
(with-temp-buffer (with-temp-buffer
(if scan (if scan
(doom-cli--generate-autoloads-buffer file) (doom-cli--generate-autoloads-buffer file)
(insert-file-contents-literally file)) (insert-file-contents file))
(save-excursion (save-excursion
(let ((filestr (prin1-to-string file))) (let ((filestr (prin1-to-string file)))
(while (re-search-forward "\\_<load-file-name\\_>" nil t) (while (re-search-forward "\\_<load-file-name\\_>" nil t)