;; Keywords: extensions, matching, mouse
;; Created: Thu Mar 28 13:48:23 1991
;; Keywords: extensions, matching, mouse
;; Created: Thu Mar 28 13:48:23 1991
;; matches that straddle the start position so we search forwards once
;; and then back repeatedly and then back up a char at a time.
;; matches that straddle the start position so we search forwards once
;; and then back repeatedly and then back up a char at a time.
"Return non-nil if point is in or just after a match for REGEXP.
Set the match data from the earliest such match ending at or after
point."
(save-excursion
"Return non-nil if point is in or just after a match for REGEXP.
Set the match data from the earliest such match ending at or after
point."
(save-excursion
(and (looking-at regexp)
(>= (match-end 0) old-point)
(setq match (point)))
;; Search back repeatedly from end of next match.
;; This may fail if next match ends before this match does.
(and (looking-at regexp)
(>= (match-end 0) old-point)
(setq match (point)))
;; Search back repeatedly from end of next match.
;; This may fail if next match ends before this match does.
(or (> (match-beginning 0) old-point)
(and (looking-at regexp) ; Extend match-end past search start
(>= (match-end 0) old-point)
(or (> (match-beginning 0) old-point)
(and (looking-at regexp) ; Extend match-end past search start
(>= (match-end 0) old-point)