diff options
| author | Kenichi Handa | 2001-03-05 11:37:33 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-03-05 11:37:33 +0000 |
| commit | 341cd4f01db7f40a32c29d4c64741128d11b54c3 (patch) | |
| tree | 7ad8f23dba867e44d8a09cfe9847e945389cf824 | |
| parent | c28b847bfe2a0551f3c4808bc97d0c7a3198f989 (diff) | |
| download | emacs-341cd4f01db7f40a32c29d4c64741128d11b54c3.tar.gz emacs-341cd4f01db7f40a32c29d4c64741128d11b54c3.zip | |
(quail-title): Fix for the case that a title of an input method is
specified by a list of the same form as used in mode-line-format.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/international/quail.el | 17 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 47b890b69f5..6a5d0e4aefb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-03-05 Kenichi Handa <handa@etl.go.jp> | 1 | 2001-03-05 Kenichi Handa <handa@etl.go.jp> |
| 2 | 2 | ||
| 3 | * international/quail.el (quail-title): Fix for the case that a | ||
| 4 | title of an input method is specified by a list of the same form | ||
| 5 | as used in mode-line-format. | ||
| 6 | |||
| 3 | * international/mule-cmds.el (activate-input-method): If | 7 | * international/mule-cmds.el (activate-input-method): If |
| 4 | current-input-method-title is set by activating INPUT-METHOD, | 8 | current-input-method-title is set by activating INPUT-METHOD, |
| 5 | respect that value. | 9 | respect that value. |
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 6d26a01aa35..54712c31dcd 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -127,7 +127,22 @@ See the documentation of `quail-define-package' for the other elements.") | |||
| 127 | (nth 0 quail-current-package)) | 127 | (nth 0 quail-current-package)) |
| 128 | (defsubst quail-title () | 128 | (defsubst quail-title () |
| 129 | "Return the title of the current Quail package." | 129 | "Return the title of the current Quail package." |
| 130 | (nth 1 quail-current-package)) | 130 | (let ((title (nth 1 quail-current-package))) |
| 131 | ;; TITLE may be a string or a list. If it is a list, each element | ||
| 132 | ;; is a string or the form (VAR STR1 STR2), and the interpretation | ||
| 133 | ;; of the list is the same as that of mode-line-format. | ||
| 134 | (if (stringp title) | ||
| 135 | title | ||
| 136 | (condition-case nil | ||
| 137 | (mapconcat | ||
| 138 | (lambda (x) | ||
| 139 | (cond ((stringp x) x) | ||
| 140 | ((and (listp x) (symbolp (car x)) (= (length x) 3)) | ||
| 141 | (if (symbol-value (car x)) | ||
| 142 | (nth 1 x) (nth 2 x))) | ||
| 143 | (t ""))) | ||
| 144 | title "") | ||
| 145 | (error ""))))) | ||
| 131 | (defsubst quail-map () | 146 | (defsubst quail-map () |
| 132 | "Return the translation map of the current Quail package." | 147 | "Return the translation map of the current Quail package." |
| 133 | (nth 2 quail-current-package)) | 148 | (nth 2 quail-current-package)) |