[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult 28b7470311: consult-man: fix regexp type (#771)
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult 28b7470311: consult-man: fix regexp type (#771) |
Date: |
Wed, 22 Mar 2023 03:57:39 -0400 (EDT) |
branch: externals/consult
commit 28b74703113765137cc4639285e511bd73fd99e6
Author: Zhengyi <10750252+fuzy112@users.noreply.github.com>
Commit: GitHub <noreply@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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/consult 28b7470311: consult-man: fix regexp type (#771),
ELPA Syncer <=