aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-14 18:02:55 +0000
committerRichard M. Stallman1993-05-14 18:02:55 +0000
commit8d7e4e80d82d72bc3891766b511b8c5bd834d95a (patch)
treed6573157b944f378f2c57261954edbbdd523e931
parent8ebafa8d4defedb95288b059b18bd1b82200b81d (diff)
downloademacs-8d7e4e80d82d72bc3891766b511b8c5bd834d95a.tar.gz
emacs-8d7e4e80d82d72bc3891766b511b8c5bd834d95a.zip
(isearch-mode-map): Handle any length vector in keymap.
(isearch-char-to-string): Handle non-character events properly.
-rw-r--r--lisp/isearch.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 389e21aa077..0fd896f1c70 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> 5;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu>
6 6
7;; |$Date: 1993/04/14 19:40:53 $|$Revision: 1.30 $ 7;; |$Date: 1993/04/23 07:31:14 $|$Revision: 1.31 $
8 8
9;; This file is not yet part of GNU Emacs, but it is based almost 9;; This file is not yet part of GNU Emacs, but it is based almost
10;; entirely on isearch.el which is part of GNU Emacs. 10;; entirely on isearch.el which is part of GNU Emacs.
@@ -92,8 +92,11 @@
92;;;==================================================================== 92;;;====================================================================
93;;; Change History 93;;; Change History
94 94
95;;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/isearch.el,v 1.30 1993/04/14 19:40:53 rms Exp eric $ 95;;; $Header: /home/fsf/rms/e19/lisp/RCS/isearch.el,v 1.31 1993/04/23 07:31:14 eric Exp rms $
96;;; $Log: isearch.el,v $ 96;;; $Log: isearch.el,v $
97; Revision 1.31 1993/04/23 07:31:14 eric
98; Replaced all fsets with defaliases.
99;
97; Revision 1.30 1993/04/14 19:40:53 rms 100; Revision 1.30 1993/04/14 19:40:53 rms
98; Doc fixes. 101; Doc fixes.
99; 102;
@@ -326,7 +329,9 @@ Default value, nil, means edit the string instead.")
326 329
327 ;; Printing chars extend the selection by default. 330 ;; Printing chars extend the selection by default.
328 (setq i ?\ ) 331 (setq i ?\ )
329 (while (< i 128) 332 (or (vectorp (nth 1 map))
333 (error "The initialization of isearch-mode-map must be updated"))
334 (while (< i (length (nth 1 map)))
330 (define-key map (make-string 1 i) 'isearch-printing-char) 335 (define-key map (make-string 1 i) 'isearch-printing-char)
331 (setq i (1+ i))) 336 (setq i (1+ i)))
332 337
@@ -1472,7 +1477,9 @@ have special meaning in a regexp."
1472(defun isearch-char-to-string (c) 1477(defun isearch-char-to-string (c)
1473 (if (integerp c) 1478 (if (integerp c)
1474 (make-string 1 c) 1479 (make-string 1 c)
1475 (make-string 1 (event-to-character c)))) 1480 (if (and (symbolp c) (get c 'ascii-character))
1481 (make-string 1 (get c 'ascii-character))
1482 (make-string 1 (event-to-character c)))))
1476 1483
1477(defun isearch-text-char-description (c) 1484(defun isearch-text-char-description (c)
1478 (isearch-char-to-string c)) 1485 (isearch-char-to-string c))