# HG changeset patch # User Stefan Monnier # Date 1101739149 0 # Node ID 62f194448b68c870b985d7700e104122644e15a9 # Parent d03afca07655f5eefc69cb83594b9a6293c44dd3 (emacs_write): Don't use QUIT. diff -r d03afca07655 -r 62f194448b68 src/ChangeLog --- a/src/ChangeLog Mon Nov 29 07:37:45 2004 +0000 +++ b/src/ChangeLog Mon Nov 29 14:39:09 2004 +0000 @@ -1,10 +1,13 @@ +2004-11-29 Stefan Monnier + + * sysdep.c (emacs_write): Don't use QUIT. + 2004-11-29 Kenichi Handa * buffer.c (init_buffer): Set current_buffer->directory to a multibyte string made by string_to_multibyte. - * emacs.c (init_cmdargs): Set unibyte strings in - Vcommand_line_args. + * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args. 2004-11-27 Andreas Schwab @@ -13,8 +16,8 @@ * s/gnu-linux.h: Enable no-op gcpros on ia64. (GC_MARK_SECONDARY_STACK) [__ia64__]: Define. - * filelock.c (lock_file_1): Call get_boot_time early. Increase - buffer size. + * filelock.c (lock_file_1): Call get_boot_time early. + Increase buffer size. 2004-11-27 Eli Zaretskii diff -r d03afca07655 -r 62f194448b68 src/sysdep.c --- a/src/sysdep.c Mon Nov 29 07:37:45 2004 +0000 +++ b/src/sysdep.c Mon Nov 29 14:39:09 2004 +0000 @@ -3285,7 +3285,15 @@ if (rtnval == -1) { if (errno == EINTR) - { QUIT; continue; } + { +#ifdef SYNC_INPUT + /* I originally used `QUIT' but that might causes files to + be truncated if you hit C-g in the middle of it. --Stef */ + if (interrupt_input_pending) + handle_async_input (); +#endif + continue; + } else return (bytes_written ? bytes_written : -1); }