mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user