diff options
Diffstat (limited to 'src/lisp.h')
-rw-r--r-- | src/lisp.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/lisp.h b/src/lisp.h index 01a08a05f20..84d53bb1eec 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3119,18 +3119,18 @@ struct handler extern Lisp_Object memory_signal_data; -/* Check quit-flag and quit if it is non-nil. - Typing C-g does not directly cause a quit; it only sets Vquit_flag. - So the program needs to do QUIT at times when it is safe to quit. - Every loop that might run for a long time or might not exit - ought to do QUIT at least once, at a safe place. - Unless that is impossible, of course. - But it is very desirable to avoid creating loops where QUIT is impossible. - - Exception: if you set immediate_quit to true, - then the handler that responds to the C-g does the quit itself. - This is a good thing to do around a loop that has no side effects - and (in particular) cannot call arbitrary Lisp code. +/* Check quit-flag and quit if it is non-nil. Typing C-g does not + directly cause a quit; it only sets Vquit_flag. So the program + needs to call maybe_quit at times when it is safe to quit. Every + loop that might run for a long time or might not exit ought to call + maybe_quit at least once, at a safe place. Unless that is + impossible, of course. But it is very desirable to avoid creating + loops where maybe_quit is impossible. + + Exception: if you set immediate_quit, the handler that responds to + the C-g does the quit itself. This is a good thing to do around a + loop that has no side effects and (in particular) cannot call + arbitrary Lisp code. If quit-flag is set to `kill-emacs' the SIGINT handler has received a request to exit Emacs when it is safe to do. @@ -3138,7 +3138,6 @@ extern Lisp_Object memory_signal_data; When not quitting, process any pending signals. */ extern void maybe_quit (void); -#define QUIT maybe_quit () /* True if ought to quit now. */ |