comparison src/fns.c @ 1193:e1329d41271d

* fns.c (Fy_or_n_p): After testing for a QUIT, clear Vquit_flag. Otherwise, if Fy_or_n_p is called while Vinhibit_quit is true and the user presses C-g, this function goes into an infinite loop.
author Jim Blandy <jimb@redhat.com>
date Tue, 22 Sep 1992 04:29:25 +0000
parents 64d7858e7b48
children e0a970069f9e
comparison
equal deleted inserted replaced
1192:5c380ec3cfc6 1193:e1329d41271d
1112 cursor_in_echo_area = ocech; 1112 cursor_in_echo_area = ocech;
1113 /* Accept a C-g or C-] (abort-recursive-edit) as quit requests. */ 1113 /* Accept a C-g or C-] (abort-recursive-edit) as quit requests. */
1114 if (ans == 7 || ans == '\035') 1114 if (ans == 7 || ans == '\035')
1115 Vquit_flag = Qt; 1115 Vquit_flag = Qt;
1116 QUIT; 1116 QUIT;
1117 Vquit_flag = Qnil;
1117 if (ans >= 0) 1118 if (ans >= 0)
1118 ans = DOWNCASE (ans); 1119 ans = DOWNCASE (ans);
1119 if (ans == 'y' || ans == ' ') 1120 if (ans == 'y' || ans == ' ')
1120 { ans = 'y'; break; } 1121 { ans = 'y'; break; }
1121 if (ans == 'n' || ans == 127) 1122 if (ans == 'n' || ans == 127)