diff options
| author | Kenichi Handa | 2010-03-08 10:53:37 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-03-08 10:53:37 +0900 |
| commit | 59513a2f81060efb01a8a6d684901718c3b4d236 (patch) | |
| tree | 5433967c8574959bf737f94ea33ed5edf5c8a177 /src/lisp.h | |
| parent | b799f2211562060966feabf1975a11b3985264a9 (diff) | |
| parent | b327c9751037d3d8abc7485c6a78ec96f4da1c1e (diff) | |
| download | emacs-59513a2f81060efb01a8a6d684901718c3b4d236.tar.gz emacs-59513a2f81060efb01a8a6d684901718c3b4d236.zip | |
from trunk
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/lisp.h b/src/lisp.h index 7032a3f48f4..7f5d5df66c6 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1933,22 +1933,12 @@ extern char *stack_bottom; | |||
| 1933 | #ifdef SYNC_INPUT | 1933 | #ifdef SYNC_INPUT |
| 1934 | extern void process_pending_signals P_ ((void)); | 1934 | extern void process_pending_signals P_ ((void)); |
| 1935 | extern int pending_signals; | 1935 | extern int pending_signals; |
| 1936 | 1936 | #define ELSE_PENDING_SIGNALS \ | |
| 1937 | #define QUIT \ | 1937 | else if (pending_signals) \ |
| 1938 | do { \ | 1938 | process_pending_signals (); |
| 1939 | if (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) \ | ||
| 1940 | { \ | ||
| 1941 | Lisp_Object flag = Vquit_flag; \ | ||
| 1942 | Vquit_flag = Qnil; \ | ||
| 1943 | if (EQ (Vthrow_on_input, flag)) \ | ||
| 1944 | Fthrow (Vthrow_on_input, Qt); \ | ||
| 1945 | Fsignal (Qquit, Qnil); \ | ||
| 1946 | } \ | ||
| 1947 | else if (pending_signals) \ | ||
| 1948 | process_pending_signals (); \ | ||
| 1949 | } while (0) | ||
| 1950 | |||
| 1951 | #else /* not SYNC_INPUT */ | 1939 | #else /* not SYNC_INPUT */ |
| 1940 | #define ELSE_PENDING_SIGNALS | ||
| 1941 | #endif /* not SYNC_INPUT */ | ||
| 1952 | 1942 | ||
| 1953 | #define QUIT \ | 1943 | #define QUIT \ |
| 1954 | do { \ | 1944 | do { \ |
| @@ -1960,10 +1950,9 @@ extern int pending_signals; | |||
| 1960 | Fthrow (Vthrow_on_input, Qt); \ | 1950 | Fthrow (Vthrow_on_input, Qt); \ |
| 1961 | Fsignal (Qquit, Qnil); \ | 1951 | Fsignal (Qquit, Qnil); \ |
| 1962 | } \ | 1952 | } \ |
| 1953 | ELSE_PENDING_SIGNALS \ | ||
| 1963 | } while (0) | 1954 | } while (0) |
| 1964 | 1955 | ||
| 1965 | #endif /* not SYNC_INPUT */ | ||
| 1966 | |||
| 1967 | 1956 | ||
| 1968 | /* Nonzero if ought to quit now. */ | 1957 | /* Nonzero if ought to quit now. */ |
| 1969 | 1958 | ||