branch: externals/consult commit 28b74703113765137cc4639285e511bd73fd99e6 Author: Zhengyi <10750252+fuzy...@users.noreply.github.com> Commit: GitHub <nore...@github.com>
consult-man: fix regexp type (#771) `man -k` is equivalent to `apropos`. According to the manpage `apropos (1)` defaults to interpret the patterns as extended regular expressions. --- consult.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consult.el b/consult.el index 37126e9c6b..1ad305e8ef 100644 --- a/consult.el +++ b/consult.el @@ -4970,10 +4970,10 @@ details regarding the asynchronous search." (defun consult--man-builder (input) "Build command line from INPUT." (pcase-let* ((`(,arg . ,opts) (consult--command-split input)) - (`(,re . ,hl) (funcall consult--regexp-compiler arg 'basic t))) + (`(,re . ,hl) (funcall consult--regexp-compiler arg 'extended t))) (when re (cons (append (consult--build-args consult-man-args) - (list (consult--join-regexps re 'basic)) + (list (consult--join-regexps re 'extended)) opts) hl))))