From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#55163: 29.0.50; master 4a1f69ebca (TICKS . HZ) for current-time broke lsp-mode Date: Sat, 30 Apr 2022 14:03:55 -0700 Organization: UCLA Computer Science Department Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15776"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Cc: Vincenzo Pupillo , 55163@debbugs.gnu.org, Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 30 23:05:31 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 1nkuHS-0003zQ-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Apr 2022 23:05:30 +0200 Original-Received: from localhost ([::1]:46584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkuHR-00021T-Cg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Apr 2022 17:05:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkuH0-00021I-Bt for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2022 17:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkuH0-0007bh-1w for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2022 17:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkuGz-0005uy-T2 for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2022 17:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2022 21:05:01 +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.165135264422672 (code B ref 55163); Sat, 30 Apr 2022 21:05:01 +0000 Original-Received: (at 55163) by debbugs.gnu.org; 30 Apr 2022 21:04:04 +0000 Original-Received: from localhost ([127.0.0.1]:59161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkuG4-0005tb-9f for submit@debbugs.gnu.org; Sat, 30 Apr 2022 17:04:04 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkuG2-0005t8-P8 for 55163@debbugs.gnu.org; Sat, 30 Apr 2022 17:04:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4FD701600C2; Sat, 30 Apr 2022 14:03:57 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FnI2OmK0deOH; Sat, 30 Apr 2022 14:03:56 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 776521600D1; Sat, 30 Apr 2022 14:03:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SjcrfizNJbQ8; Sat, 30 Apr 2022 14:03:56 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 257341600C2; Sat, 30 Apr 2022 14:03:56 -0700 (PDT) Content-Language: en-US In-Reply-To: <87pmkz53vf.fsf@gnus.org> 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:231076 Archived-At: 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. 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.