all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christoph Conrad <christoph.conrad@gmx.de>
To: bug-gnu-emacs@gnu.org
Subject: bug#980: Bug? sit-for and obsolete syntax
Date: Sun, 14 Sep 2008 13:03:09 +0200	[thread overview]
Message-ID: <87fxo32df6.fsf@ID-24456.user.uni-berlin.de> (raw)

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.







             reply	other threads:[~2008-09-14 11:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <hkljxuczpx.fsf@fencepost.gnu.org>
2008-09-14 11:03 ` Christoph Conrad [this message]
2008-09-14 18:01   ` bug#980: Bug? sit-for and obsolete syntax martin rudalics
2008-09-14 18:23     ` Christoph Conrad
2008-09-14 19:15   ` bug#980: marked as done (Bug? sit-for and obsolete syntax) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fxo32df6.fsf@ID-24456.user.uni-berlin.de \
    --to=christoph.conrad@gmx.de \
    --cc=980@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.