fix: doom-autoloads--scan: s/pfile/file

This typo is responsible of a startup error `delayed-warnings-hooks
void-variable warning-minimum-log-level`.

Fix: #8144
This commit is contained in:
emiltoacs
2024-11-04 17:31:11 +00:00
committed by GitHub
parent 7531c4298e
commit 1d3c2db274

View File

@ -182,7 +182,7 @@ non-nil, treat FILES as pre-generated autoload files instead."
;; Fixup the special #$ reader form and throw away comments. ;; Fixup the special #$ reader form and throw away comments.
(while (re-search-forward "#\\$\\|^;\\(.*\n\\)" nil 'move) (while (re-search-forward "#\\$\\|^;\\(.*\n\\)" nil 'move)
(unless (ppss-string-terminator (save-match-data (syntax-ppss))) (unless (ppss-string-terminator (save-match-data (syntax-ppss)))
(replace-match (if (match-end 1) "" pfile) t t)))) (replace-match (if (match-end 1) "" file) t t))))
(let ((load-file-name file) (let ((load-file-name file)
(load-path (load-path
(append (list doom-user-dir) (append (list doom-user-dir)