mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
re-search-forward to search-forward when no re
When no regular expression is present, it's faster and simpler to use search-forward Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
@ -107,7 +107,7 @@
|
||||
(with-temp-buffer
|
||||
(insert-file-contents-literally core-file)
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward "doom-version" nil t)
|
||||
(when (search-forward "doom-version" nil t)
|
||||
(forward-char)
|
||||
(sexp-at-point))))))
|
||||
"???")
|
||||
|
Reference in New Issue
Block a user