aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-11 23:33:17 +0000
committerRichard M. Stallman1992-09-11 23:33:17 +0000
commitf1bed6d8b81aa83412959e5d1b4aca29d3b4940e (patch)
treed459cdb11e922690ea1564a691c43fb9c4cf14a6 /src
parent95be70edc1b42b4455ecbef42fe054776f13754e (diff)
downloademacs-f1bed6d8b81aa83412959e5d1b4aca29d3b4940e.tar.gz
emacs-f1bed6d8b81aa83412959e5d1b4aca29d3b4940e.zip
(command_loop_1): Bind inhibit-quit to t when in Fsit_for.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 8988a5e762c..17d81655c23 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -799,7 +799,13 @@ command_loop_1 ()
799 799
800 if (minibuf_level && echo_area_glyphs) 800 if (minibuf_level && echo_area_glyphs)
801 { 801 {
802 /* Bind inhibit-quit to t so that C-g gets read in
803 rather than quitting back to the minibuffer. */
804 int count = specpdl_ptr - specpdl;
805 specbind (Qinhibit_quit, Qt);
802 Fsit_for (make_number (2), Qnil, Qnil); 806 Fsit_for (make_number (2), Qnil, Qnil);
807 unbind_to (count);
808
803 echo_area_glyphs = 0; 809 echo_area_glyphs = 0;
804 no_direct = 1; 810 no_direct = 1;
805 if (!NILP (Vquit_flag)) 811 if (!NILP (Vquit_flag))