]> git.eshelyaron.com Git - emacs.git/commitdiff
(isearch-quote-char): Don't assume character codes
authorKenichi Handa <handa@m17n.org>
Fri, 28 May 1999 00:16:09 +0000 (00:16 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 28 May 1999 00:16:09 +0000 (00:16 +0000)
0200 - 0237 stand for characters in some single-byte character
charset.

lisp/isearch.el

index aef204c02cc6cc3f2e12976cddaace3c7fcdc8f1..6164498de107050730b4830d99e097b8ff127487 100644 (file)
@@ -1189,13 +1189,13 @@ and the meta character is unread so that it applies to editing the string."
   "Quote special characters for incremental search."
   (interactive)
   (let ((char (read-quoted-char (isearch-message t))))
-    ;; Assume character codes 0200 - 0377 stand for 
-    ;; European characters in Latin-1, and convert them
-    ;; to Emacs characters.
+    ;; Assume character codes 0240 - 0377 stand for characters in some
+    ;; single-byte character set, and convert them to Emacs
+    ;; characters.
     (and enable-multibyte-characters
-        (>= char ?\200)
+        (>= char ?\240)
         (<= char ?\377)
-        (setq char (+ char nonascii-insert-offset)))
+        (setq char (unibyte-char-to-multibyte char)))
     (isearch-process-search-char char)))
 
 (defun isearch-return-char ()