Changeset 4148 for trunk/src/keyboard.c
- Timestamp:
- 08/18/06 08:35:31 (2 years ago)
- Files:
-
- trunk/src/keyboard.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/keyboard.c
r4140 r4148 110 110 /* File descriptor to use for input. */ 111 111 extern int input_fd; 112 113 /* Nonzero if we are executing from the SIGIO signal handler. */ 114 int in_sighandler; 112 115 113 116 #ifdef HAVE_WINDOW_SYSTEM … … 2689 2692 } 2690 2693 2691 timer_start_idle (); 2694 /* Start idle timers if no time limit is supplied. We don't do it 2695 if a time limit is supplied to avoid an infinite recursion in the 2696 situation where an idle timer calls `sit-for'. */ 2697 2698 if (!end_time) 2699 timer_start_idle (); 2692 2700 2693 2701 /* If in middle of key sequence and minibuffer not active, … … 2759 2767 2760 2768 /* Now that we have read an event, Emacs is not idle. */ 2761 timer_stop_idle (); 2769 if (!end_time) 2770 timer_stop_idle (); 2762 2771 2763 2772 goto exit; … … 2889 2898 save_getcjmp (save_jump); 2890 2899 restore_getcjmp (local_getcjmp); 2891 timer_start_idle (); 2900 if (!end_time) 2901 timer_start_idle (); 2892 2902 c = kbd_buffer_get_event (&kb, used_mouse_menu, end_time); 2893 2903 restore_getcjmp (save_jump); … … 2941 2951 non_reread: 2942 2952 2943 timer_stop_idle (); 2953 if (!end_time) 2954 timer_stop_idle (); 2944 2955 RESUME_POLLING; 2945 2956 … … 2975 2986 Fcommand_execute (tem, Qnil, Fvector (1, &last_input_char), Qt); 2976 2987 2977 if (CONSP (c) && EQ (XCAR (c), Qselect_window) )2988 if (CONSP (c) && EQ (XCAR (c), Qselect_window) && !end_time) 2978 2989 /* We stopped being idle for this event; undo that. This 2979 2990 prevents automatic window selection (under … … 3181 3192 3182 3193 /* We stopped being idle for this event; undo that. */ 3183 timer_resume_idle (); 3194 if (!end_time) 3195 timer_resume_idle (); 3184 3196 goto retry; 3185 3197 } … … 7067 7079 #endif 7068 7080 7081 in_sighandler = 1; 7082 7069 7083 if (input_available_clear_time) 7070 7084 EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0); … … 7078 7092 #endif 7079 7093 errno = old_errno; 7094 in_sighandler = 0; 7080 7095 } 7081 7096 #endif /* SIGIO */ … … 10984 10999 #endif 10985 11000 input_pending = 0; 11001 in_sighandler = 0; 10986 11002 10987 11003 /* This means that command_loop_1 won't try to select anything the first
