aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-04-08 05:59:03 +0000
committerKarl Heuer1994-04-08 05:59:03 +0000
commita8015ab5ed668ed690837fd5f9c593c5e8e19b94 (patch)
tree135a8974689a2fc3dd0801e444d4322b11dd2ee0 /src
parentd72534bad1b427571acc6ab4bfd9fc3a4a8202ae (diff)
downloademacs-a8015ab5ed668ed690837fd5f9c593c5e8e19b94.tar.gz
emacs-a8015ab5ed668ed690837fd5f9c593c5e8e19b94.zip
(kbd_buffer_get_event): Make buffer_switch_event lispy.
(record_asynch_buffer_change): New function. Enqueue the event.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index f09b7fadbc2..dcda52ba441 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2008,6 +2008,12 @@ kbd_buffer_get_event ()
2008 kbd_fetch_ptr = event + 1; 2008 kbd_fetch_ptr = event + 1;
2009 } 2009 }
2010#endif 2010#endif
2011 else if (event->kind == buffer_switch_event)
2012 {
2013 /* The value doesn't matter here; only the type is tested. */
2014 XSET (obj, Lisp_Buffer, current_buffer);
2015 kbd_fetch_ptr = event + 1;
2016 }
2011 /* Just discard these, by returning nil. 2017 /* Just discard these, by returning nil.
2012 (They shouldn't be found in the buffer, 2018 (They shouldn't be found in the buffer,
2013 but on some machines it appears they do show up.) */ 2019 but on some machines it appears they do show up.) */
@@ -3250,6 +3256,14 @@ gobble_input (expected)
3250 read_avail_input (expected); 3256 read_avail_input (expected);
3251#endif 3257#endif
3252} 3258}
3259
3260record_asynch_buffer_change ()
3261{
3262 struct input_event event;
3263 event.kind = buffer_switch_event;
3264 event.frame_or_window = Qnil;
3265 kbd_buffer_store_event (&event);
3266}
3253 3267
3254#ifndef VMS 3268#ifndef VMS
3255 3269