Fix #2299: void-function sp-point-in-string during 'doom refresh'

Due to use of third-party code before it is installed. Since we can be
sure that elisp has a sane syntax-table we do not need sophisticated
comment/string detection.
This commit is contained in:
Henrik Lissner 2020-01-03 05:20:45 -05:00
parent 63d42c97bc
commit 11676b0153
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -226,7 +226,10 @@ one wants that.")
;; `load-file-name' is meaningless in a concatenated
;; mega-autoloads file, so we replace references to it with the
;; file they came from.
(unless (doom-point-in-string-or-comment-p)
(or (save-excursion
(let ((ppss (syntax-ppss)))
(or (nth 3 ppss)
(nth 4 ppss))))
(replace-match filestr t t)))))
(let ((load-file-name file)
(load-path