diff options
| author | Richard M. Stallman | 1993-07-25 06:00:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-25 06:00:32 +0000 |
| commit | ff4c9993ec68fbe488c895da6cad99bccfd1f980 (patch) | |
| tree | 49d4210bb03d0e458faf7ac137c0477e7fb10537 /src | |
| parent | e5229110c22112b32d0a46992a8c4482fe1de175 (diff) | |
| download | emacs-ff4c9993ec68fbe488c895da6cad99bccfd1f980.tar.gz emacs-ff4c9993ec68fbe488c895da6cad99bccfd1f980.zip | |
(Fdo_auto_save): Temporarily clear Vquit_flag.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index fe4deb1fd32..04962eee1df 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3004,6 +3004,12 @@ Non-nil second argument means save only current buffer.") | |||
| 3004 | char *omessage = echo_area_glyphs; | 3004 | char *omessage = echo_area_glyphs; |
| 3005 | extern int minibuf_level; | 3005 | extern int minibuf_level; |
| 3006 | int do_handled_files; | 3006 | int do_handled_files; |
| 3007 | Lisp_Object oquit; | ||
| 3008 | |||
| 3009 | /* Ordinarily don't quit within this function, | ||
| 3010 | but don't make it impossible to quit (in case we get hung in I/O). */ | ||
| 3011 | oquit = Vquit_flag; | ||
| 3012 | Vquit_flag = Qnil; | ||
| 3007 | 3013 | ||
| 3008 | /* No GCPRO needed, because (when it matters) all Lisp_Object variables | 3014 | /* No GCPRO needed, because (when it matters) all Lisp_Object variables |
| 3009 | point to non-strings reached from Vbuffer_alist. */ | 3015 | point to non-strings reached from Vbuffer_alist. */ |
| @@ -3078,6 +3084,8 @@ Non-nil second argument means save only current buffer.") | |||
| 3078 | if (auto_saved && NILP (no_message)) | 3084 | if (auto_saved && NILP (no_message)) |
| 3079 | message1 (omessage ? omessage : "Auto-saving...done"); | 3085 | message1 (omessage ? omessage : "Auto-saving...done"); |
| 3080 | 3086 | ||
| 3087 | Vquit_flag = oquit; | ||
| 3088 | |||
| 3081 | auto_saving = 0; | 3089 | auto_saving = 0; |
| 3082 | return Qnil; | 3090 | return Qnil; |
| 3083 | } | 3091 | } |