aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-12-18 17:10:08 +0000
committerDave Love2000-12-18 17:10:08 +0000
commit6d34f49569a04b3061a91592e0eb92fd610b5a67 (patch)
treee6ed8290ae15cf344e22bb21aeb2585ec43dc22b
parent15d0c9b1d53b853514117eb09ef35470ad2a57e6 (diff)
downloademacs-6d34f49569a04b3061a91592e0eb92fd610b5a67.tar.gz
emacs-6d34f49569a04b3061a91592e0eb92fd610b5a67.zip
(set-keyboard-coding-system): Doc fix.
(keyboard-coding-system): New option.
-rw-r--r--lisp/international/mule.el23
1 files changed, 22 insertions, 1 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 83774ce4ef4..772a89566df 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -993,7 +993,8 @@ See also the command `set-keyboard-coding-system'.")
993(defun set-keyboard-coding-system (coding-system) 993(defun set-keyboard-coding-system (coding-system)
994 "Set coding system for keyboard input to CODING-SYSTEM. 994 "Set coding system for keyboard input to CODING-SYSTEM.
995In addition, this command enables Encoded-kbd minor mode. 995In addition, this command enables Encoded-kbd minor mode.
996\(If CODING-SYSTEM is nil, Encoded-kbd mode is turned off.) 996\(If CODING-SYSTEM is nil, Encoded-kbd mode is turned off -- see
997`encoded-kbd-mode'.)
997For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]. 998For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems].
998The default is determined by the selected language environment 999The default is determined by the selected language environment
999or by the previous use of this command." 1000or by the previous use of this command."
@@ -1013,6 +1014,26 @@ or by the previous use of this command."
1013 (set-keyboard-coding-system-internal coding-system) 1014 (set-keyboard-coding-system-internal coding-system)
1014 (encoded-kbd-mode (if coding-system 1 0))) 1015 (encoded-kbd-mode (if coding-system 1 0)))
1015 1016
1017(defcustom keyboard-coding-system nil
1018 "Specify coding system for keyboard input.
1019If you set this on a terminal which can't distinguish Meta keys from
10208-bit characters, you will have to use ESC to type Meta characters.
1021See Info node `Specify Coding' and Info node `Single-Byte Character Support'.
1022
1023Setting this variable directly does not take effect;
1024use either M-x customize or \\[set-keyboard-coding-system]."
1025 :type '(coding-system :tag "Coding system")
1026 :link '(info-link "(emacs)Specify Coding")
1027 :link '(info-link "(emacs)Single-Byte Character Support")
1028 :set (lambda (symbol value)
1029 ;; Don't load encoded-kbd-mode unnecessarily.
1030 (if (or value (boundp 'encoded-kbd-mode))
1031 (set-keyboard-coding-system value)
1032 (set-default 'keyboard-coding-system nil))) ; must initialize
1033 :version "21.1"
1034 :group 'keyboard
1035 :group 'mule)
1036
1016(defun set-buffer-process-coding-system (decoding encoding) 1037(defun set-buffer-process-coding-system (decoding encoding)
1017 "Set coding systems for the process associated with the current buffer. 1038 "Set coding systems for the process associated with the current buffer.
1018DECODING is the coding system to be used to decode input from the process, 1039DECODING is the coding system to be used to decode input from the process,