refactor!: remove pcre2el package

BREAKING CHANGE: This removes the pcre2el package, which Doom was using
solely for one function to escape PCREs. In the interest of thinning out
Doom's core, I've hoisted a simpler version of the function into Doom's
stdlib so I can remove the dependency.
This commit is contained in:
Henrik Lissner 2024-07-01 02:02:08 -04:00
parent f9dfb7e92a
commit 481753bd5e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
5 changed files with 20 additions and 6 deletions

View file

@ -63,7 +63,7 @@ input and search the whole buffer for it."
(consult-line
(replace-regexp-in-string
" " "\\\\ "
(rxt-quote-pcre
(doom-pcre-quote
(buffer-substring-no-properties start end))))
(call-interactively #'consult-line)))))))
@ -98,7 +98,7 @@ If prefix ARG is set, include ignored/hidden files."
"Search current project for symbol at point.
If prefix ARG is set, prompt for a known project to search from."
(interactive
(list (rxt-quote-pcre (or (doom-thing-at-point-or-region) ""))
(list (doom-pcre-quote (or (doom-thing-at-point-or-region) ""))
(let ((projectile-project-root nil))
(if current-prefix-arg
(if-let (projects (projectile-relevant-known-projects))
@ -118,7 +118,7 @@ If prefix ARG is set, prompt for a known project to search from."
"Conduct a text search in the current project for symbol at point. If prefix
ARG is set, prompt for a known project to search from."
(interactive
(list (rxt-quote-pcre (or (doom-thing-at-point-or-region) ""))))
(list (doom-pcre-quote (or (doom-thing-at-point-or-region) ""))))
(require 'org)
(+default/search-project-for-symbol-at-point
symbol org-directory))