diff options
| author | Richard M. Stallman | 2004-07-17 14:50:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-07-17 14:50:58 +0000 |
| commit | 0c1c1b936d4f9043639b88e5e8b209db6e290408 (patch) | |
| tree | fa99886889fa86a02b2b3ed266df8b768cd274da /src | |
| parent | 8ceb7434dfcad287b590e4493f94db48bf88afd1 (diff) | |
| download | emacs-0c1c1b936d4f9043639b88e5e8b209db6e290408.tar.gz emacs-0c1c1b936d4f9043639b88e5e8b209db6e290408.zip | |
(not_single_kboard_state): New function.
(stuff_buffered_input): Now no-op only if no SIGTSTP.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 89706dc3dce..aa2bdbddf5a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1089,6 +1089,17 @@ single_kboard_state () | |||
| 1089 | #endif | 1089 | #endif |
| 1090 | } | 1090 | } |
| 1091 | 1091 | ||
| 1092 | /* If we're in single_kboard state for kboard KBOARD, | ||
| 1093 | get out of it. */ | ||
| 1094 | |||
| 1095 | void | ||
| 1096 | not_single_kboard_state (kboard) | ||
| 1097 | KBOARD *kboard; | ||
| 1098 | { | ||
| 1099 | if (kboard == current_kboard) | ||
| 1100 | single_kboard = 0; | ||
| 1101 | } | ||
| 1102 | |||
| 1092 | /* Maintain a stack of kboards, so other parts of Emacs | 1103 | /* Maintain a stack of kboards, so other parts of Emacs |
| 1093 | can switch temporarily to the kboard of a given frame | 1104 | can switch temporarily to the kboard of a given frame |
| 1094 | and then revert to the previous status. */ | 1105 | and then revert to the previous status. */ |
| @@ -10175,9 +10186,7 @@ void | |||
| 10175 | stuff_buffered_input (stuffstring) | 10186 | stuff_buffered_input (stuffstring) |
| 10176 | Lisp_Object stuffstring; | 10187 | Lisp_Object stuffstring; |
| 10177 | { | 10188 | { |
| 10178 | /* stuff_char works only in BSD, versions 4.2 and up. */ | 10189 | #ifdef SIGTSTP /* stuff_char is defined if SIGTSTP. */ |
| 10179 | #ifdef BSD_SYSTEM | ||
| 10180 | #ifndef BSD4_1 | ||
| 10181 | register unsigned char *p; | 10190 | register unsigned char *p; |
| 10182 | 10191 | ||
| 10183 | if (STRINGP (stuffstring)) | 10192 | if (STRINGP (stuffstring)) |
| @@ -10193,7 +10202,10 @@ stuff_buffered_input (stuffstring) | |||
| 10193 | 10202 | ||
| 10194 | /* Anything we have read ahead, put back for the shell to read. */ | 10203 | /* Anything we have read ahead, put back for the shell to read. */ |
| 10195 | /* ?? What should this do when we have multiple keyboards?? | 10204 | /* ?? What should this do when we have multiple keyboards?? |
| 10196 | Should we ignore anything that was typed in at the "wrong" kboard? */ | 10205 | Should we ignore anything that was typed in at the "wrong" kboard? |
| 10206 | |||
| 10207 | rms: we should stuff everything back into the kboard | ||
| 10208 | it came from. */ | ||
| 10197 | for (; kbd_fetch_ptr != kbd_store_ptr; kbd_fetch_ptr++) | 10209 | for (; kbd_fetch_ptr != kbd_store_ptr; kbd_fetch_ptr++) |
| 10198 | { | 10210 | { |
| 10199 | 10211 | ||
| @@ -10206,8 +10218,7 @@ stuff_buffered_input (stuffstring) | |||
| 10206 | } | 10218 | } |
| 10207 | 10219 | ||
| 10208 | input_pending = 0; | 10220 | input_pending = 0; |
| 10209 | #endif | 10221 | #endif /* SIGTSTP */ |
| 10210 | #endif /* BSD_SYSTEM and not BSD4_1 */ | ||
| 10211 | } | 10222 | } |
| 10212 | 10223 | ||
| 10213 | void | 10224 | void |