Mercurial > hg > xemacs-beta
comparison src/event-stream.c @ 116:9f59509498e1 r20-1b10
Import from CVS: tag r20-1b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:23:06 +0200 |
parents | fe104dbd9147 |
children | cca96a509cfe |
comparison
equal
deleted
inserted
replaced
115:f109f7dabbe2 | 116:9f59509498e1 |
---|---|
771 } | 771 } |
772 | 772 |
773 static void | 773 static void |
774 maybe_do_auto_save (void) | 774 maybe_do_auto_save (void) |
775 { | 775 { |
776 /* This function can GC */ | 776 /* This function can call lisp */ |
777 keystrokes_since_auto_save++; | 777 keystrokes_since_auto_save++; |
778 if (auto_save_interval > 0 && | 778 if (auto_save_interval > 0 && |
779 keystrokes_since_auto_save > max (auto_save_interval, 20) && | 779 keystrokes_since_auto_save > max (auto_save_interval, 20) && |
780 !detect_input_pending ()) | 780 !detect_input_pending ()) |
781 { | 781 { |
1977 synchronously with other events. `dispatch-event' knows what to do with | 1977 synchronously with other events. `dispatch-event' knows what to do with |
1978 these events. | 1978 these events. |
1979 */ | 1979 */ |
1980 (event, prompt)) | 1980 (event, prompt)) |
1981 { | 1981 { |
1982 /* This function can GC */ | 1982 /* This function can call lisp */ |
1983 /* #### We start out using the selected console before an event | 1983 /* #### We start out using the selected console before an event |
1984 is received, for echoing the partially completed command. | 1984 is received, for echoing the partially completed command. |
1985 This is most definitely wrong -- there needs to be a separate | 1985 This is most definitely wrong -- there needs to be a separate |
1986 echo area for each console! */ | 1986 echo area for each console! */ |
1987 struct console *con = XCONSOLE (Vselected_console); | 1987 struct console *con = XCONSOLE (Vselected_console); |