diff options
| author | Richard M. Stallman | 1998-08-26 21:05:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-08-26 21:05:38 +0000 |
| commit | 2eb4136ff5d38469b5e04cd638590565c447fc82 (patch) | |
| tree | c23e19e94616b1ae125be850d8989b83e343ac7f /lispref | |
| parent | cd75b81a1ef6750ebaa1dc8ee7788c7823322051 (diff) | |
| download | emacs-2eb4136ff5d38469b5e04cd638590565c447fc82.tar.gz emacs-2eb4136ff5d38469b5e04cd638590565c447fc82.zip | |
*** empty log message ***
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/commands.texi | 19 | ||||
| -rw-r--r-- | lispref/nonascii.texi | 12 |
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 |
| 1847 | single event. | 1847 | single event. |
| 1848 | 1848 | ||
| 1849 | @defun read-event | 1849 | @defun read-event &optional prompt suppress-input-method |
| 1850 | This function reads and returns the next event of command input, waiting | 1850 | This function reads and returns the next event of command input, waiting |
| 1851 | if necessary until an event is available. Events can come directly from | 1851 | if necessary until an event is available. Events can come directly from |
| 1852 | the user or from a keyboard macro. | 1852 | the user or from a keyboard macro. |
| 1853 | 1853 | ||
| 1854 | The function @code{read-event} does not display any message to indicate | 1854 | If @var{prompt} is non-@code{nil}, it should be a string to display in |
| 1855 | it is waiting for input; use @code{message} first, if you wish to | 1855 | the echo area as a prompt. Otherwise, @code{read-event} does not |
| 1856 | display one. If you have not displayed a message, @code{read-event} | 1856 | display any message to indicate it is waiting for input; instead, it |
| 1857 | prompts by echoing: it displays descriptions of the events that led to | 1857 | prompts by echoing: it displays descriptions of the events that led to |
| 1858 | or were read by the current command. @xref{The Echo Area}. | 1858 | or were read by the current command. @xref{The Echo Area}. |
| 1859 | 1859 | ||
| 1860 | If @var{suppress-input-method} is non-@code{nil}, then the current input | ||
| 1861 | method is disabled for reading this event. If you want to read an event | ||
| 1862 | without input-method processing, always do it this way; don't try binding | ||
| 1863 | @code{input-method-function} (see below). | ||
| 1864 | |||
| 1860 | If @code{cursor-in-echo-area} is non-@code{nil}, then @code{read-event} | 1865 | If @code{cursor-in-echo-area} is non-@code{nil}, then @code{read-event} |
| 1861 | moves the cursor temporarily to the echo area, to the end of any message | 1866 | moves the cursor temporarily to the echo area, to the end of any message |
| 1862 | displayed there. Otherwise @code{read-event} does not move the cursor. | 1867 | displayed 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 |
| 1918 | If this is non-@code{nil}, its value specifies the current input method | 1923 | If this is non-@code{nil}, its value specifies the current input method |
| 1919 | function. | 1924 | function. |
| 1925 | |||
| 1926 | @strong{Note:} Don't bind this variable with @code{let}. It is often | ||
| 1927 | buffer-local, and if you bind it around reading input (which is exactly | ||
| 1928 | when you @emph{would} bind it), switching buffers asynchronously while | ||
| 1929 | Emacs is waiting will cause the value to be restored in the wrong | ||
| 1930 | buffer. | ||
| 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 | |||
| 606 | interested in. | 606 | interested in. |
| 607 | @end defvar | 607 | @end defvar |
| 608 | 608 | ||
| 609 | The variable @code{selection-coding-system} specifies how to encode | ||
| 610 | selections 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 |
| 988 | terminal output. This kind of decoding and encoding does not set | 991 | terminal output. This is useful for terminals that transmit or display |
| 989 | @code{last-coding-system-used}. | 992 | text using a particular encoding such as Latin-1. Emacs does not set |
| 993 | @code{last-coding-system-used} for encoding or decoding for the | ||
| 994 | terminal. | ||
| 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 | |||
| 1144 | the @var{args}. | 1149 | the @var{args}. |
| 1145 | @end defvar | 1150 | @end defvar |
| 1146 | 1151 | ||
| 1147 | 1152 | The fundamental interface to input methods is through the | |
| 1153 | variable @code{input-method-function}. @xref{Reading One Event}. | ||