diff options
| author | Richard M. Stallman | 1997-05-14 03:53:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-14 03:53:43 +0000 |
| commit | 01a6ef79efbf0821bab7adbbae77c1f90870455e (patch) | |
| tree | 257dd0c91dd367a8c7cbd02f15e95a1b9a52f3a6 | |
| parent | 5a0c40ea122438c1e019a8c123feb9bb0c66389f (diff) | |
| download | emacs-01a6ef79efbf0821bab7adbbae77c1f90870455e.tar.gz emacs-01a6ef79efbf0821bab7adbbae77c1f90870455e.zip | |
(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.
| -rw-r--r-- | lisp/isearch.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 587b2146519..6a4d1b82d58 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -211,11 +211,12 @@ Default value, nil, means edit the string instead." | |||
| 211 | (or (vectorp (nth 1 map)) | 211 | (or (vectorp (nth 1 map)) |
| 212 | (char-table-p (nth 1 map)) | 212 | (char-table-p (nth 1 map)) |
| 213 | (error "The initialization of isearch-mode-map must be updated")) | 213 | (error "The initialization of isearch-mode-map must be updated")) |
| 214 | ;; Make Latin-1, Latin-2 and Latin-3 characters | 214 | ;; Make Latin-1, Latin-2, Latin-3 and Latin-4 characters |
| 215 | ;; search for themselves. | 215 | ;; search for themselves. |
| 216 | (set-char-table-range (nth 1 map) [129] 'isearch-printing-char) | 216 | (aset (nth 1 map) (make-char 'latin-iso8859-1) 'isearch-printing-char) |
| 217 | (set-char-table-range (nth 1 map) [130] 'isearch-printing-char) | 217 | (aset (nth 1 map) (make-char 'latin-iso8859-2) 'isearch-printing-char) |
| 218 | (set-char-table-range (nth 1 map) [131] 'isearch-printing-char) | 218 | (aset (nth 1 map) (make-char 'latin-iso8859-3) 'isearch-printing-char) |
| 219 | (aset (nth 1 map) (make-char 'latin-iso8859-4) 'isearch-printing-char) | ||
| 219 | ;; Make function keys, etc, exit the search. | 220 | ;; Make function keys, etc, exit the search. |
| 220 | (define-key map [t] 'isearch-other-control-char) | 221 | (define-key map [t] 'isearch-other-control-char) |
| 221 | ;; Control chars, by default, end isearch mode transparently. | 222 | ;; Control chars, by default, end isearch mode transparently. |
| @@ -1164,7 +1165,9 @@ If you want to search for just a space, type C-q SPC." | |||
| 1164 | ;; Append the char to the search string, update the message and re-search. | 1165 | ;; Append the char to the search string, update the message and re-search. |
| 1165 | (isearch-process-search-string | 1166 | (isearch-process-search-string |
| 1166 | (isearch-char-to-string char) | 1167 | (isearch-char-to-string char) |
| 1167 | (isearch-text-char-description char))) | 1168 | (if (>= char 0200) |
| 1169 | (char-to-string char) | ||
| 1170 | (isearch-text-char-description char)))) | ||
| 1168 | 1171 | ||
| 1169 | (defun isearch-process-search-string (string message) | 1172 | (defun isearch-process-search-string (string message) |
| 1170 | (setq isearch-string (concat isearch-string string) | 1173 | (setq isearch-string (concat isearch-string string) |