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: Thu, 28 Apr 2022 13:15:54 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87sfpxxyvb.fsf@3-191.divsi.unimi.it> <87zgk5jtm6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------EJDWBR5HCECe50pcMHAv0nPT" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9445"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Cc: Vincenzo Pupillo , 55163@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 22:17:20 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 1nkAZi-0002Dd-Kc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 22:17:18 +0200 Original-Received: from localhost ([::1]:47392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkAZh-0004dh-IA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 16:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkAZT-0004Xj-6Q for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 16:17:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkAZS-0005ev-LA for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 16:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkAZS-00065u-G6 for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2022 20:17: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.165117696723357 (code B ref 55163); Thu, 28 Apr 2022 20:17:02 +0000 Original-Received: (at 55163) by debbugs.gnu.org; 28 Apr 2022 20:16:07 +0000 Original-Received: from localhost ([127.0.0.1]:50067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkAYY-00064e-N2 for submit@debbugs.gnu.org; Thu, 28 Apr 2022 16:16:07 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkAYU-00063t-U2 for 55163@debbugs.gnu.org; Thu, 28 Apr 2022 16:16:05 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 84B8B1600C0; Thu, 28 Apr 2022 13:15: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 0AApXfHaRrCm; Thu, 28 Apr 2022 13:15:55 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D57031600F4; Thu, 28 Apr 2022 13:15:55 -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 0L3OIqpkEfDK; Thu, 28 Apr 2022 13:15:55 -0700 (PDT) Original-Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AFBEB1600C0; Thu, 28 Apr 2022 13:15:55 -0700 (PDT) Content-Language: en-US In-Reply-To: <87zgk5jtm6.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:230909 Archived-At: This is a multi-part message in MIME format. --------------EJDWBR5HCECe50pcMHAv0nPT Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/28/22 05:10, Lars Ingebrigtsen wrote: > Paul, it seems like this change is just breaking too much code out > there, so I think it'll have to be reverted. Yes, I came to pretty much the same conclusion. I installed the attached patch to revert the effect of the change. Instead, this patch adds a new variable current-time-list that lets you try out the new timestamp behavior, with the default being the longstanding behavior. This was separate from the long thread we had about exposing clock_getres results to the user, as it doesn't involve calling clock_getres; it's merely about timestamp format. Also, I notice that current-cpu-time was recently added; I'll try to spring some time free to look into it and will follow up on Bug#44674. --------------EJDWBR5HCECe50pcMHAv0nPT Content-Type: text/x-patch; charset=UTF-8; name="0001-Change-current-time-back-to-list-form.patch" Content-Disposition: attachment; filename="0001-Change-current-time-back-to-list-form.patch" Content-Transfer-Encoding: base64 RnJvbSAwODNkMjcwOGY5ZWM3ZjA5NzEyNDg4YTk5ZmM5ZWVkZDNkNTk0ZmY2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUaHUsIDI4IEFwciAyMDIyIDEyOjUwOjM5IC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gQ2hhbmdlIGN1cnJlbnQtdGltZSBiYWNrIHRvIGxpc3QgZm9ybQoKQ2hhbmdlIGN1cnJl bnQtdGltZSBhbmQgcmVsYXRlZCBmdW5jdGlvbnMgYmFjayB0byB1c2luZyB0aGUKdHJhZGl0 aW9uYWwgbGlzdCBmb3JtLiAgQWxzbywgYWRkIGEgbmV3IGJvb2xlYW4gdmFyaWFibGUKY3Vy cmVudC10aW1lLWxpc3QgdGhhdCBsZXRzIHBlb3BsZSB0cnkgb3V0IChUSUNLUyAuIEhaKSBm b3JtLAp3aXRoIHRoZSBnb2FsIG9mIHNtb290aGluZyB0aGUgdHJhbnNpdGlvbi4KKiBzcmMv dGltZWZucy5jIChDVVJSRU5UX1RJTUVfTElTVCk6IENoYW5nZSBkZWZhdWx0IGJhY2sgdG8g dHJ1ZS4KKGN1cnJlbnQtdGltZS1saXN0KTogTmV3IGJvb2xlYW4gTGlzcCB2YXJpYWJsZSwg d2hpY2ggZGVmYXVsdHMgdG8KQ1VSUkVOVF9USU1FX0xJU1QuICBBbGwgdXNlcyBvZiBDVVJS RU5UX1RJTUVfTElTVCBjaGFuZ2VkIHRvCnVzZSBjdXJyZW50X3RpbWVfbGlzdCwgYW5kIGFs bCBkb2N1bWVudGF0aW9uIGNoYW5nZWQuCi0tLQogZG9jL2xpc3BpbnRyby9lbWFjcy1saXNw LWludHJvLnRleGkgfCAgOSArKysrLS0KIGRvYy9saXNwcmVmL2ZpbGVzLnRleGk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