# HG changeset patch # User Richard M. Stallman # Date 863582023 0 # Node ID 2fc1e383325991045561f68ced6de73c70306d7d # Parent 1a496d5712ec3d965658cca538b161a8f4beaa0b (isearch-process-search-char): Use multibyte characters to represent themselves. (isearch-mode-map): Make Latin-4 characters search for themselves. Use aset to set up these char sets. diff -r 1a496d5712ec -r 2fc1e3833259 lisp/isearch.el --- a/lisp/isearch.el Wed May 14 03:49:20 1997 +0000 +++ b/lisp/isearch.el Wed May 14 03:53:43 1997 +0000 @@ -211,11 +211,12 @@ (or (vectorp (nth 1 map)) (char-table-p (nth 1 map)) (error "The initialization of isearch-mode-map must be updated")) - ;; Make Latin-1, Latin-2 and Latin-3 characters + ;; Make Latin-1, Latin-2, Latin-3 and Latin-4 characters ;; search for themselves. - (set-char-table-range (nth 1 map) [129] 'isearch-printing-char) - (set-char-table-range (nth 1 map) [130] 'isearch-printing-char) - (set-char-table-range (nth 1 map) [131] 'isearch-printing-char) + (aset (nth 1 map) (make-char 'latin-iso8859-1) 'isearch-printing-char) + (aset (nth 1 map) (make-char 'latin-iso8859-2) 'isearch-printing-char) + (aset (nth 1 map) (make-char 'latin-iso8859-3) 'isearch-printing-char) + (aset (nth 1 map) (make-char 'latin-iso8859-4) 'isearch-printing-char) ;; Make function keys, etc, exit the search. (define-key map [t] 'isearch-other-control-char) ;; Control chars, by default, end isearch mode transparently. @@ -1164,7 +1165,9 @@ ;; Append the char to the search string, update the message and re-search. (isearch-process-search-string (isearch-char-to-string char) - (isearch-text-char-description char))) + (if (>= char 0200) + (char-to-string char) + (isearch-text-char-description char)))) (defun isearch-process-search-string (string message) (setq isearch-string (concat isearch-string string)