Mercurial > hg > xemacs-beta
comparison src/event-stream.c @ 44:8d2a9b52c682 r19-15prefinal
Import from CVS: tag r19-15prefinal
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:55:10 +0200 |
parents | e04119814345 |
children | 56c54cf7c5b6 |
comparison
equal
deleted
inserted
replaced
43:23cafc5d2038 | 44:8d2a9b52c682 |
---|---|
760 } | 760 } |
761 | 761 |
762 static void | 762 static void |
763 maybe_do_auto_save (void) | 763 maybe_do_auto_save (void) |
764 { | 764 { |
765 /* This function can GC */ | 765 /* This function can call lisp */ |
766 keystrokes_since_auto_save++; | 766 keystrokes_since_auto_save++; |
767 if (auto_save_interval > 0 && | 767 if (auto_save_interval > 0 && |
768 keystrokes_since_auto_save > max (auto_save_interval, 20) && | 768 keystrokes_since_auto_save > max (auto_save_interval, 20) && |
769 !detect_input_pending ()) | 769 !detect_input_pending ()) |
770 { | 770 { |
1966 synchronously with other events. `dispatch-event' knows what to do with | 1966 synchronously with other events. `dispatch-event' knows what to do with |
1967 these events. | 1967 these events. |
1968 */ | 1968 */ |
1969 (event, prompt)) | 1969 (event, prompt)) |
1970 { | 1970 { |
1971 /* This function can GC */ | 1971 /* This function can call lisp */ |
1972 /* #### We start out using the selected console before an event | 1972 /* #### We start out using the selected console before an event |
1973 is received, for echoing the partially completed command. | 1973 is received, for echoing the partially completed command. |
1974 This is most definitely wrong -- there needs to be a separate | 1974 This is most definitely wrong -- there needs to be a separate |
1975 echo area for each console! */ | 1975 echo area for each console! */ |
1976 struct console *con = XCONSOLE (Vselected_console); | 1976 struct console *con = XCONSOLE (Vselected_console); |