1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(isearch-printing-char): Handle nonascii-insert-offset.

This commit is contained in:
Richard M. Stallman 1997-08-28 00:33:03 +00:00
parent 02cf578193
commit af56433dc5

View File

@ -1178,9 +1178,14 @@ Obsolete."
(defun isearch-printing-char ()
"Add this ordinary printing character to the search string and search."
(interactive)
(if current-input-method
(isearch-process-search-multibyte-characters (isearch-last-command-char))
(isearch-process-search-char (isearch-last-command-char))))
(let ((char (isearch-last-command-char)))
(if (and enable-multibyte-characters
(>= char ?\200)
(<= char ?\377))
(isearch-process-search-char (+ char nonascii-insert-offset))
(if current-input-method
(isearch-process-search-multibyte-characters char)
(isearch-process-search-char char)))))
(defun isearch-whitespace-chars ()
"Match all whitespace chars, if in regexp mode.