# HG changeset patch # User Richard M. Stallman # Date 870721417 0 # Node ID 0f89b8543e1997e9cfa99f8d400748469f8029c0 # Parent 68b212facca8fef42d21967f5812fd890b9fc3e4 (isearch-quote-char): Fix handling of control characters, copied from quoted-insert. diff -r 68b212facca8 -r 0f89b8543e19 lisp/isearch.el --- a/lisp/isearch.el Mon Aug 04 18:56:42 1997 +0000 +++ b/lisp/isearch.el Mon Aug 04 19:03:37 1997 +0000 @@ -1164,8 +1164,15 @@ (defun isearch-quote-char () "Quote special characters for incremental search." (interactive) - (isearch-process-search-char (+ (read-quoted-char (isearch-message t)) - nonascii-insert-offset))) + (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. + (and enable-multibyte-characters + (>= char ?\200) + (<= char ?\377) + (setq char (+ char nonascii-insert-offset))) + (isearch-process-search-char char))) (defun isearch-return-char () "Convert return into newline for incremental search.