From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0DHrKyYVa2LsgQEAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 00:28:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UK3MKyYVa2Ky6QAA9RJhRA (envelope-from ) for ; Fri, 29 Apr 2022 00:28:54 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 63CFE8941 for ; Fri, 29 Apr 2022 00:28:54 +0200 (CEST) Received: from localhost ([::1]:35058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkCd3-00019Y-4b for larch@yhetil.org; Thu, 28 Apr 2022 18:28:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkCcC-00017m-3F; Thu, 28 Apr 2022 18:28:00 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkCc8-00009s-TS; Thu, 28 Apr 2022 18:27:58 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7F2D61600BE; Thu, 28 Apr 2022 15:27:53 -0700 (PDT) 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 x-VYnUUMEDdy; Thu, 28 Apr 2022 15:27:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C82841600C0; Thu, 28 Apr 2022 15:27:52 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 3P7mlwjKhCdh; Thu, 28 Apr 2022 15:27:52 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9E9741600BE; Thu, 28 Apr 2022 15:27:52 -0700 (PDT) Message-ID: Date: Thu, 28 Apr 2022 15:27:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc. Content-Language: en-US To: Stefan Monnier References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Barton , emacs-orgmode , emacs-devel@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651184934; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=eT7if1ZFD78E6oGjRWDqcY9V/rNBFJays6u/6unK5YA=; b=C1JuPWa3Un/oztz6i34bOxJRhO46cZbYuEStn+e4l90/CEEQDIHbn/B9z/Di1QyKTtJKqK mrpr1fA2NgKZaLRADjGTFBfd84NTw2JXu/UUNSNXtEwRosa2CKXZcxT//g2V+uqxoipVNk U8HJ9a8d3kkYun4iWS8kGlMB7/z4NSdj5HeDDmDDan1UsArpkI1ywuuT4NiQ0v3rXKhinx qcBDDmRwnxIF2iKjX02QVUxuHplhSDXg2BRlKPJvCxBk+c+Fh1wVVifk7C/1tRh7UWkTT5 02TRhR5bbg3bHdi+zI002o+GO1xT89slb+Z0x31aiwmzvkxzsAp/xPi9AgaokA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651184934; a=rsa-sha256; cv=none; b=lmo/G55d5wemF7FunhPPHov3nrZmIuDZWoZqqZ7MEZYqtAU0AN+mmLgI2ZwGGcjruxHalI GEq/v7AjqgiEREaAF3KLDF29Ei3MVLSV+XjNJ7KR0tEwPdXyBN7U5i0993Tp/25N7E+0LU bAsjZ1QGX6yll2DKJiBWjE9mcaPeHO0BwOGeSKlh1isyIEy9xqme6xREHb53sawqx80L7y u4CLPCqkwh3hZrIsHULZu1+ZWV2G3kOe+fAjPpIrPmmuLb+YhHjxROOMdq01GP7APp1PzK xH2MaSVIVBaty5VZoU0VjyrYHY824XORbIjlqRhBhowexOf6oJF1ktWvnltQKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 63CFE8941 X-Spam-Score: -3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: yl5oSJZ4/VDD On 4/27/22 09:55, Stefan Monnier wrote: > Instead of rounding the times to whole seconds, wouldn't it make more > sense to check that the difference is larger than 1s? org-file-newer-than-p is intended to work on filesystems like HFS+ that store just the seconds part of the last-modified time. Since these filesystems take the floor of the system time, taking the floor should be the most-accurate way to work around timestamp truncation issues, where comparing one timestamp that comes from an HFS+ filesystem to another timestamp coming from some other source (which is how org-file-newer-than-p is used). The code won't work as desired on filesystems like FAT where the last-modified time has only 2-second resolution. Ideally Emacs Lisp code would have access to file timestamp resolution but that's not something it has now, so I merely preserved org-file-newer-than-p's assumption that taking the floor is good enough.