]> code.delx.au - gnu-emacs/blobdiff - lisp/isearch.el
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-57
[gnu-emacs] / lisp / isearch.el
index 45ac5b4d2864d94edd7cda622fe1748b4a9d468a..0d1d7e32cdefe032199a2a6efbe9340b8168f741 100644 (file)
@@ -202,15 +202,11 @@ Default value, nil, means edit the string instead."
 (defvar isearch-mode-map
   (let* ((i 0)
         (map (make-keymap)))
-    (or (vectorp (nth 1 map))
-       (char-table-p (nth 1 map))
+    (or (char-table-p (nth 1 map))
        (error "The initialization of isearch-mode-map must be updated"))
     ;; Make all multibyte characters search for themselves.
-    (let ((l (generic-character-list))
-         (table (nth 1 map)))
-      (while l
-       (set-char-table-default table (car l) 'isearch-printing-char)
-       (setq l (cdr l))))
+    (set-char-table-range (nth 1 map) (cons #x100 (max-char))
+                         'isearch-printing-char)
     ;; Make function keys, etc, which aren't bound to a scrolling-function
     ;; exit the search.
     (define-key map [t] 'isearch-other-control-char)