diff options
| author | Richard M. Stallman | 1993-05-18 15:46:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-18 15:46:30 +0000 |
| commit | fcf8ba158488458c58e8866239d8516547c97459 (patch) | |
| tree | 0cce495b4bf90c77ae4a5b081a3967b33216da76 | |
| parent | 096855a66a12083b635eeaff7771bb84e28d02e9 (diff) | |
| download | emacs-fcf8ba158488458c58e8866239d8516547c97459.tar.gz emacs-fcf8ba158488458c58e8866239d8516547c97459.zip | |
(isearch-mode-map): Extend the dense keymap to 256 chars.
| -rw-r--r-- | lisp/isearch.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index af294a8fffd..3b13442bdeb 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/05/15 20:05:36 $|$Revision: 1.33 $ | 7 | ;; |$Date: 1993/05/17 18:22:37 $|$Revision: 1.34 $ |
| 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: /home/fsf/rms/e19/lisp/RCS/isearch.el,v 1.33 1993/05/15 20:05:36 rms Exp rms $ | 95 | ;;; $Header: /home/fsf/rms/e19/lisp/RCS/isearch.el,v 1.34 1993/05/17 18:22:37 rms Exp rms $ |
| 96 | ;;; $Log: isearch.el,v $ | 96 | ;;; $Log: isearch.el,v $ |
| 97 | ; Revision 1.34 1993/05/17 18:22:37 rms | ||
| 98 | ; (isearch-mode): Set deactivate-mark. | ||
| 99 | ; | ||
| 97 | ; Revision 1.33 1993/05/15 20:05:36 rms | 100 | ; Revision 1.33 1993/05/15 20:05:36 rms |
| 98 | ; (isearch-done): Don't activate mark. | 101 | ; (isearch-done): Don't activate mark. |
| 99 | ; | 102 | ; |
| @@ -323,6 +326,11 @@ Default value, nil, means edit the string instead.") | |||
| 323 | (or isearch-mode-map | 326 | (or isearch-mode-map |
| 324 | (let* ((i 0) | 327 | (let* ((i 0) |
| 325 | (map (make-keymap))) | 328 | (map (make-keymap))) |
| 329 | (or (vectorp (nth 1 map)) | ||
| 330 | (error "The initialization of isearch-mode-map must be updated")) | ||
| 331 | ;; Give this map a vector 256 long, for dense binding | ||
| 332 | ;; of a larger range of ordinary characters. | ||
| 333 | (setcar (cdr map) (make-vector 256 nil)) | ||
| 326 | 334 | ||
| 327 | ;; Make function keys, etc, exit the search. | 335 | ;; Make function keys, etc, exit the search. |
| 328 | (define-key map [t] 'isearch-other-control-char) | 336 | (define-key map [t] 'isearch-other-control-char) |
| @@ -336,8 +344,6 @@ Default value, nil, means edit the string instead.") | |||
| 336 | 344 | ||
| 337 | ;; Printing chars extend the selection by default. | 345 | ;; Printing chars extend the selection by default. |
| 338 | (setq i ?\ ) | 346 | (setq i ?\ ) |
| 339 | (or (vectorp (nth 1 map)) | ||
| 340 | (error "The initialization of isearch-mode-map must be updated")) | ||
| 341 | (while (< i (length (nth 1 map))) | 347 | (while (< i (length (nth 1 map))) |
| 342 | (define-key map (make-string 1 i) 'isearch-printing-char) | 348 | (define-key map (make-string 1 i) 'isearch-printing-char) |
| 343 | (setq i (1+ i))) | 349 | (setq i (1+ i))) |