branch: externals/company
commit ccd9d8ef5071a1d25daa91e13db463849358cffb
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Change the default for company-search-regexp-function to in-any-order
---
NEWS.md | 3 +++
company.el | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/NEWS.md b/NEWS.md
index 8c6a755708..f998529969 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,9 @@
# Next
+* `company-search-regexp-function` defaults to
+ `company-search-words-in-any-order-regexp`. That makes it similar to the
+ popular Orderless completion style.
* The `search` faces in the popup inherit from `isearch`.
* New option `company-global-minibuffer` for completion during
`eval-expression`
(`M-:`). The "pseudo-tooltip" frontend is not supported by this feature,
diff --git a/company.el b/company.el
index 37c956d9eb..69582bd080 100644
--- a/company.el
+++ b/company.el
@@ -2755,7 +2755,7 @@ For more details see `company-insertion-on-trigger' and
;;; search
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(defcustom company-search-regexp-function #'regexp-quote
+(defcustom company-search-regexp-function
#'company-search-words-in-any-order-regexp
"Function to construct the search regexp from input.
It's called with one argument, the current search input. It must return
either a regexp without groups, or one where groups don't intersect and