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:
parent
63d42c97bc
commit
11676b0153
1 changed files with 5 additions and 2 deletions
|
@ -226,8 +226,11 @@ 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)
|
||||
(replace-match filestr t t)))))
|
||||
(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
|
||||
(append (list doom-private-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue