Function: hsys-consult-grep-headlines-read-regexp
hsys-consult-grep-headlines-read-regexp is a byte-compiled function
defined in hsys-consult.el.
Signature
(hsys-consult-grep-headlines-read-regexp GREP-FUNCTION PROMPT &optional REGEXP)
Documentation
With consult, use GREP-FUNCTION and PROMPT to completing read.
The optional REGEXP is an initial pattern for the grep. Suppress preview and return the selected "file:line:line-contents". GREP-FUNCTION must take these arguments: regexp max-matches path-list prompt.
Without consult, just read a REGEXP with PROMPT.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hsys-consult.el
(defun hsys-consult-grep-headlines-read-regexp (grep-function prompt
&optional regexp)
"With `consult', use GREP-FUNCTION and PROMPT to completing read.
The optional REGEXP is an initial pattern for the grep. Suppress
preview and return the selected \"file:line:line-contents\".
GREP-FUNCTION must take these arguments: regexp max-matches path-list
prompt.
Without `consult', just read a REGEXP with PROMPT."
(if (hsys-consult-active-p)
(substring-no-properties
(hsys-consult-get-exit-value
nil
#'hsys-consult-grep-headlines-with-prompt
grep-function
prompt
regexp))
(read-regexp (concat prompt ": ") regexp)))