aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1998-08-15 01:28:14 +0000
committerKenichi Handa1998-08-15 01:28:14 +0000
commit7624ebb968275053e72a1c610a94ca54cf889d00 (patch)
treea6e9acd3d8a674fec7686f84c5126373f81e6f22
parenta03b3ce13b064a5f775525d8208e747b87a169cf (diff)
downloademacs-7624ebb968275053e72a1c610a94ca54cf889d00.tar.gz
emacs-7624ebb968275053e72a1c610a94ca54cf889d00.zip
(language-info-alist): Doc-string
modified. (set-language-info-alist): Fix typo in doc-string. Update setup-language-environment-map unconditionally. (mule-keymap): Key bindings for set-selection-coding-system and set-next-selection-coding-system. (set-coding-system-map): Add items of set-selection-coding-system and set-next-selection-coding-system.
-rw-r--r--lisp/international/mule-cmds.el39
1 files changed, 26 insertions, 13 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index f075a5affbc..39122d0641b 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -36,6 +36,8 @@
36(define-key mule-keymap "t" 'set-terminal-coding-system) 36(define-key mule-keymap "t" 'set-terminal-coding-system)
37(define-key mule-keymap "k" 'set-keyboard-coding-system) 37(define-key mule-keymap "k" 'set-keyboard-coding-system)
38(define-key mule-keymap "p" 'set-buffer-process-coding-system) 38(define-key mule-keymap "p" 'set-buffer-process-coding-system)
39(define-key mule-keymap "x" 'set-selection-coding-system)
40(define-key mule-keymap "X" 'set-next-selection-coding-system)
39(define-key mule-keymap "\C-\\" 'set-input-method) 41(define-key mule-keymap "\C-\\" 'set-input-method)
40(define-key mule-keymap "c" 'universal-coding-system-argument) 42(define-key mule-keymap "c" 'universal-coding-system-argument)
41(define-key mule-keymap "l" 'set-language-environment) 43(define-key mule-keymap "l" 'set-language-environment)
@@ -120,18 +122,28 @@
120(define-key-after set-coding-system-map [set-buffer-process-coding-system] 122(define-key-after set-coding-system-map [set-buffer-process-coding-system]
121 '("Buffer Process" . set-buffer-process-coding-system) 123 '("Buffer Process" . set-buffer-process-coding-system)
122 t) 124 t)
123 125(define-key-after set-coding-system-map [set-selection-coding-system]
126 '("X Selection" . set-selection-coding-system)
127 t)
128(define-key-after set-coding-system-map [set-next-selection-coding-system]
129 '("Next X Selection" . set-next-selection-coding-system)
130 t)
124(define-key setup-language-environment-map 131(define-key setup-language-environment-map
125 [Default] '("Default" . setup-specified-language-environment)) 132 [Default] '("Default" . setup-specified-language-environment))
126 133
127;; These are meaningless when running under X. 134;; These are meaningless when running under X.
128(put 'set-terminal-coding-system 'menu-enable 135(put 'set-terminal-coding-system 'menu-enable
129 '(not (eq window-system 'x))) 136 '(not window-system))
130(put 'set-keyboard-coding-system 'menu-enable 137(put 'set-keyboard-coding-system 'menu-enable
131 '(not (eq window-system 'x))) 138 '(not window-system))
132;; This is meaningless when the current buffer has no process. 139;; This is meaningless when the current buffer has no process.
133(put 'set-buffer-process-coding-system 'menu-enable 140(put 'set-buffer-process-coding-system 'menu-enable
134 '(get-buffer-process (current-buffer))) 141 '(get-buffer-process (current-buffer)))
142;; These are meaningless when running under terminal.
143(put 'set-selection-coding-system 'menu-enable
144 'window-system)
145(put 'set-next-selection-coding-system 'menu-enable
146 'window-system)
135 147
136;; This should be a single character key binding because users use it 148;; This should be a single character key binding because users use it
137;; very frequently while editing multilingual text. Now we can use 149;; very frequently while editing multilingual text. Now we can use
@@ -509,14 +521,17 @@ Meaningful values for KEY include
509 This is used to set up the coding system priority 521 This is used to set up the coding system priority
510 list when you switch to this language environment. 522 list when you switch to this language environment.
511 nonascii-translation 523 nonascii-translation
512 value is a translation table to be set to the 524 value is a translation table to be set in the
513 variable `nonascii-translation-table' in this 525 variable `nonascii-translation-table' in this
514 language environment. 526 language environment, or a character set from
527 which `nonascii-insert-offset' is calculated.
515 charset-origin-alist 528 charset-origin-alist
516 value is an alist to be set to the variable 529 value is an alist to be set in the variable
517 `charset-origin-alist' in this language environment. 530 `charset-origin-alist' in this language environment.
518 input-method value is a default input method for this language 531 input-method value is a default input method for this language
519 environment. 532 environment.
533 features value is a list of features requested in this
534 language environment.
520 535
521The following keys take effect only when multibyte characters are 536The following keys take effect only when multibyte characters are
522globally disabled, i.e. the value of `default-enable-multibyte-characters' 537globally disabled, i.e. the value of `default-enable-multibyte-characters'
@@ -569,7 +584,7 @@ see `language-info-alist'."
569(defun set-language-info-alist (lang-env alist &optional parents) 584(defun set-language-info-alist (lang-env alist &optional parents)
570 "Store ALIST as the definition of language environment LANG-ENV. 585 "Store ALIST as the definition of language environment LANG-ENV.
571ALIST is an alist of KEY and INFO values. See the documentation of 586ALIST is an alist of KEY and INFO values. See the documentation of
572`set-langauge-info' for the meanings of KEY and INFO. 587`set-language-info' for the meanings of KEY and INFO.
573 588
574Optional arg PARENTS is a list of parent menu names; it specifies 589Optional arg PARENTS is a list of parent menu names; it specifies
575where to put this language environment in the 590where to put this language environment in the
@@ -608,14 +623,12 @@ in the European submenu in each of those two menus."
608 (setq l (cdr l))))) 623 (setq l (cdr l)))))
609 624
610 ;; Set up menu items for this language env. 625 ;; Set up menu items for this language env.
611 (let ((doc (assq 'documentation alist)) 626 (let ((doc (assq 'documentation alist)))
612 (setup-function (assq 'setup-function alist)))
613 (when doc 627 (when doc
614 (define-key-after describe-map (vector (intern lang-env)) 628 (define-key-after describe-map (vector (intern lang-env))
615 (cons lang-env 'describe-specified-language-support) t)) 629 (cons lang-env 'describe-specified-language-support) t)))
616 (when setup-function 630 (define-key-after setup-map (vector (intern lang-env))
617 (define-key-after setup-map (vector (intern lang-env)) 631 (cons lang-env 'setup-specified-language-environment) t)
618 (cons lang-env 'setup-specified-language-environment) t)))
619 632
620 (while alist 633 (while alist
621 (set-language-info lang-env (car (car alist)) (cdr (car alist))) 634 (set-language-info lang-env (car (car alist)) (cdr (car alist)))