diff options
| author | Kenichi Handa | 1998-08-10 06:29:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-08-10 06:29:02 +0000 |
| commit | f6a0db107a507d1acc538cc595f8b7cffcaff8df (patch) | |
| tree | 7fc3d7fcc269b019a609a2b2408e34754d00df38 | |
| parent | a564ccf9333c5300b4de6271aea8f6f329a72f55 (diff) | |
| download | emacs-f6a0db107a507d1acc538cc595f8b7cffcaff8df.tar.gz emacs-f6a0db107a507d1acc538cc595f8b7cffcaff8df.zip | |
(quail-start-translation): If
enable-multibyte-characters is nil, convert multibyte character to
unibyte.
(quail-start-conversion): Likewise.
| -rw-r--r-- | lisp/international/quail.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 87b0ce350d4..8dae9fb627a 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -948,10 +948,11 @@ The returned value is a Quail map specific to KEY." | |||
| 948 | (quail-delete-region) | 948 | (quail-delete-region) |
| 949 | (if (and quail-current-str (> (length quail-current-str) 0)) | 949 | (if (and quail-current-str (> (length quail-current-str) 0)) |
| 950 | (setq generated-events | 950 | (setq generated-events |
| 951 | (if (stringp quail-current-str) | 951 | (append (string-to-list |
| 952 | (append (string-to-list quail-current-str) | 952 | (if enable-multibyte-characters |
| 953 | generated-events) | 953 | quail-current-str |
| 954 | (cons quail-current-str generated-events)))) | 954 | (string-make-unibyte quail-current-str))) |
| 955 | generated-events))) | ||
| 955 | (if (and input-method-exit-on-first-char generated-events) | 956 | (if (and input-method-exit-on-first-char generated-events) |
| 956 | (list (car generated-events)) | 957 | (list (car generated-events)) |
| 957 | generated-events)) | 958 | generated-events)) |
| @@ -1023,7 +1024,10 @@ The returned value is a Quail map specific to KEY." | |||
| 1023 | (overlay-end quail-conv-overlay))) | 1024 | (overlay-end quail-conv-overlay))) |
| 1024 | (if (> (length quail-conversion-str) 0) | 1025 | (if (> (length quail-conversion-str) 0) |
| 1025 | (setq generated-events | 1026 | (setq generated-events |
| 1026 | (append (string-to-list quail-conversion-str) | 1027 | (append (string-to-list |
| 1028 | (if enable-multibyte-characters | ||
| 1029 | quail-conversion-str | ||
| 1030 | (string-make-unibyte quail-conversion-str))) | ||
| 1027 | generated-events))) | 1031 | generated-events))) |
| 1028 | (if (and input-method-exit-on-first-char generated-events) | 1032 | (if (and input-method-exit-on-first-char generated-events) |
| 1029 | (list (car generated-events)) | 1033 | (list (car generated-events)) |