From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62751: 29.0.90; New libraries that still need to be assigned to packages Date: Sat, 14 Oct 2023 10:39:09 -0400 Message-ID: References: <87zg7fyjka.fsf@bernoul.li> <87wmwobgk6.fsf@bernoul.li> <87jzsnzeb5.fsf@bernoul.li> <87h6nnfcy2.fsf@bernoul.li> <83sf6dsnwh.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38948"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: jonas@bernoul.li, stefankangas@gmail.com, 62751@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 16:39:56 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrfo4-0009vn-G1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 16:39:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrfnp-0006qq-4g; Sat, 14 Oct 2023 10:39:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrfnn-0006qh-FR for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 10:39:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrfnm-0004rn-CR for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 10:39:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrfo9-00062N-OD for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 10:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 14:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62751 X-GNU-PR-Package: emacs Original-Received: via spool by 62751-submit@debbugs.gnu.org id=B62751.169729438323175 (code B ref 62751); Sat, 14 Oct 2023 14:40:01 +0000 Original-Received: (at 62751) by debbugs.gnu.org; 14 Oct 2023 14:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:50102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrfnr-00061j-4G for submit@debbugs.gnu.org; Sat, 14 Oct 2023 10:39:43 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrfno-00061V-Qs for 62751@debbugs.gnu.org; Sat, 14 Oct 2023 10:39:41 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8FE2D4417A8; Sat, 14 Oct 2023 10:39:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1697294349; bh=cLfHxN50QLczghng/ldqXioSgCoI4h89Aco+baUYkqY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SU22ukjNLWeahb8caqWw7FiPJY9Iew97k2Q/VmH6K6wKZ/eve13n80o0VFIsb6nLf YyxXHCF3sg0N/OGNGFs5Tp9UM0TabKttanipFRAg/WD2thnGum07fW+/rCP9lQDi7b efcd3EOjiQz6hF7W6j6U+w/3xWeCwUMM+VqJa5aRtOXMxH7CRbBkoR/WjFV3kx4toP naHfrTNzc1o6jGILfuXyHFT1u7guHallXPkCOLKxRqQeLaakVa+ozPM1MyFhazC099 e8dZUE5jsDJr5lrhioz9dB+2JsZ0NyAznw8ywAYG1msbqlvqyrZtVjs1FPIbgzrDHd 2oVzyFnF0tF7A== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E32B24415D4; Sat, 14 Oct 2023 10:39:09 -0400 (EDT) Original-Received: from pastel (unknown [45.72.216.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B17011203C5; Sat, 14 Oct 2023 10:39:09 -0400 (EDT) In-Reply-To: <83sf6dsnwh.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Oct 2023 09:45:18 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272427 Archived-At: >> BTW, how 'bout we drop the `millisec` arg of `sleep-for` as well (and >> the pretense that there are still systems that can only sleep for whole >> seconds)? > > Do we know which systems are/were those? I don't. And my intuition tells me that "waiting for a fraction of a second" was only part of the problem, and Emacs support for floating points was another. :-) > If not, how can we be sure they are no longer interesting? Because the code doesn't accommodate them any more anyway. Removing the arg (as opposed to just marking it obsolete) amounts to: -DEFUN ("sleep-for", Fsleep_for, Ssleep_for, 1, 2, 0, +DEFUN ("sleep-for", Fsleep_for, Ssleep_for, 1, 1, 0, doc: /* Pause, without updating display, for SECONDS seconds. SECONDS may be a floating-point value, meaning that you can wait for a -fraction of a second. Optional second arg MILLISECONDS specifies an -additional wait period, in milliseconds; this is for backwards compatibility. -\(Not all operating systems support waiting for a fraction of a second.) */) - (Lisp_Object seconds, Lisp_Object milliseconds) +fraction of a second. */) + (Lisp_Object seconds) { double duration = extract_float (seconds); - if (!NILP (milliseconds)) - { - CHECK_FIXNUM (milliseconds); - duration += XFIXNUM (milliseconds) / 1000.0; - } - if (duration > 0) { struct timespec t = dtotimespec (duration); -- Sefan