diff options
| author | Richard M. Stallman | 1997-05-12 23:18:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-12 23:18:40 +0000 |
| commit | 280e8e043d515a5def8040f74bb2b282c69c393b (patch) | |
| tree | 7f18e973f03e184a8f069d384751e94c7ec9bd44 | |
| parent | 3883fbebaa0039aa14b28302f64ab8f0752647d8 (diff) | |
| download | emacs-280e8e043d515a5def8040f74bb2b282c69c393b.tar.gz emacs-280e8e043d515a5def8040f74bb2b282c69c393b.zip | |
(isearch-mode-map): Treat Latin-1, Latin-2 an Latin-3
chars as printing characters.
| -rw-r--r-- | lisp/isearch.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 538cb6a3ed1..587b2146519 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -209,11 +209,13 @@ Default value, nil, means edit the string instead." | |||
| 209 | (let* ((i 0) | 209 | (let* ((i 0) |
| 210 | (map (make-keymap))) | 210 | (map (make-keymap))) |
| 211 | (or (vectorp (nth 1 map)) | 211 | (or (vectorp (nth 1 map)) |
| 212 | (char-table-p (nth 1 map)) | ||
| 212 | (error "The initialization of isearch-mode-map must be updated")) | 213 | (error "The initialization of isearch-mode-map must be updated")) |
| 213 | ;; Give this map a vector 256 long, for dense binding | 214 | ;; Make Latin-1, Latin-2 and Latin-3 characters |
| 214 | ;; of a larger range of ordinary characters. | 215 | ;; search for themselves. |
| 215 | (setcar (cdr map) (make-vector 256 nil)) | 216 | (set-char-table-range (nth 1 map) [129] 'isearch-printing-char) |
| 216 | 217 | (set-char-table-range (nth 1 map) [130] 'isearch-printing-char) | |
| 218 | (set-char-table-range (nth 1 map) [131] 'isearch-printing-char) | ||
| 217 | ;; Make function keys, etc, exit the search. | 219 | ;; Make function keys, etc, exit the search. |
| 218 | (define-key map [t] 'isearch-other-control-char) | 220 | (define-key map [t] 'isearch-other-control-char) |
| 219 | ;; Control chars, by default, end isearch mode transparently. | 221 | ;; Control chars, by default, end isearch mode transparently. |