From 0b2ab74346e8cdcc59e2d5626970deaff66e878d Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 27 Jul 2024 11:26:39 +0200 Subject: [PATCH] minibuffer.el: Default to 'regexp' style for 'search' completions --- lisp/minibuffer.el | 1 + lisp/search.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index bc4262fa0e3..f6b0ca5bd10 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -1176,6 +1176,7 @@ styles for specific categories, such as files, buffers, etc." ;; A new style that combines substring and pcm might be better, ;; e.g. one that does not anchor to bos. (project-file (styles substring)) + (search (styles regexp)) (xref-location (styles substring)) (info-menu (styles basic substring)) (symbol-help (styles basic shorthand substring)) diff --git a/lisp/search.el b/lisp/search.el index 837de96d22a..498a9a3adb2 100644 --- a/lisp/search.el +++ b/lisp/search.el @@ -26,11 +26,11 @@ ;;; Todo: ;; - Support multi-buffer `search'. -;; - Add regexp completion style and use it for `search' completion. ;; - Search non-matches. ;; - Highlight subgroups in matches. ;; - Improve documentation. ;; - Support toggling search case sensitivity. +;; - Lazy-highlight matches while reading search target. ;;; Code: -- 2.39.5