diff options
author | Stefan Monnier <[email protected]> | 2004-12-06 15:12:08 +0000 |
---|---|---|
committer | Stefan Monnier <[email protected]> | 2004-12-06 15:12:08 +0000 |
commit | 30bb14430cc6dd9bc44a5b561e2addabc592f4b0 (patch) | |
tree | 327850d52c26b371a5a6a2338ceda06d5adf4014 /lisp/isearch.el | |
parent | df8e73e1657200f37cea7ea3d25f1b5f9ccd5842 (diff) |
(isearch-quote-char): Use it.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r-- | lisp/isearch.el | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 1057547cb3..118d23ce38 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1682,13 +1682,9 @@ Isearch mode." ;; single-byte character set, and convert them to Emacs ;; characters. (if (and isearch-regexp (= char ?\ )) - (if (condition-case err - (progn - (string-match isearch-string "") - nil) - (error (equal (cadr err) "Unmatched [ or [^"))) - (isearch-process-search-char char) - (isearch-process-search-string "[ ]" " ")) + (if (subregexp-context-p isearch-string pos) + (isearch-process-search-string "[ ]" " ") + (isearch-process-search-char char)) (and enable-multibyte-characters (>= char ?\200) (<= char ?\377) |