Function: cider-repl-history-search-forward
cider-repl-history-search-forward is an interactive and byte-compiled
function defined in cider-repl-history.el.
Signature
(cider-repl-history-search-forward REGEXP &optional BACKWARDS)
Documentation
Move to the next command history entry matching REGEXP from point.
If optional arg BACKWARDS is non-nil, move to the previous matching entry.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl-history.el
(defun cider-repl-history-search-forward (regexp &optional backwards)
"Move to the next command history entry matching REGEXP from point.
If optional arg BACKWARDS is non-nil, move to the previous matching
entry."
(interactive
(list (cider-repl-history-read-regexp "Search forward" t)
current-prefix-arg))
(let ((orig (point)))
(cider-repl-history-forward (if backwards -1 1))
(let ((over (cider-repl-history-target-overlay-at (point) t)))
(while (and over
(not (if backwards (bobp) (eobp)))
(not (string-match regexp
(overlay-get over
'cider-repl-history-target))))
(cider-repl-history-forward (if backwards -1 1))
(setq over (cider-repl-history-target-overlay-at (point) t)))
(unless (and over
(string-match regexp
(overlay-get over
'cider-repl-history-target)))
(goto-char orig)
(message "No more command history entries matching %s" regexp)))))