--- Begin Message ---
Subject: |
Bug? sit-for and obsolete syntax |
Date: |
Sun, 14 Sep 2008 13:03:09 +0200 |
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.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#980: Bug? sit-for and obsolete syntax |
Date: |
Sun, 14 Sep 2008 15:08:26 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Christoph Conrad wrote:
> I checked the current CVS version by looking at the source of sit-for.
> The obsolete handling looks correct now.
Yes, this is fixed in Emacs 22.2 and up.
--- End Message ---