comparison src/lisp.h @ 101653:f2bc801a3377

(QUIT): Check pending_signals instead of interrupt_input_pending. Use process_pending_signals.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 29 Jan 2009 14:35:25 +0000
parents e038c1a8307c
children f6d5eb6db7f4
comparison
equal deleted inserted replaced
101652:09b98c9d2d96 101653:f2bc801a3377
1841 then the handler that responds to the C-g does the quit itself. 1841 then the handler that responds to the C-g does the quit itself.
1842 This is a good thing to do around a loop that has no side effects 1842 This is a good thing to do around a loop that has no side effects
1843 and (in particular) cannot call arbitrary Lisp code. */ 1843 and (in particular) cannot call arbitrary Lisp code. */
1844 1844
1845 #ifdef SYNC_INPUT 1845 #ifdef SYNC_INPUT
1846 extern void handle_async_input P_ ((void)); 1846 extern void process_pending_signals P_ ((void));
1847 extern int interrupt_input_pending; 1847 extern int pending_signals;
1848 1848
1849 #define QUIT \ 1849 #define QUIT \
1850 do { \ 1850 do { \
1851 if (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) \ 1851 if (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) \
1852 { \ 1852 { \
1854 Vquit_flag = Qnil; \ 1854 Vquit_flag = Qnil; \
1855 if (EQ (Vthrow_on_input, flag)) \ 1855 if (EQ (Vthrow_on_input, flag)) \
1856 Fthrow (Vthrow_on_input, Qt); \ 1856 Fthrow (Vthrow_on_input, Qt); \
1857 Fsignal (Qquit, Qnil); \ 1857 Fsignal (Qquit, Qnil); \
1858 } \ 1858 } \
1859 else if (interrupt_input_pending) \ 1859 else if (pending_signals) \
1860 handle_async_input (); \ 1860 process_pending_signals (); \
1861 } while (0) 1861 } while (0)
1862 1862
1863 #else /* not SYNC_INPUT */ 1863 #else /* not SYNC_INPUT */
1864 1864
1865 #define QUIT \ 1865 #define QUIT \