mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-20 16:11:07 -05:00
Fix 'wrong-number-of-arguments autoload 9' error in autoloads
This error was caused by over-aggressive replacement of load-file-name in autoloads files. Instances of "load-file-name" would be replaced with a quoted file-path, even in strings and comments, which would break surrounding strings and docstrings. Mentioned in hlissner/doom-emacs@f8ff505
This commit is contained in:
@@ -232,7 +232,8 @@ it is nil, it will try to reload both."
|
|||||||
;; `load-file-name' is meaningless in a concatenated
|
;; `load-file-name' is meaningless in a concatenated
|
||||||
;; mega-autoloads file, so we replace references to it with the
|
;; mega-autoloads file, so we replace references to it with the
|
||||||
;; file they came from.
|
;; file they came from.
|
||||||
(replace-match filestr t t))))
|
(unless (doom-point-in-string-or-comment-p)
|
||||||
|
(replace-match filestr t t)))))
|
||||||
(let ((load-file-name file)
|
(let ((load-file-name file)
|
||||||
(load-path
|
(load-path
|
||||||
(append (list doom-private-dir)
|
(append (list doom-private-dir)
|
||||||
|
Reference in New Issue
Block a user