From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55163: 29.0.50; master 4a1f69ebca (TICKS . HZ) for current-time broke lsp-mode Date: Sun, 01 May 2022 08:40:51 +0300 Message-ID: <83levl7qu4.fsf@gnu.org> References: <87sfpxxyvb.fsf@3-191.divsi.unimi.it> <87zgk5jtm6.fsf@gnus.org> <87o80kj2q1.fsf@gnus.org> <878rroi5a8.fsf@gnus.org> <156b848f-0ba3-a2d8-a343-314e24d37934@cs.ucla.edu> <87pmkz53vf.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9943"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, v.pupillo@gmail.com, 55163@debbugs.gnu.org, monnier@IRO.UMontreal.CA To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 01 07:42:55 2022 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 1nl2MA-0002Rs-Q7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 07:42:54 +0200 Original-Received: from localhost ([::1]:38736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nl2M9-0004KH-8G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 01:42:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl2LK-0004Hg-Vs for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 01:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nl2LK-0000A5-JT for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 01:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nl2LK-0001gZ-GT for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 01:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2022 05:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55163 X-GNU-PR-Package: emacs Original-Received: via spool by 55163-submit@debbugs.gnu.org id=B55163.16513836716420 (code B ref 55163); Sun, 01 May 2022 05:42:02 +0000 Original-Received: (at 55163) by debbugs.gnu.org; 1 May 2022 05:41:11 +0000 Original-Received: from localhost ([127.0.0.1]:59371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl2KU-0001fU-Pr for submit@debbugs.gnu.org; Sun, 01 May 2022 01:41:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl2KS-0001fG-2p for 55163@debbugs.gnu.org; Sun, 01 May 2022 01:41:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl2KM-0008TA-GF; Sun, 01 May 2022 01:41:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PBE/w8c6pn1OM9HS+VzLkTj+0+zEj0G0Tjj9iLtYG0M=; b=Zq8JqVIjpWms HamiZzuBecRj1A/7Q2mRJ/ke/HzBGUXLHre4VUDGSCWMF+7H5hASJsIToAjKd0/fyRnJDu3V9tkBp YoN/q4GAUpEkSmehz0It2QxueaOsnRSgd4g6xZ13ZLonk9NQ/Sl7QNhz9bHpbsSsdcmKgkLauUg+R tT5HN/HBYvlwkEmLG3LjgBOOUwHKTy7x5Hx64cAZjgCYwpSIyjVs740BP+dWNLfwmppxhnY69EG26 19HX9rCyIShDt8rdp3UOYaSs217ahdo+3ORe9l7qmop3CukkUAh5PVy1hzxQOfZ51YuFpZedKo0R6 UV67o/QlK4/hDgjfO0uUDQ==; Original-Received: from [87.69.77.57] (port=1534 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl2K5-0001N3-Ec; Sun, 01 May 2022 01:41:00 -0400 In-Reply-To: (message from Paul Eggert on Sat, 30 Apr 2022 14:03:55 -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" Xref: news.gmane.io gmane.emacs.bugs:231087 Archived-At: > Date: Sat, 30 Apr 2022 14:03:55 -0700 > Cc: 55163@debbugs.gnu.org, Eli Zaretskii , > Vincenzo Pupillo , > Stefan Monnier > From: Paul Eggert > > On 4/30/22 02:15, Lars Ingebrigtsen wrote: > >> * (clock-realtime) returns the system-wide clock. It acts like > >> (time-convert nil t), i.e., like (current-time) but returning (TICKS > >> . HZ) form. > > clock- as a prefix does make a lot of sense, but I think I'd interpret > > that as "realtime" as something having to do with scheduling > > Yes, "realtime" is an unfortunate phrase here, even if it's POSIX. > Perhaps we should use "universal" instead, since it's Universal Time. Using "universal" will IMO make the discovery even more difficult, because no one will think of looking up time functions under "universal". > Another thought is that instead of a new Lisp function, we could extend > current-time. E.g., (current-time 'universal) would return the current > time in seconds since the EPOCH, (current-time 'process-cpu) the > process's CPU time, (current-time 'monotonic) a monotonic clock, etc. > Although this wouldn't let us reorganize the time API in a major way, it > would let us add the needed functionality in a way that follows existing > practice pretty closely, and there's benefit to that. That could be a good idea, but thinking about names, I still don't understand why we don't want to use "time-" as the prefix of these APIs. What did I miss?