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: Fri, 13 Oct 2023 19:33:35 -0400 Message-ID: References: <87zg7fyjka.fsf@bernoul.li> <87wmwobgk6.fsf@bernoul.li> <87jzsnzeb5.fsf@bernoul.li> <87h6nnfcy2.fsf@bernoul.li> 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="10340"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Jonas Bernoulli , 62751@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 01:34:58 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 1qrRgI-0002Oq-Bv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 01:34:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrRg2-0000po-FC; Fri, 13 Oct 2023 19:34:42 -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 1qrRg0-0000nn-EY for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 19:34:40 -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 1qrRg0-0004dC-5H for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 19:34:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrRgM-0002ti-KY for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 19:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2023 23:35:02 +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.169724004811062 (code B ref 62751); Fri, 13 Oct 2023 23:35:02 +0000 Original-Received: (at 62751) by debbugs.gnu.org; 13 Oct 2023 23:34:08 +0000 Original-Received: from localhost ([127.0.0.1]:47549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrRfU-0002sL-0A for submit@debbugs.gnu.org; Fri, 13 Oct 2023 19:34:08 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrRfS-0002rr-5G for 62751@debbugs.gnu.org; Fri, 13 Oct 2023 19:34:07 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3F7C9100143; Fri, 13 Oct 2023 19:33:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1697240015; bh=M8TpoXjFCwp04h5jiPPWq81U8ExIK8qEJ2P/OTVTekU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XoMIaAXOnHk+9P8mvTYEsgenrXwHk1bqi98QDYgIFlkXgLrRhHLyp5Nvs61QF7ymP AK7oxSk4eitO27pOUt7dR+mY+mLKQvvlfhRAkDKMXYvXP/2AG3KAmLfyuEpoHaTIwK KlBOHbZZOQwgsRzw5V3MkIMnnfulGfaeWC1C3FhbRTr2c/nah0s/Gqno2n+/pSYhEI fEOlZ7jjQyDPZFmYHronLn+az+8n9sZzAKHqP6DiCfDiE6/9u5SQRWHpbwU00srYCo yViRwfgOPs70Md+dTuY+a5bnWKPkUjGl7l7opjs056FsX1qsPY9XCrziqKE6HfQQ7N mMTb1Hn3LywAw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E724E100068; Fri, 13 Oct 2023 19:33:35 -0400 (EDT) Original-Received: from pastel (69-165-150-80.dsl.teksavvy.com [69.165.150.80]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B33421201BB; Fri, 13 Oct 2023 19:33:35 -0400 (EDT) In-Reply-To: (Stefan Kangas's message of "Sat, 23 Sep 2023 04:35:21 -0700") 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:272364 Archived-At: >> BTW, what about `sit-for`s obsolete calling convention (obsoleted in 22.1)? > Yeah, it's probably time to remove it. Done, thanks, 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)? Stefan diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index fdf5ec1d7fe..7fee967d0ee 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi @@ -3969,20 +3969,17 @@ Waiting thus equivalent to @code{sleep-for}, which is described below. @end defun -@defun sleep-for seconds &optional millisec +@defun sleep-for seconds This function simply pauses for @var{seconds} seconds without updating the display. It pays no attention to available input. It returns @code{nil}. The argument @var{seconds} need not be an integer. If it is floating point, @code{sleep-for} waits for a fractional number of seconds. -Some systems support only a whole number of seconds; on these systems, -@var{seconds} is rounded down. -The optional argument @var{millisec} specifies an additional waiting -period measured in milliseconds. This adds to the period specified by -@var{seconds}. If the system doesn't support waiting fractions of a -second, you get an error if you specify nonzero @var{millisec}. +It is also possible to call @code{sleep-for} with two arguments, +as @code{(sleep-for @var{seconds} @var{millisec})}, +but that is considered obsolete. Use @code{sleep-for} when you wish to guarantee a delay. @end defun diff --git a/lisp/subr.el b/lisp/subr.el index 58274987d71..a2315110a0d 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1959,6 +1959,7 @@ log10 (set-advertised-calling-convention 'redirect-frame-focus '(frame focus-frame) "24.3") (set-advertised-calling-convention 'libxml-parse-xml-region '(&optional start end base-url) "27.1") (set-advertised-calling-convention 'libxml-parse-html-region '(&optional start end base-url) "27.1") +(set-advertised-calling-convention 'sleep-for '(seconds) "30.1") (set-advertised-calling-convention 'time-convert '(time form) "29.1") ;;;; Obsolescence declarations for variables, and aliases. diff --git a/src/dispnew.c b/src/dispnew.c index d6a27ac29ec..e4037494775 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6206,9 +6206,9 @@ bitch_at_user (void) DEFUN ("sleep-for", Fsleep_for, Ssleep_for, 1, 2, 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.) */) +fraction of a second. +An optional second arg MILLISECONDS can be provided but is deprecated: +it specifies an additional wait period, in milliseconds. */) (Lisp_Object seconds, Lisp_Object milliseconds) { double duration = extract_float (seconds);