Mercurial > emacs
comparison lisp/international/quail.el @ 23176:3852eb64cf0e
Doc fixes.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 04 Sep 1998 19:53:41 +0000 |
parents | a47eab4fc085 |
children | 3a7a029df593 |
comparison
equal
deleted
inserted
replaced
23175:ea4f70068321 | 23176:3852eb64cf0e |
---|---|
94 (make-variable-buffer-local 'quail-current-translations) | 94 (make-variable-buffer-local 'quail-current-translations) |
95 | 95 |
96 (defvar quail-current-data nil | 96 (defvar quail-current-data nil |
97 "Any Lisp object holding information of current translation status. | 97 "Any Lisp object holding information of current translation status. |
98 When a key sequence is mapped to TRANS and TRANS is a cons | 98 When a key sequence is mapped to TRANS and TRANS is a cons |
99 of actual translation and some Lisp object to be refered | 99 of actual translation and some Lisp object to be referred |
100 for translating the longer key sequence, this variable is set | 100 for translating the longer key sequence, this variable is set |
101 to that Lisp object.") | 101 to that Lisp object.") |
102 (make-variable-buffer-local 'quail-current-data) | 102 (make-variable-buffer-local 'quail-current-data) |
103 | 103 |
104 ;; Quail package handlers. | 104 ;; Quail package handlers. |
308 (define-key map "\177" 'quail-conversion-backward-delete-char) | 308 (define-key map "\177" 'quail-conversion-backward-delete-char) |
309 (define-key map [delete] 'quail-conversion-backward-delete-char) | 309 (define-key map [delete] 'quail-conversion-backward-delete-char) |
310 (define-key map [backspace] 'quail-conversion-backward-delete-char) | 310 (define-key map [backspace] 'quail-conversion-backward-delete-char) |
311 map) | 311 map) |
312 "Keymap used for processing conversion in Quail mode. | 312 "Keymap used for processing conversion in Quail mode. |
313 This map is activated while convesion region is active but translation | 313 This map is activated while conversion region is active but translation |
314 region is not active.") | 314 region is not active.") |
315 | 315 |
316 ;;;###autoload | 316 ;;;###autoload |
317 (defun quail-define-package (name language title | 317 (defun quail-define-package (name language title |
318 &optional guidance docstring translation-keys | 318 &optional guidance docstring translation-keys |
380 | 380 |
381 OVERLAY-PLIST if non-nil is a property list put on an overlay which | 381 OVERLAY-PLIST if non-nil is a property list put on an overlay which |
382 covers Quail translation region. | 382 covers Quail translation region. |
383 | 383 |
384 UPDATE-TRANSLATION-FUNCTION if non-nil is a function to call to update | 384 UPDATE-TRANSLATION-FUNCTION if non-nil is a function to call to update |
385 the current translation region accoding to a new translation data. By | 385 the current translation region according to a new translation data. By |
386 default, a translated text or a user's key sequence (if no transltion | 386 default, a translated text or a user's key sequence (if no translation |
387 for it) is inserted. | 387 for it) is inserted. |
388 | 388 |
389 CONVERSION-KEYS specifies additional key bindings used while | 389 CONVERSION-KEYS specifies additional key bindings used while |
390 conversion region is active. It is an alist of single key character | 390 conversion region is active. It is an alist of single key character |
391 vs. corresponding command to be called. | 391 vs. corresponding command to be called. |
612 ;; handled out of Quail. Just return CH and make | 612 ;; handled out of Quail. Just return CH and make |
613 ;; quail-execute-non-quail-command handle it correctly. | 613 ;; quail-execute-non-quail-command handle it correctly. |
614 ch | 614 ch |
615 (let ((char (aref quail-keyboard-layout-standard i))) | 615 (let ((char (aref quail-keyboard-layout-standard i))) |
616 (if (= char ?\ ) | 616 (if (= char ?\ ) |
617 ;; A user typed a key at the location not convered by | 617 ;; A user typed a key at the location not converted by |
618 ;; quail-keyboard-layout-standard. Just return CH as | 618 ;; quail-keyboard-layout-standard. Just return CH as |
619 ;; well as above. | 619 ;; well as above. |
620 ch | 620 ch |
621 char)))))) | 621 char)))))) |
622 | 622 |
910 (if (or (and (integerp key) | 910 (if (or (and (integerp key) |
911 (assq (if (quail-kbd-translate) | 911 (assq (if (quail-kbd-translate) |
912 (quail-keyboard-translate key) key) | 912 (quail-keyboard-translate key) key) |
913 (cdr (quail-map)))) | 913 (cdr (quail-map)))) |
914 (null key)) | 914 (null key)) |
915 ;; Ok, we can start translation. | 915 ;; OK, we can start translation. |
916 (let* ((echo-keystrokes 0) | 916 (let* ((echo-keystrokes 0) |
917 (help-char nil) | 917 (help-char nil) |
918 (overriding-terminal-local-map (quail-translation-keymap)) | 918 (overriding-terminal-local-map (quail-translation-keymap)) |
919 (generated-events nil) | 919 (generated-events nil) |
920 (input-method-function nil)) | 920 (input-method-function nil)) |
1924 (quail-update-guidance) | 1924 (quail-update-guidance) |
1925 )))) | 1925 )))) |
1926 | 1926 |
1927 | 1927 |
1928 (defvar quail-directory-name "quail" | 1928 (defvar quail-directory-name "quail" |
1929 "Name of Quail directory which cotains Quail packages. | 1929 "Name of Quail directory which contains Quail packages. |
1930 This is a sub-directory of LEIM directory.") | 1930 This is a sub-directory of LEIM directory.") |
1931 | 1931 |
1932 ;;;###autoload | 1932 ;;;###autoload |
1933 (defun quail-update-leim-list-file (dirname &rest dirnames) | 1933 (defun quail-update-leim-list-file (dirname &rest dirnames) |
1934 "Update entries for Quail packages in `LEIM' list file in directory DIRNAME. | 1934 "Update entries for Quail packages in `LEIM' list file in directory DIRNAME. |
1982 ;; Delete the remaining contents because it seems that | 1982 ;; Delete the remaining contents because it seems that |
1983 ;; this file is broken. | 1983 ;; this file is broken. |
1984 (message "Garbage in %s deleted" leim-list) | 1984 (message "Garbage in %s deleted" leim-list) |
1985 (delete-region pos (point-max))))))) | 1985 (delete-region pos (point-max))))))) |
1986 | 1986 |
1987 ;; Search for `quail' subdirector under each DIRNAMES. | 1987 ;; Search for `quail' subdirectory under each DIRNAMES. |
1988 (setq dirnames (cons dirname dirnames)) | 1988 (setq dirnames (cons dirname dirnames)) |
1989 (let ((l dirnames)) | 1989 (let ((l dirnames)) |
1990 (while l | 1990 (while l |
1991 (setcar l (expand-file-name (car l))) | 1991 (setcar l (expand-file-name (car l))) |
1992 (setq dirname (expand-file-name quail-directory-name (car l))) | 1992 (setq dirname (expand-file-name quail-directory-name (car l))) |