From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Conrad Newsgroups: gmane.emacs.bugs Subject: bug#980: Bug? sit-for and obsolete syntax Date: Sun, 14 Sep 2008 13:03:09 +0200 Message-ID: <87fxo32df6.fsf@ID-24456.user.uni-berlin.de> Reply-To: Christoph Conrad , 980@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1221391722 18126 80.91.229.12 (14 Sep 2008 11:28:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2008 11:28:42 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 14 13:29:38 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KepnO-0002L3-0c for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 13:29:38 +0200 Original-Received: from localhost ([127.0.0.1]:36379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KepmN-0008GR-9I for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 07:28:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeplT-0007tu-Hp for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:27:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeplQ-0007t9-Su for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:27:38 -0400 Original-Received: from [199.232.76.173] (port=50845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeplQ-0007t2-GX for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:27:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58066) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KeplQ-00027c-0V for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:27:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8EBRYVk025059; Sun, 14 Sep 2008 04:27:34 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8EBF3C2020112; Sun, 14 Sep 2008 04:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Christoph Conrad Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 14 Sep 2008 11:15:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 980 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122139048818202 (code B ref -1); Sun, 14 Sep 2008 11:15:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 Sep 2008 11:08:08 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8EB841J018081 for ; Sun, 14 Sep 2008 04:08:06 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KepSV-0006o7-Jg for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:08:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KepST-0006lg-Mm for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:08:02 -0400 Original-Received: from [199.232.76.173] (port=37934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KepST-0006lG-35 for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:08:01 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:54361) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KepSS-0006T2-9D for bug-gnu-emacs@gnu.org; Sun, 14 Sep 2008 07:08:00 -0400 Original-Received: (qmail invoked by alias); 14 Sep 2008 11:07:57 -0000 Original-Received: from xdsl-87-79-49-203.netcologne.de (EHLO brabbelbox) [87.79.49.203] by mail.gmx.net (mp067) with SMTP; 14 Sep 2008 13:07:57 +0200 X-Authenticated: #4523881 X-Provags-ID: V01U2FsdGVkX19qZb8pkMdqlXBBku8PfEhvvHcQ8TJXPo0VJiCO24 EbHb+G7b5CMBaF Original-Received: by brabbelbox (Postfix, from userid 1000) id 636B0AC174; Sun, 14 Sep 2008 13:07:57 +0200 (CEST) X-Public-Key: http://wwwkeys.de.pgp.net:11371/pks/lookup?op=get&search=0x1B488DEA X-Hashcash: 1:20:080914:bug-gnu-emacs@gnu.org::rxOG05kYuH1Qj5jR:000000000000000000000000000000000000000040nV X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 14 Sep 2008 07:27:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20533 Archived-At: 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.