diff options
| author | Richard M. Stallman <rms@gnu.org> | 2004-07-17 14:50:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 2004-07-17 14:50:58 +0000 |
| commit | 0c1c1b936d4f9043639b88e5e8b209db6e290408 (patch) | |
| tree | fa99886889fa86a02b2b3ed266df8b768cd274da /src | |
| parent | 8ceb7434dfcad287b590e4493f94db48bf88afd1 (diff) | |
| download | emacs-0c1c1b936d4f9043639b88e5e8b209db6e290408.tar.gz | |
(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 () #endif } +/* If we're in single_kboard state for kboard KBOARD, + get out of it. */ + +void +not_single_kboard_state (kboard) + KBOARD *kboard; +{ + if (kboard == current_kboard) + single_kboard = 0; +} + /* Maintain a stack of kboards, so other parts of Emacs can switch temporarily to the kboard of a given frame and then revert to the previous status. */ @@ -10175,9 +10186,7 @@ void stuff_buffered_input (stuffstring) Lisp_Object stuffstring; { -/* stuff_char works only in BSD, versions 4.2 and up. */ -#ifdef BSD_SYSTEM -#ifndef BSD4_1 +#ifdef SIGTSTP /* stuff_char is defined if SIGTSTP. */ register unsigned char *p; if (STRINGP (stuffstring)) @@ -10193,7 +10202,10 @@ stuff_buffered_input (stuffstring) /* Anything we have read ahead, put back for the shell to read. */ /* ?? What should this do when we have multiple keyboards?? - Should we ignore anything that was typed in at the "wrong" kboard? */ + Should we ignore anything that was typed in at the "wrong" kboard? + + rms: we should stuff everything back into the kboard + it came from. */ for (; kbd_fetch_ptr != kbd_store_ptr; kbd_fetch_ptr++) { @@ -10206,8 +10218,7 @@ stuff_buffered_input (stuffstring) } input_pending = 0; -#endif -#endif /* BSD_SYSTEM and not BSD4_1 */ +#endif /* SIGTSTP */ } void |
