changeset 101264:e053f08d03ae

(Terminal I/O Encoding): `keyboard-coding-system' and `set-keyboard-coding-system' now accept an optional terminal argument.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 17 Jan 2009 19:14:29 +0000
parents 0f0b2866dcbb
children e7dd76011592
files doc/lispref/nonascii.texi
diffstat 1 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/nonascii.texi	Sat Jan 17 19:14:01 2009 +0000
+++ b/doc/lispref/nonascii.texi	Sat Jan 17 19:14:29 2009 +0000
@@ -1596,15 +1596,21 @@
 not set @code{last-coding-system-used} for encoding or decoding of
 terminal I/O.
 
-@defun keyboard-coding-system
+@defun keyboard-coding-system &optional terminal
 This function returns the coding system that is in use for decoding
-keyboard input---or @code{nil} if no coding system is to be used.
+keyboard input from @var{terminal}---or @code{nil} if no coding system
+is to be used for that terminal.  If @var{terminal} is omitted or
+@code{nil}, it means the selected frame's terminal.  @xref{Multiple
+Terminals}.
 @end defun
 
-@deffn Command set-keyboard-coding-system coding-system
-This command specifies @var{coding-system} as the coding system to
-use for decoding keyboard input.  If @var{coding-system} is @code{nil},
-that means do not decode keyboard input.
+@deffn Command set-keyboard-coding-system coding-system &optional terminal
+This command specifies @var{coding-system} as the coding system to use
+for decoding keyboard input from @var{terminal}.  If
+@var{coding-system} is @code{nil}, that means do not decode keyboard
+input.  If @var{terminal} is a frame, it means that frame's terminal;
+if it is @code{nil}, that means the currently selected frame's
+terminal.  @xref{Multiple Terminals}.
 @end deffn
 
 @defun terminal-coding-system