aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman1998-08-26 21:05:38 +0000
committerRichard M. Stallman1998-08-26 21:05:38 +0000
commit2eb4136ff5d38469b5e04cd638590565c447fc82 (patch)
treec23e19e94616b1ae125be850d8989b83e343ac7f /lispref
parentcd75b81a1ef6750ebaa1dc8ee7788c7823322051 (diff)
downloademacs-2eb4136ff5d38469b5e04cd638590565c447fc82.tar.gz
emacs-2eb4136ff5d38469b5e04cd638590565c447fc82.zip
*** empty log message ***
Diffstat (limited to 'lispref')
-rw-r--r--lispref/commands.texi19
-rw-r--r--lispref/nonascii.texi12
2 files changed, 24 insertions, 7 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi
index 893dcd3c142..0c1c7669bf9 100644
--- a/lispref/commands.texi
+++ b/lispref/commands.texi
@@ -1846,17 +1846,22 @@ from the terminal---not counting those generated by keyboard macros.
1846 The lowest level functions for command input are those that read a 1846 The lowest level functions for command input are those that read a
1847single event. 1847single event.
1848 1848
1849@defun read-event 1849@defun read-event &optional prompt suppress-input-method
1850This function reads and returns the next event of command input, waiting 1850This function reads and returns the next event of command input, waiting
1851if necessary until an event is available. Events can come directly from 1851if necessary until an event is available. Events can come directly from
1852the user or from a keyboard macro. 1852the user or from a keyboard macro.
1853 1853
1854The function @code{read-event} does not display any message to indicate 1854If @var{prompt} is non-@code{nil}, it should be a string to display in
1855it is waiting for input; use @code{message} first, if you wish to 1855the echo area as a prompt. Otherwise, @code{read-event} does not
1856display one. If you have not displayed a message, @code{read-event} 1856display any message to indicate it is waiting for input; instead, it
1857prompts by echoing: it displays descriptions of the events that led to 1857prompts by echoing: it displays descriptions of the events that led to
1858or were read by the current command. @xref{The Echo Area}. 1858or were read by the current command. @xref{The Echo Area}.
1859 1859
1860If @var{suppress-input-method} is non-@code{nil}, then the current input
1861method is disabled for reading this event. If you want to read an event
1862without input-method processing, always do it this way; don't try binding
1863@code{input-method-function} (see below).
1864
1860If @code{cursor-in-echo-area} is non-@code{nil}, then @code{read-event} 1865If @code{cursor-in-echo-area} is non-@code{nil}, then @code{read-event}
1861moves the cursor temporarily to the echo area, to the end of any message 1866moves the cursor temporarily to the echo area, to the end of any message
1862displayed there. Otherwise @code{read-event} does not move the cursor. 1867displayed there. Otherwise @code{read-event} does not move the cursor.
@@ -1917,6 +1922,12 @@ passing the event as an argument.
1917@defvar input-method-function 1922@defvar input-method-function
1918If this is non-@code{nil}, its value specifies the current input method 1923If this is non-@code{nil}, its value specifies the current input method
1919function. 1924function.
1925
1926@strong{Note:} Don't bind this variable with @code{let}. It is often
1927buffer-local, and if you bind it around reading input (which is exactly
1928when you @emph{would} bind it), switching buffers asynchronously while
1929Emacs is waiting will cause the value to be restored in the wrong
1930buffer.
1920@end defvar 1931@end defvar
1921 1932
1922 The input method function should return a list of events which should 1933 The input method function should return a list of events which should
diff --git a/lispref/nonascii.texi b/lispref/nonascii.texi
index 9bd51e2b5c8..fb089fae206 100644
--- a/lispref/nonascii.texi
+++ b/lispref/nonascii.texi
@@ -606,6 +606,9 @@ value shortly after the function call which stores the value you are
606interested in. 606interested in.
607@end defvar 607@end defvar
608 608
609 The variable @code{selection-coding-system} specifies how to encode
610selections for the window system. @xref{Window System Selections}.
611
609@node Lisp and Coding Systems 612@node Lisp and Coding Systems
610@subsection Coding Systems in Lisp 613@subsection Coding Systems in Lisp
611 614
@@ -985,8 +988,10 @@ decoded text. To make explicit decoding useful, the contents of
985@subsection Terminal I/O Encoding 988@subsection Terminal I/O Encoding
986 989
987 Emacs can decode keyboard input using a coding system, and encode 990 Emacs can decode keyboard input using a coding system, and encode
988terminal output. This kind of decoding and encoding does not set 991terminal output. This is useful for terminals that transmit or display
989@code{last-coding-system-used}. 992text using a particular encoding such as Latin-1. Emacs does not set
993@code{last-coding-system-used} for encoding or decoding for the
994terminal.
990 995
991@defun keyboard-coding-system 996@defun keyboard-coding-system
992@tindex keyboard-coding-system 997@tindex keyboard-coding-system
@@ -1144,4 +1149,5 @@ told, the arguments to @var{activate-func} are @var{input-method} and
1144the @var{args}. 1149the @var{args}.
1145@end defvar 1150@end defvar
1146 1151
1147 1152 The fundamental interface to input methods is through the
1153variable @code{input-method-function}. @xref{Reading One Event}.