From 3f1d322f586073fe6c284885a42d64503a2bc6c1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 17 Jan 2009 19:14:29 +0000 Subject: [PATCH] (Terminal I/O Encoding): `keyboard-coding-system' and `set-keyboard-coding-system' now accept an optional terminal argument. --- doc/lispref/nonascii.texi | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 2ac927d82c0..841277209f2 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi @@ -1596,15 +1596,21 @@ display text using a particular encoding such as Latin-1. Emacs does 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 -- 2.39.2