From: Max Nikulin <manikulin@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>, emacs-devel@gnu.org
Subject: Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc.
Date: Fri, 29 Apr 2022 21:22:03 +0700 [thread overview]
Message-ID: <106f5128-680b-f25e-1316-f7308c49b625@gmail.com> (raw)
In-Reply-To: <d6487bef-b5bb-ca80-5746-3a5e6626cafc@cs.ucla.edu>
On 29/04/2022 05:27, Paul Eggert wrote:
> 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.
I have found just 2 calls of `org-file-newer-than-p' in the Org code and
in both cases the intention is to check whether particular file has been
updated. I have not checked Org extensions for usage of this function. I
would rather assume that the code was written without any considerations
concerning filesystem timestamps precision and its difference from
`current-time' representation. It was still working in most real-life cases.
From my point of view, it is better to rewrite `org-compile-time' to
treat the case when there were no file prior to the call as that the
file has been updated without comparison of timestamps, so
`current-time' can be dropped to eliminate comparison of timestamp from
different sources. With such modification it is better to compare file
timestamps without truncation to whole seconds, however I have not tried
to create an example where fractional seconds may change behavior.
next prev parent reply other threads:[~2022-04-29 14:22 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 6:37 master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc Mark Barton
2022-04-27 7:20 ` Po Lu
2022-04-27 7:39 ` Paul Eggert
2022-04-27 16:55 ` Stefan Monnier
2022-04-28 22:27 ` Paul Eggert
2022-04-29 14:22 ` Max Nikulin [this message]
2022-04-29 18:10 ` Paul Eggert
2022-04-30 10:56 ` Max Nikulin
2022-05-06 16:56 ` [PATCH] org-macs.el: Do not compare wall time and file modification time Max Nikulin
2022-05-11 12:28 ` Max Nikulin
2022-05-11 16:24 ` Paul Eggert
2022-05-12 16:55 ` Max Nikulin
2022-05-12 22:52 ` Paul Eggert
2022-05-13 12:28 ` Max Nikulin
2022-05-13 18:00 ` Paul Eggert
2022-10-02 3:49 ` Ihor Radchenko
2022-10-09 8:18 ` [PATCH v2] " Max Nikulin
2022-10-21 3:27 ` Ihor Radchenko
[not found] <165091562900.12167.2356992007535632125@vcs2.savannah.gnu.org>
[not found] ` <20220425194030.030A8C01687@vcs2.savannah.gnu.org>
2022-04-26 9:38 ` master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc Lars Ingebrigtsen
2022-04-26 10:20 ` Manuel Uberti
2022-04-26 10:38 ` Po Lu
2022-04-26 14:42 ` Bozhidar Batsov
2022-04-26 20:29 ` Paul Eggert
2022-04-27 0:36 ` Po Lu
2022-04-27 1:18 ` Paul Eggert
2022-04-27 1:29 ` Po Lu
2022-04-27 4:10 ` Paul Eggert
2022-04-26 20:28 ` Paul Eggert
2022-04-27 12:17 ` Lars Ingebrigtsen
2022-04-26 23:54 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=106f5128-680b-f25e-1316-f7308c49b625@gmail.com \
--to=manikulin@gmail.com \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.