diff options
| author | Kenichi Handa | 2004-04-20 08:20:26 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-04-20 08:20:26 +0000 |
| commit | 5b6156fa6a66b32c9b5fbf8e7cc6e01ec85c9250 (patch) | |
| tree | 8dbe8f4376576f7338bfaa3738be3c8f1e5444c8 | |
| parent | a19788b1397908fc815956810440f6d85c0a1406 (diff) | |
| download | emacs-5b6156fa6a66b32c9b5fbf8e7cc6e01ec85c9250.tar.gz emacs-5b6156fa6a66b32c9b5fbf8e7cc6e01ec85c9250.zip | |
(quail-lookup-key): New optional arg
NOT-RESET-INDICES.
(quail-get-translations): Call quail-lookup-key with
NOT-RESET-INDICES t.
(quail-completion): Likewise.
(quail-lookup-map-and-concat): Likewise.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/international/quail.el | 10 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 575cb590008..e637f78d2ae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2004-04-20 Kenichi Handa <handa@m17n.org> | 1 | 2004-04-20 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | * international/quail.el (quail-lookup-key): New optional arg | ||
| 4 | NOT-RESET-INDICES. | ||
| 5 | (quail-get-translations): Call quail-lookup-key with | ||
| 6 | NOT-RESET-INDICES t. | ||
| 7 | (quail-completion): Likewise. | ||
| 8 | (quail-lookup-map-and-concat): Likewise. | ||
| 9 | |||
| 10 | 2004-04-20 Kenichi Handa <handa@m17n.org> | ||
| 11 | |||
| 3 | * international/quail.el (quail-update-translation): Don't insert | 12 | * international/quail.el (quail-update-translation): Don't insert |
| 4 | such an unsupported multibyte char in a unibyte buffer. | 13 | such an unsupported multibyte char in a unibyte buffer. |
| 5 | 14 | ||
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index cfd578fbc06..9e289c300d9 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -1218,7 +1218,7 @@ selected translation." | |||
| 1218 | (t | 1218 | (t |
| 1219 | (error "Invalid object in Quail map: %s" def)))) | 1219 | (error "Invalid object in Quail map: %s" def)))) |
| 1220 | 1220 | ||
| 1221 | (defun quail-lookup-key (key &optional len) | 1221 | (defun quail-lookup-key (key &optional len not-reset-indices) |
| 1222 | "Lookup KEY of length LEN in the current Quail map and return the definition. | 1222 | "Lookup KEY of length LEN in the current Quail map and return the definition. |
| 1223 | The returned value is a Quail map specific to KEY." | 1223 | The returned value is a Quail map specific to KEY." |
| 1224 | (or len | 1224 | (or len |
| @@ -1256,7 +1256,7 @@ The returned value is a Quail map specific to KEY." | |||
| 1256 | (if (and (consp translation) (vectorp (cdr translation))) | 1256 | (if (and (consp translation) (vectorp (cdr translation))) |
| 1257 | (progn | 1257 | (progn |
| 1258 | (setq quail-current-translations translation) | 1258 | (setq quail-current-translations translation) |
| 1259 | (if (quail-forget-last-selection) | 1259 | (if (and (not not-reset-indices) (quail-forget-last-selection)) |
| 1260 | (setcar (car quail-current-translations) 0)))))) | 1260 | (setcar (car quail-current-translations) 0)))))) |
| 1261 | ;; We may have to reform cdr part of MAP. | 1261 | ;; We may have to reform cdr part of MAP. |
| 1262 | (if (and (cdr map) (functionp (cdr map))) | 1262 | (if (and (cdr map) (functionp (cdr map))) |
| @@ -2043,7 +2043,7 @@ minibuffer and the selected frame has no other windows)." | |||
| 2043 | 2043 | ||
| 2044 | (defun quail-get-translations () | 2044 | (defun quail-get-translations () |
| 2045 | "Return a string containing the current possible translations." | 2045 | "Return a string containing the current possible translations." |
| 2046 | (let ((map (quail-lookup-key quail-current-key)) | 2046 | (let ((map (quail-lookup-key quail-current-key nil t)) |
| 2047 | (str (copy-sequence quail-current-key))) | 2047 | (str (copy-sequence quail-current-key))) |
| 2048 | (if quail-current-translations | 2048 | (if quail-current-translations |
| 2049 | (quail-update-current-translations)) | 2049 | (quail-update-current-translations)) |
| @@ -2114,7 +2114,7 @@ are shown (at most to the depth specified `quail-completion-max-depth')." | |||
| 2114 | (quail-setup-completion-buf) | 2114 | (quail-setup-completion-buf) |
| 2115 | (let ((win (get-buffer-window quail-completion-buf 'visible)) | 2115 | (let ((win (get-buffer-window quail-completion-buf 'visible)) |
| 2116 | (key quail-current-key) | 2116 | (key quail-current-key) |
| 2117 | (map (quail-lookup-key quail-current-key)) | 2117 | (map (quail-lookup-key quail-current-key nil t)) |
| 2118 | (require-update nil)) | 2118 | (require-update nil)) |
| 2119 | (with-current-buffer quail-completion-buf | 2119 | (with-current-buffer quail-completion-buf |
| 2120 | (if (and win | 2120 | (if (and win |
| @@ -2695,7 +2695,7 @@ function `quail-install-map' (which see)." | |||
| 2695 | (translation-list nil) | 2695 | (translation-list nil) |
| 2696 | map) | 2696 | map) |
| 2697 | (while (> len 0) | 2697 | (while (> len 0) |
| 2698 | (setq map (quail-lookup-key key len) | 2698 | (setq map (quail-lookup-key key len t) |
| 2699 | len (1- len)) | 2699 | len (1- len)) |
| 2700 | (if map | 2700 | (if map |
| 2701 | (let* ((def (quail-map-definition map)) | 2701 | (let* ((def (quail-map-definition map)) |