diff options
| author | Kenichi Handa | 2004-12-22 05:44:13 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-12-22 05:44:13 +0000 |
| commit | bc3f38d9656ba23a6f1192f0ddcd9763786dd91e (patch) | |
| tree | 8b35c3b35fdb7f3383c089608cbfd2c8712de9d6 /lisp | |
| parent | 56351784c9a8218c2187260d18fd501bdfa444ac (diff) | |
| download | emacs-bc3f38d9656ba23a6f1192f0ddcd9763786dd91e.tar.gz emacs-bc3f38d9656ba23a6f1192f0ddcd9763786dd91e.zip | |
(quail-start-translation): Fix prompt
string for the case if input-method-use-echo-area being non-nil.
(quail-start-conversion): Likewise.
(quail-show-guidance): Don't show guidance if
input-method-use-echo-area is non-nil.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/international/quail.el | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index d10e215881b..992f7ed56a6 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -1371,11 +1371,12 @@ Return the input string." | |||
| 1371 | (while quail-translating | 1371 | (while quail-translating |
| 1372 | (set-buffer-modified-p modified-p) | 1372 | (set-buffer-modified-p modified-p) |
| 1373 | (quail-show-guidance) | 1373 | (quail-show-guidance) |
| 1374 | (let* ((keyseq (read-key-sequence | 1374 | (let* ((prompt (if input-method-use-echo-area |
| 1375 | (and input-method-use-echo-area | 1375 | (format "%s%s %s" |
| 1376 | (concat input-method-previous-message | 1376 | (or input-method-previous-message "") |
| 1377 | quail-current-str)) | 1377 | quail-current-str |
| 1378 | nil nil t)) | 1378 | quail-guidance-str))) |
| 1379 | (keyseq (read-key-sequence prompt nil nil t)) | ||
| 1379 | (cmd (lookup-key (quail-translation-keymap) keyseq))) | 1380 | (cmd (lookup-key (quail-translation-keymap) keyseq))) |
| 1380 | (if (if key | 1381 | (if (if key |
| 1381 | (and (commandp cmd) (not (eq cmd 'quail-other-command))) | 1382 | (and (commandp cmd) (not (eq cmd 'quail-other-command))) |
| @@ -1436,12 +1437,13 @@ Return the input string." | |||
| 1436 | quail-translating t) | 1437 | quail-translating t) |
| 1437 | (quail-setup-overlays nil))) | 1438 | (quail-setup-overlays nil))) |
| 1438 | (quail-show-guidance) | 1439 | (quail-show-guidance) |
| 1439 | (let* ((keyseq (read-key-sequence | 1440 | (let* ((prompt (if input-method-use-echo-area |
| 1440 | (and input-method-use-echo-area | 1441 | (format "%s%s%s %s" |
| 1441 | (concat input-method-previous-message | 1442 | (or input-method-previous-message "") |
| 1442 | quail-conversion-str | 1443 | quail-conversion-str |
| 1443 | quail-current-str)) | 1444 | quail-current-str |
| 1444 | nil nil t)) | 1445 | quail-guidance-str))) |
| 1446 | (keyseq (read-key-sequence prompt nil nil t)) | ||
| 1445 | (cmd (lookup-key (quail-conversion-keymap) keyseq))) | 1447 | (cmd (lookup-key (quail-conversion-keymap) keyseq))) |
| 1446 | (if (if key (commandp cmd) (eq cmd 'quail-self-insert-command)) | 1448 | (if (if key (commandp cmd) (eq cmd 'quail-self-insert-command)) |
| 1447 | (progn | 1449 | (progn |
| @@ -1950,10 +1952,10 @@ minibuffer and the selected frame has no other windows)." | |||
| 1950 | 1952 | ||
| 1951 | ;; Then, show the guidance. | 1953 | ;; Then, show the guidance. |
| 1952 | (when (and (quail-require-guidance-buf) | 1954 | (when (and (quail-require-guidance-buf) |
| 1955 | (not input-method-use-echo-area) | ||
| 1953 | (null unread-command-events) | 1956 | (null unread-command-events) |
| 1954 | (null unread-post-input-method-events)) | 1957 | (null unread-post-input-method-events)) |
| 1955 | (if (or (eq (selected-window) (minibuffer-window)) | 1958 | (if (eq (selected-window) (minibuffer-window)) |
| 1956 | input-method-use-echo-area) | ||
| 1957 | (if (eq (minibuffer-window) (frame-root-window)) | 1959 | (if (eq (minibuffer-window) (frame-root-window)) |
| 1958 | ;; Use another frame. It is sure that we are using some | 1960 | ;; Use another frame. It is sure that we are using some |
| 1959 | ;; window system. | 1961 | ;; window system. |