comparison src/keyboard.h @ 43749:0df5bec3cfdf

(ECHOBUFSIZE): Removed. (struct kboard): Member echoptr removed, member echobuf renamed to echo_string.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 06 Mar 2002 15:54:43 +0000
parents f92c4d87863a
children 23a1cea22d13
comparison
equal deleted inserted replaced
43748:c37076b8a3cd 43749:0df5bec3cfdf
17 along with GNU Emacs; see the file COPYING. If not, write to 17 along with GNU Emacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Length of echobuf field in each KBOARD. */ 21 /* Length of echobuf field in each KBOARD. */
22
23 #define ECHOBUFSIZE 300
24 22
25 /* Each KBOARD represents one logical input stream from which Emacs gets input. 23 /* Each KBOARD represents one logical input stream from which Emacs gets input.
26 If we are using an ordinary terminal, it has one KBOARD object. 24 If we are using an ordinary terminal, it has one KBOARD object.
27 Usually each X display screen has its own KBOARD, 25 Usually each X display screen has its own KBOARD,
28 but when two of them are on the same X server, 26 but when two of them are on the same X server,
127 125
128 /* Number of displays using this KBOARD. Normally 1, but can be 126 /* Number of displays using this KBOARD. Normally 1, but can be
129 larger when you have multiple screens on a single X display. */ 127 larger when you have multiple screens on a single X display. */
130 int reference_count; 128 int reference_count;
131 129
132 /* Where to append more text to echobuf if we want to. */
133 char *echoptr;
134
135 /* The text we're echoing in the modeline - partial key sequences, 130 /* The text we're echoing in the modeline - partial key sequences,
136 usually. '\0'-terminated. This really shouldn't have a fixed size. */ 131 usually. This is nil when not echoing. */
137 char echobuf[ECHOBUFSIZE]; 132 Lisp_Object echo_string;
138 133
139 /* This flag indicates that events were put into kbd_queue 134 /* This flag indicates that events were put into kbd_queue
140 while Emacs was running for some other KBOARD. 135 while Emacs was running for some other KBOARD.
141 The flag means that, when Emacs goes into the any-kboard state again, 136 The flag means that, when Emacs goes into the any-kboard state again,
142 it should check this KBOARD to see if there is a complete command 137 it should check this KBOARD to see if there is a complete command
150 145
151 /* Nonzero means echo each character as typed. */ 146 /* Nonzero means echo each character as typed. */
152 char immediate_echo; 147 char immediate_echo;
153 148
154 /* If we have echoed a prompt string specified by the user, 149 /* If we have echoed a prompt string specified by the user,
155 this is its length. Otherwise this is -1. */ 150 this is its length in characters. Otherwise this is -1. */
156 char echo_after_prompt; 151 char echo_after_prompt;
157 }; 152 };
158 153
159 #ifdef MULTI_KBOARD 154 #ifdef MULTI_KBOARD
160 /* Temporarily used before a frame has been opened, and for termcap frames */ 155 /* Temporarily used before a frame has been opened, and for termcap frames */