diff options
Diffstat (limited to 'lisp/isearch.el')
| -rw-r--r-- | lisp/isearch.el | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index eb5e5baf0b9..6cbe612d72e 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2643,16 +2643,23 @@ Can be changed via `isearch-search-fun-function' for special needs." | |||
| 2643 | (isearch-regexp isearch-regexp-lax-whitespace) | 2643 | (isearch-regexp isearch-regexp-lax-whitespace) |
| 2644 | (t isearch-lax-whitespace)) | 2644 | (t isearch-lax-whitespace)) |
| 2645 | search-whitespace-regexp))) | 2645 | search-whitespace-regexp))) |
| 2646 | (funcall | 2646 | (condition-case er |
| 2647 | (if isearch-forward #'re-search-forward #'re-search-backward) | 2647 | (funcall |
| 2648 | (cond (isearch-regexp-function | 2648 | (if isearch-forward #'re-search-forward #'re-search-backward) |
| 2649 | (let ((lax (isearch--lax-regexp-function-p))) | 2649 | (cond (isearch-regexp-function |
| 2650 | (if (functionp isearch-regexp-function) | 2650 | (let ((lax (isearch--lax-regexp-function-p))) |
| 2651 | (funcall isearch-regexp-function string lax) | 2651 | (if (functionp isearch-regexp-function) |
| 2652 | (word-search-regexp string lax)))) | 2652 | (funcall isearch-regexp-function string lax) |
| 2653 | (isearch-regexp string) | 2653 | (word-search-regexp string lax)))) |
| 2654 | (t (regexp-quote string))) | 2654 | (isearch-regexp string) |
| 2655 | bound noerror count)))) | 2655 | (t (regexp-quote string))) |
| 2656 | bound noerror count) | ||
| 2657 | (search-failed | ||
| 2658 | (signal (car er) | ||
| 2659 | (let ((prefix (get isearch-regexp-function 'isearch-message-prefix))) | ||
| 2660 | (if (and isearch-regexp-function (stringp prefix)) | ||
| 2661 | (list (format "%s [using %ssearch]" string prefix)) | ||
| 2662 | (cdr er))))))))) | ||
| 2656 | 2663 | ||
| 2657 | (defun isearch-search-string (string bound noerror) | 2664 | (defun isearch-search-string (string bound noerror) |
| 2658 | "Search for the first occurrence of STRING or its translation. | 2665 | "Search for the first occurrence of STRING or its translation. |