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, 22 Sep 2023 11:30:19 -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: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4342"; 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 Fri Sep 22 17:33:19 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 1qji9f-0000r5-5r for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 17:33:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qji9I-0001Hb-69; Fri, 22 Sep 2023 11:32:56 -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 1qji9E-0001Bb-P5 for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 11:32:54 -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 1qji9E-000139-EZ for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 11:32:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qji9O-0004Ob-Ef for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 11:33: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, 22 Sep 2023 15:33: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.169539673016827 (code B ref 62751); Fri, 22 Sep 2023 15:33:02 +0000 Original-Received: (at 62751) by debbugs.gnu.org; 22 Sep 2023 15:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:37126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qji8Y-0004NK-2Z for submit@debbugs.gnu.org; Fri, 22 Sep 2023 11:32:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qji8T-0004Mo-9i for 62751@debbugs.gnu.org; Fri, 22 Sep 2023 11:32:08 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 262B1440B36; Fri, 22 Sep 2023 11:31:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1695396707; bh=k9K2IuvxMlanJho09r74bsjjLPdmxSBMqAZbLo/SIQs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=aj2bL07OL4cCLbx2DmXnvv6srlYjJ7mNVcZP2Ws2SQwf3Dq5KyWzSnJtrz/5UeP4C xTv++HzTaB6hzCL4AUlQQ6gGSLrSZYQr2W4A6UyBQiWFhm+ujx692xFpmPLFIhrHmQ yy6b0wyN3jTYlJMvWvC118Ref2NJ1bj9ddLapxCmh/6foS1PWNMH9O3LlCGccxOGjz blltTFuKBFe756iIB7RCLBFtYIOZKdJ/TVT2K6RdKiUI46REEoiTQvWQ9cps0fDp6n zjR6MiV1/k6/QqnDamtY2y8GHrrbnh1XzlZ9eRul8bMNAb7hPRp5g3fNSyY8HVANdK OeKCjiJPxV/Jg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 73E1944093C; Fri, 22 Sep 2023 11:31:47 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 66E6E12022B; Fri, 22 Sep 2023 11:31:47 -0400 (EDT) In-Reply-To: <87h6nnfcy2.fsf@bernoul.li> (Jonas Bernoulli's message of "Thu, 21 Sep 2023 23:12:21 +0200") 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:271111 Archived-At: --=-=-= Content-Type: text/plain >> You're not wrong, but they were obsoleted in 24.5 and 25.1. So it's >> like above, but the dates are in 2025 and 2026, or something like that. BTW, what about `sit-for`s obsolete calling convention (obsoleted in 22.1)? Stefan --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=sit-for.patch diff --git a/lisp/subr.el b/lisp/subr.el index e88815fa58c..58274987d71 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -3408,7 +3408,7 @@ read-char-choice-with-read-key (message "%s%s" prompt (char-to-string char)) char)) -(defun sit-for (seconds &optional nodisp obsolete) +(defun sit-for (seconds &optional nodisp) "Redisplay, then wait for SECONDS seconds. Stop when input is available. SECONDS may be a floating-point value. \(On operating systems that do not support waiting for fractions of a @@ -3417,29 +3417,11 @@ sit-for If optional arg NODISP is t, don't redisplay, just wait for input. Redisplay does not happen if input is available before it starts. -Value is t if waited the full time with no input arriving, and nil otherwise. - -An obsolete, but still supported form is -\(sit-for SECONDS &optional MILLISECONDS NODISP) -where the optional arg MILLISECONDS specifies an additional wait period, -in milliseconds; this was useful when Emacs was built without -floating point support." - (declare (advertised-calling-convention (seconds &optional nodisp) "22.1") - (compiler-macro - (lambda (form) - (if (not (or (numberp nodisp) obsolete)) form - (macroexp-warn-and-return - (format-message "Obsolete calling convention for `sit-for'") - `(,(car form) (+ ,seconds (/ (or ,nodisp 0) 1000.0)) ,obsolete) - '(obsolete sit-for)))))) +Value is t if waited the full time with no input arriving, and nil otherwise." ;; This used to be implemented in C until the following discussion: ;; https://lists.gnu.org/r/emacs-devel/2006-07/msg00401.html ;; Then it was moved here using an implementation based on an idle timer, ;; which was then replaced by the use of read-event. - (if (numberp nodisp) - (setq seconds (+ seconds (* 1e-3 nodisp)) - nodisp obsolete) - (if obsolete (setq nodisp obsolete))) (cond (noninteractive (sleep-for seconds) --=-=-=--