unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Revamping sit-for
Date: Fri, 7 Jul 2006 20:53:12 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMCEHICJAA.drew.adams@oracle.com> (raw)
In-Reply-To: <87psggub7b.fsf@stupidchicken.com>

    > Excuse me if I'm misunderstanding, but how can you change the
    > signature of
    > sit-for in a way that breaks existing code? IIUC, it is changing from
    >
    >   (sit-for seconds)
    >   (sit-for seconds milliseconds)
    >   (sit-for seconds milliseconds nodisp)
    >
    > to
    >
    >   (sit-for seconds)
    >   (sit-for seconds nodisp)
    >   (sit-for seconds nodisp obsolete)
    >
    > That means that existing calls that use the milliseconds arg
    > will be newly interpreted to consider that arg as a
    > no-display arg, no?

    No.  If the third argument is non-nil, it uses the old behavior.  But
    this is considered an obsolete behavior, so it is only briefly
    explained in the docstring; all this is identical to the current
    behavior.

If everything is identical to the current behavior, then the doc string
seems very wrong.

The doc string says, to me, that an existing call of (sit-for 3 200), which
previously simply waited 3.2 sec, with no inhibition of display, will now be
interpreted as a wait of 3.0 sec, with inhibition of display. That's a
serious change in behavior.

I don't see how else to read the doc string: (sit-for 3 200) fits the
pattern (sit-for seconds nodisp), and it says that nodisp non-nil means no
redisplay.

You mention the third arg being non-nil, saying that in that case it uses
the old behavior. Even it that is the case (and it should be so stated, if
so), what about when the third arg is nil?

Sorry, but I just don't get this. What's the magic or the missing
ingredient?

  reply	other threads:[~2006-07-08  3:53 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-01 23:55 [simon.marshall@misys.com: Lingering input pending with motif menu bar] Richard Stallman
2006-07-04  1:13 ` Chong Yidong
2006-07-04  9:08   ` Kim F. Storm
2006-07-04 13:45     ` Chong Yidong
2006-07-04 20:53       ` Richard Stallman
2006-07-04 21:21         ` [simon.marshall@misys.com: Lingering input pending with motifmenu bar] Drew Adams
2006-07-05 17:01           ` Richard Stallman
2006-07-05 20:48             ` [simon.marshall@misys.com: Lingering input pending withmotifmenu bar] Drew Adams
2006-07-07  4:14               ` Richard Stallman
2006-07-05 17:01           ` [simon.marshall@misys.com: Lingering input pending with motifmenu bar] Richard Stallman
2006-07-05  0:06         ` [simon.marshall@misys.com: Lingering input pending with motif menu bar] Chong Yidong
2006-07-05  9:04           ` Kim F. Storm
2006-07-04 17:03     ` [simon.marshall@misys.com: Lingering input pending with motifmenu bar] Drew Adams
2006-07-07 21:55 ` Revamping sit-for [Was: Lingering input pending with motif menu bar] Chong Yidong
2006-07-07 22:02   ` Revamping sit-for David Kastrup
2006-07-07 22:58   ` Revamping sit-for [Was: Lingering input pending with motif menu bar] Drew Adams
2006-07-08  1:39     ` Revamping sit-for Chong Yidong
2006-07-08  3:53       ` Drew Adams [this message]
2006-07-08 12:00         ` Chong Yidong
2006-07-08 12:36           ` David Kastrup
2006-07-08 12:56             ` Romain Francoise
2006-07-08 12:40           ` Stefan Monnier
2006-07-08 15:41           ` Drew Adams
2006-07-08 20:57           ` Richard Stallman
2006-07-08 15:31   ` Revamping sit-for [Was: Lingering input pending with motif menu bar] Richard Stallman
2006-07-08 22:49     ` Kim F. Storm
2006-07-09 19:03       ` Richard Stallman
2006-07-10 12:10         ` Kim F. Storm
2006-07-11  5:50           ` Richard Stallman
2006-07-08 23:02     ` Kim F. Storm
2006-07-10 19:47     ` Revamping sit-for Chong Yidong
2006-07-11  0:24       ` Chong Yidong
2006-07-11 18:16         ` Richard Stallman
2006-07-11 18:39           ` Kim F. Storm
2006-07-12 19:22             ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=EIENLHALHGIMHGDOLMIMCEHICJAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).