Changeset 4132

Show
Ignore:
Timestamp:
07/31/06 08:16:22 (2 years ago)
Author:
miyoshi
Message:

* process.c (wait_reading_process_output): Reset `got_some_input'
when timeout has occured.

* keyboard.c (kbd_buffer_get_event): Call note_sync_event() even
if the end time is specified.
(kbd_buffer_get_event): Call read_avail_input() with the return
value of wait_reading_process_output().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ChangeLog.Meadow

    r4131 r4132  
     12006-07-31  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * process.c (wait_reading_process_output): Reset `got_some_input' 
     4        when timeout has occured. 
     5 
     6        * keyboard.c (kbd_buffer_get_event): Call note_sync_event() even 
     7        if the end time is specified. 
     8        (kbd_buffer_get_event): Call read_avail_input() with the return 
     9        value of wait_reading_process_output(). 
     10 
    1112006-07-29  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    212 
  • trunk/src/keyboard.c

    r4131 r4132  
    39413941  register int c; 
    39423942  Lisp_Object obj; 
     3943#ifdef MEADOW 
     3944  int have_input; 
     3945  extern void note_sync_event (void); 
     3946#endif 
    39433947 
    39443948  if (noninteractive) 
     
    39893993            return Qnil; 
    39903994          else 
     3995#ifdef MEADOW 
     3996            { 
     3997              note_sync_event (); 
     3998              have_input = wait_reading_process_output (EMACS_SECS (duration), 
     3999                                                        EMACS_USECS (duration), 
     4000                                                        -1, 1, Qnil, NULL, 0); 
     4001            } 
     4002#else 
    39914003            wait_reading_process_output (EMACS_SECS (duration), 
    39924004                                         EMACS_USECS (duration),  
    39934005                                         -1, 1, Qnil, NULL, 0); 
     4006#endif 
    39944007        } 
    39954008      else 
    39964009#ifdef MEADOW 
    39974010        { 
    3998         extern void note_sync_event (void); 
    3999  
    4000         note_sync_event (); 
    4001 #endif /* MEADOW */ 
    4002  
     4011          note_sync_event (); 
     4012          have_input = wait_reading_process_output (0, 0, -1, 1, 
     4013                                                   Qnil, NULL, 0); 
     4014        } 
     4015#else 
    40034016        wait_reading_process_output (0, 0, -1, 1, Qnil, NULL, 0); 
     4017 
     4018#endif 
     4019      if (!interrupt_input && kbd_fetch_ptr == kbd_store_ptr) 
    40044020#ifdef MEADOW 
    4005         } 
    4006 #endif /* MEADOW */ 
    4007  
    4008       if (!interrupt_input && kbd_fetch_ptr == kbd_store_ptr) 
     4021        read_avail_input (have_input); 
     4022#else 
    40094023        /* Pass 1 for EXPECT since we just waited to have input.  */ 
    40104024        read_avail_input (1); 
     4025#endif 
    40114026#endif /* not VMS */ 
    40124027    } 
  • trunk/src/process.c

    r4111 r4132  
    46184618 
    46194619      if (time_limit && nfds == 0 && ! timeout_reduced_for_timers) 
     4620#ifdef MEADOW 
     4621        { 
     4622        /* This is a temporary hack and should be removed soon. 
     4623           Refer to [meadow-develop: 7431]. */ 
     4624        got_some_input = 0; 
     4625#endif 
    46204626        /* We wanted the full specified time, so return now.  */ 
    46214627        break; 
     4628#ifdef MEADOW 
     4629        } 
     4630#endif 
    46224631      if (nfds < 0) 
    46234632        {