Function: hyrolo-previous-match

hyrolo-previous-match is an interactive and byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-previous-match)

Documentation

Move point back to the start of the previous HyRolo search match.

This could be the current match if point is past its hyrolo-match-regexp. Raise an error if a match is not found.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-previous-match ()
  "Move point back to the start of the previous HyRolo search match.
This could be the current match if point is past its `hyrolo-match-regexp'.
Raise an error if a match is not found."
  (interactive)
  (hyrolo-verify)
  (if hyrolo-match-regexp
      (let ((case-fold-search t)
            (start (point))
	    found)
	(while (and (re-search-backward hyrolo-match-regexp nil t)
		    (progn (setq found (hproperty:but-face-p
					(point) (list (or hyrolo-highlight-face
							  hproperty:highlight-face))))
			   (not found))))
	(if found
	    ;; !! TODO: Next line temporary until `reveal-mode' works properly
	    (hyrolo-outline-show-subtree)
	  (goto-char start)
	  (error
	   "(hyrolo-previous-match): No prior matches for \"%s\"" hyrolo-match-regexp)))
    (error (substitute-command-keys "(hyrolo-previous-match): Use {\\[hyrolo-grep-or-fgrep]} to do an initial search"))))