Mercurial > emacs
comparison lisp/international/quail.el @ 42085:5d63f6ad7711
(quail-input-string-to-events): Fix last change.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 16 Dec 2001 19:13:41 +0000 |
parents | 281baedc1a99 |
children | 996e8ae50fc0 |
comparison
equal
deleted
inserted
replaced
42084:38fcd503c300 | 42085:5d63f6ad7711 |
---|---|
1268 (defun quail-input-string-to-events (str) | 1268 (defun quail-input-string-to-events (str) |
1269 "Convert input string STR to a list of events. | 1269 "Convert input string STR to a list of events. |
1270 Do so while interleaving with the following special events: | 1270 Do so while interleaving with the following special events: |
1271 \(compose-last-chars LEN COMPONENTS) | 1271 \(compose-last-chars LEN COMPONENTS) |
1272 \(quail-advice INPUT-STRING)" | 1272 \(quail-advice INPUT-STRING)" |
1273 (let* ((events (lambda (c) | 1273 (let* ((events |
1274 (mapcar (lambda (c) | |
1274 ;; This gives us the chance to unify on input | 1275 ;; This gives us the chance to unify on input |
1275 ;; (e.g. using ucs-tables.el). | 1276 ;; (e.g. using ucs-tables.el). |
1276 (or (and translation-table-for-input | 1277 (or (and translation-table-for-input |
1277 (aref translation-table-for-input c)) | 1278 (aref translation-table-for-input c)) |
1278 c))) | 1279 c)) |
1280 (string-to-list str))) | |
1279 (len (length str)) | 1281 (len (length str)) |
1280 (idx len) | 1282 (idx len) |
1281 composition from to) | 1283 composition from to) |
1282 (while (and (> idx 0) | 1284 (while (and (> idx 0) |
1283 (setq composition (find-composition idx 0 str t))) | 1285 (setq composition (find-composition idx 0 str t))) |