]> git.eshelyaron.com Git - emacs.git/commitdiff
minibuffer.el: Default to 'regexp' style for 'search' completions
authorEshel Yaron <me@eshelyaron.com>
Sat, 27 Jul 2024 09:26:39 +0000 (11:26 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 27 Jul 2024 12:03:02 +0000 (14:03 +0200)
lisp/minibuffer.el
lisp/search.el

index bc4262fa0e3e7161df4785d2384673d488925ec7..f6b0ca5bd109641f89ac9ebf0ad3bd51669303e9 100644 (file)
@@ -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))
index 837de96d22aa8c13bbcbbb7619a2230faedf06e3..498a9a3adb2341ad4f38bedee7a55434ae676d33 100644 (file)
 ;;; 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: