diff options
| author | Jim Blandy | 1992-06-02 05:18:06 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-06-02 05:18:06 +0000 |
| commit | dfdb645c3e0e4e12bcdc506c96b11254ab32a80c (patch) | |
| tree | b53251265b28203d49e9a38e46297ce43df75e0f /src | |
| parent | 228d4b1c2ca4af62f74ba0a2edc03f962e20f544 (diff) | |
| download | emacs-dfdb645c3e0e4e12bcdc506c96b11254ab32a80c.tar.gz emacs-dfdb645c3e0e4e12bcdc506c96b11254ab32a80c.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 7 | ||||
| -rw-r--r-- | src/lread.c | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 102a8f28e64..fbfe3b702e7 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1860,6 +1860,9 @@ sit_for (sec, usec, reading, display) | |||
| 1860 | if (display) | 1860 | if (display) |
| 1861 | redisplay_preserve_echo_area (); | 1861 | redisplay_preserve_echo_area (); |
| 1862 | 1862 | ||
| 1863 | if (sec == 0 && usec == 0) | ||
| 1864 | return Qt; | ||
| 1865 | |||
| 1863 | #ifdef SIGIO | 1866 | #ifdef SIGIO |
| 1864 | gobble_input (); | 1867 | gobble_input (); |
| 1865 | #endif | 1868 | #endif |
| @@ -1907,10 +1910,6 @@ Value is t if waited the full time with no input arriving.") | |||
| 1907 | 1910 | ||
| 1908 | CHECK_NUMBER (arg, 0); | 1911 | CHECK_NUMBER (arg, 0); |
| 1909 | 1912 | ||
| 1910 | sec = XINT (arg); | ||
| 1911 | if (sec <= 0) | ||
| 1912 | return Qt; | ||
| 1913 | |||
| 1914 | if (!NILP (millisec)) | 1913 | if (!NILP (millisec)) |
| 1915 | { | 1914 | { |
| 1916 | #ifndef EMACS_HAS_USECS | 1915 | #ifndef EMACS_HAS_USECS |
diff --git a/src/lread.c b/src/lread.c index 930a9e56839..9477a11c421 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -513,21 +513,21 @@ point remains at the end of the last character read from the buffer.") | |||
| 513 | int count = specpdl_ptr - specpdl; | 513 | int count = specpdl_ptr - specpdl; |
| 514 | Lisp_Object tem, buf; | 514 | Lisp_Object tem, buf; |
| 515 | 515 | ||
| 516 | if (NIL_P (bufname)) | 516 | if (NILP (bufname)) |
| 517 | buf = Fcurrent_buffer (); | 517 | buf = Fcurrent_buffer (); |
| 518 | else | 518 | else |
| 519 | buf = Fget_buffer (bufname); | 519 | buf = Fget_buffer (bufname); |
| 520 | if (NIL_P (buf)) | 520 | if (NILP (buf)) |
| 521 | error ("No such buffer."); | 521 | error ("No such buffer."); |
| 522 | 522 | ||
| 523 | if (NIL_P (printflag)) | 523 | if (NILP (printflag)) |
| 524 | tem = Qsymbolp; | 524 | tem = Qsymbolp; |
| 525 | else | 525 | else |
| 526 | tem = printflag; | 526 | tem = printflag; |
| 527 | specbind (Qstandard_output, tem); | 527 | specbind (Qstandard_output, tem); |
| 528 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 528 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
| 529 | BUF_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); | 529 | BUF_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); |
| 530 | readevalloop (buf, 0, Feval, !NIL_P (printflag)); | 530 | readevalloop (buf, 0, Feval, !NILP (printflag)); |
| 531 | unbind_to (count); | 531 | unbind_to (count); |
| 532 | 532 | ||
| 533 | return Qnil; | 533 | return Qnil; |