diff options
| author | Kenichi Handa | 1997-05-12 06:59:23 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-05-12 06:59:23 +0000 |
| commit | 7e22bdd8f92f8883c9f05b4c83f451dfb6e99d04 (patch) | |
| tree | 10ad94864fcc22e10388de0972dc1f0a836798c1 | |
| parent | b28ecb7dc68642006e29bb06de043587d7978bf3 (diff) | |
| download | emacs-7e22bdd8f92f8883c9f05b4c83f451dfb6e99d04.tar.gz emacs-7e22bdd8f92f8883c9f05b4c83f451dfb6e99d04.zip | |
(use-quail-package): Error message added.
(quail-mode): Make sure to have quail-mode-map at the head of
minor-mode-map-alist.
| -rw-r--r-- | lisp/international/quail.el | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index b54f17cafb0..2216c236f5b 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -204,7 +204,7 @@ packages (byte-compiled Emacs Lisp files) to somewhere in your | |||
| 204 | `load-path'. | 204 | `load-path'. |
| 205 | 205 | ||
| 206 | LEIM is available from the same ftp directory as Emacs.")) | 206 | LEIM is available from the same ftp directory as Emacs.")) |
| 207 | (error "")) | 207 | (error "Can't use the Quail package `%s'" package-name)) |
| 208 | (setq libraries (cdr libraries)))) | 208 | (setq libraries (cdr libraries)))) |
| 209 | (quail-select-package package-name) | 209 | (quail-select-package package-name) |
| 210 | (setq current-input-method-title (quail-title)) | 210 | (setq current-input-method-title (quail-title)) |
| @@ -469,6 +469,17 @@ The command \\[describe-input-method] describes the current Quail package." | |||
| 469 | (run-hooks 'quail-mode-exit-hook) | 469 | (run-hooks 'quail-mode-exit-hook) |
| 470 | (run-hooks 'input-method-inactivate-hook)) | 470 | (run-hooks 'input-method-inactivate-hook)) |
| 471 | ;; Let's turn on Quail mode. | 471 | ;; Let's turn on Quail mode. |
| 472 | ;; At first, be sure that quail-mode is at the first element of | ||
| 473 | ;; minor-mode-map-alist. | ||
| 474 | (or (eq (car minor-mode-map-alist) 'quail-mode) | ||
| 475 | (let ((l minor-mode-map-alist)) | ||
| 476 | (while (cdr l) | ||
| 477 | (if (eq (car (cdr l)) 'quail-mode) | ||
| 478 | (progn | ||
| 479 | (setcdr l (cdr (cdr l))) | ||
| 480 | (setq l nil)) | ||
| 481 | (setq l (cdr l)))) | ||
| 482 | (setq minor-mode-map-alist (cons 'quail-mode minor-mode-map-alist)))) | ||
| 472 | (if (null quail-current-package) | 483 | (if (null quail-current-package) |
| 473 | ;; Quail package is not yet selected. Select one now. | 484 | ;; Quail package is not yet selected. Select one now. |
| 474 | (let (name) | 485 | (let (name) |
| @@ -1378,7 +1389,7 @@ All possible translations of the current key and whole possible longer keys | |||
| 1378 | (setq l (cdr l))))))) | 1389 | (setq l (cdr l))))))) |
| 1379 | 1390 | ||
| 1380 | ;; List all possible translations of KEY in Quail map MAP with | 1391 | ;; List all possible translations of KEY in Quail map MAP with |
| 1381 | ;; indentation INDENT." | 1392 | ;; indentation INDENT. |
| 1382 | (defun quail-completion-list-translations (map key indent) | 1393 | (defun quail-completion-list-translations (map key indent) |
| 1383 | (let ((translations | 1394 | (let ((translations |
| 1384 | (quail-get-translation map key (length key)))) | 1395 | (quail-get-translation map key (length key)))) |