@@ -233,6 +233,7 @@ called with the positions of the start and the end of the text
233
233
matched by Isearch and replace commands. If this function
234
234
returns nil, Isearch and replace commands will continue searching
235
235
without stopping at resp. replacing this match.
236
+ This function is expected to be careful not to clobber the match data.
236
237
237
238
If you use `add-function' to modify this variable, you can use the
238
239
`isearch-message-prefix' advice property to specify the prefix string
@@ -3529,9 +3530,8 @@ Optional third argument, if t, means if fail just return nil (no error).
3529
3530
; ; Clear RETRY unless the search predicate says
3530
3531
; ; to skip this search hit.
3531
3532
(if (or (not isearch-success)
3532
- (save-match-data
3533
- (funcall isearch-filter-predicate
3534
- (match-beginning 0 ) (match-end 0 ))))
3533
+ (funcall isearch-filter-predicate
3534
+ (match-beginning 0 ) (match-end 0 )))
3535
3535
(setq retry nil )
3536
3536
; ; Advance point on empty matches before retrying
3537
3537
(when (= (match-beginning 0 ) (match-end 0 ))
@@ -4049,9 +4049,8 @@ Attempt to do the search exactly the way the pending Isearch would."
4049
4049
; ; to skip this search hit.
4050
4050
(if (or (not success )
4051
4051
(= (match-beginning 0 ) (match-end 0 ))
4052
- (save-match-data
4053
- (funcall isearch-filter-predicate
4054
- (match-beginning 0 ) (match-end 0 ))))
4052
+ (funcall isearch-filter-predicate
4053
+ (match-beginning 0 ) (match-end 0 )))
4055
4054
(setq retry nil )))
4056
4055
success )
4057
4056
(error nil )))
0 commit comments