changeset 17794:2fc1e3833259

(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.
author Richard M. Stallman <rms@gnu.org>
date Wed, 14 May 1997 03:53:43 +0000
parents 1a496d5712ec
children 41b7d56b62fb
files lisp/isearch.el
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)