diff options
| author | Kenichi Handa | 2004-04-20 07:06:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-04-20 07:06:58 +0000 |
| commit | fd7a117da0737cfda9bf016e36805c046268e7e8 (patch) | |
| tree | 4cd265f10fe676347dc16cfbe586d39091f1576e | |
| parent | 4ce2719dbb375450ba88d8aab4b4bb904d5af530 (diff) | |
| download | emacs-fd7a117da0737cfda9bf016e36805c046268e7e8.tar.gz emacs-fd7a117da0737cfda9bf016e36805c046268e7e8.zip | |
(quail-update-translation): Don't insert
such an unsupported multibyte char in a unibyte buffer.
| -rw-r--r-- | lisp/international/quail.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 2f275a59dca..cfd578fbc06 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -1524,6 +1524,28 @@ with more keys." | |||
| 1524 | (let (pos) | 1524 | (let (pos) |
| 1525 | (quail-delete-region) | 1525 | (quail-delete-region) |
| 1526 | (setq pos (point)) | 1526 | (setq pos (point)) |
| 1527 | (or enable-multibyte-characters | ||
| 1528 | (let (char) | ||
| 1529 | (if (stringp quail-current-str) | ||
| 1530 | (catch 'tag | ||
| 1531 | (mapc #'(lambda (ch) | ||
| 1532 | (when (/= (unibyte-char-to-multibyte | ||
| 1533 | (multibyte-char-to-unibyte ch)) | ||
| 1534 | ch) | ||
| 1535 | (setq char ch) | ||
| 1536 | (throw 'tag nil))) | ||
| 1537 | quail-current-str)) | ||
| 1538 | (if (/= (unibyte-char-to-multibyte | ||
| 1539 | (multibyte-char-to-unibyte quail-current-str)) | ||
| 1540 | quail-current-str) | ||
| 1541 | (setq char quail-current-str))) | ||
| 1542 | (when char | ||
| 1543 | (message "Can't input %c in the current unibyte buffer" char) | ||
| 1544 | (ding) | ||
| 1545 | (sit-for 2) | ||
| 1546 | (message nil) | ||
| 1547 | (setq quail-current-str nil) | ||
| 1548 | (throw 'quail-tag nil)))) | ||
| 1527 | (insert quail-current-str) | 1549 | (insert quail-current-str) |
| 1528 | (move-overlay quail-overlay pos (point)) | 1550 | (move-overlay quail-overlay pos (point)) |
| 1529 | (if (overlayp quail-conv-overlay) | 1551 | (if (overlayp quail-conv-overlay) |