Mercurial > emacs
comparison lisp/isearch.el @ 24788:1d21edd48d82
(isearch-quote-char): Don't assume character codes
0200 - 0237 stand for characters in some single-byte character
charset.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 28 May 1999 00:16:09 +0000 |
parents | 102eb438b2e1 |
children | 7b31dd5d71bb |
comparison
equal
deleted
inserted
replaced
24787:9186fd78775b | 24788:1d21edd48d82 |
---|---|
1187 | 1187 |
1188 (defun isearch-quote-char () | 1188 (defun isearch-quote-char () |
1189 "Quote special characters for incremental search." | 1189 "Quote special characters for incremental search." |
1190 (interactive) | 1190 (interactive) |
1191 (let ((char (read-quoted-char (isearch-message t)))) | 1191 (let ((char (read-quoted-char (isearch-message t)))) |
1192 ;; Assume character codes 0200 - 0377 stand for | 1192 ;; Assume character codes 0240 - 0377 stand for characters in some |
1193 ;; European characters in Latin-1, and convert them | 1193 ;; single-byte character set, and convert them to Emacs |
1194 ;; to Emacs characters. | 1194 ;; characters. |
1195 (and enable-multibyte-characters | 1195 (and enable-multibyte-characters |
1196 (>= char ?\200) | 1196 (>= char ?\240) |
1197 (<= char ?\377) | 1197 (<= char ?\377) |
1198 (setq char (+ char nonascii-insert-offset))) | 1198 (setq char (unibyte-char-to-multibyte char))) |
1199 (isearch-process-search-char char))) | 1199 (isearch-process-search-char char))) |
1200 | 1200 |
1201 (defun isearch-return-char () | 1201 (defun isearch-return-char () |
1202 "Convert return into newline for incremental search. | 1202 "Convert return into newline for incremental search. |
1203 Obsolete." | 1203 Obsolete." |