[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#980: Bug? sit-for and obsolete syntax
From: |
martin rudalics |
Subject: |
bug#980: Bug? sit-for and obsolete syntax |
Date: |
Sun, 14 Sep 2008 20:01:18 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
> GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
> 2008-05-03 on terranova, modified by Ubuntu
>
> sit-for supports an obsolete call syntax with
>
> (sit-for SECONDS &optional MILLISECONDS NODISP)
>
> according to the doc string.
>
> It checks:
>
> (when (or obsolete (numberp nodisp))
> (setq seconds (+ seconds (* 1e-3 nodisp)))
> (setq nodisp obsolete))
>
> the first logical 'or' should be imho 'and'. Else obsolete could be
> non-nil, but nodisp could be no number (e.g. nil), and that results in
> an error when multiplying.
The definition of `sit-for' has been changed by Glenn as
* subr.el (sit-for): Fix obsolete form for nil second argument.
on 2008-02-21. I'm not sure whether that has fixed the problem you see,
so could you please verify by having a look at the current CVS version?
Thank you very much, martin.