From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OCttB48qbGIMdgEAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 20:12:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kFuoB48qbGJKAQEA9RJhRA (envelope-from ) for ; Fri, 29 Apr 2022 20:12:31 +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 BB8B42970B for ; Fri, 29 Apr 2022 20:12:30 +0200 (CEST) Received: from localhost ([::1]:46072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkV6T-0006HX-Sp for larch@yhetil.org; Fri, 29 Apr 2022 14:12:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkV4E-00039v-N9; Fri, 29 Apr 2022 14:10:10 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkV4C-0006ks-Dz; Fri, 29 Apr 2022 14:10:10 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 12F6C16006C; Fri, 29 Apr 2022 11:10:05 -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 GlTxhOxaPG_T; Fri, 29 Apr 2022 11:10:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1DDB116005C; Fri, 29 Apr 2022 11:10:04 -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 zgmN7oIFC-ht; Fri, 29 Apr 2022 11:10:04 -0700 (PDT) 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 E4BE216005E; Fri, 29 Apr 2022 11:10:03 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------XvsjYsPKPsFkvc9kCzJTNk0i" Message-ID: Date: Fri, 29 Apr 2022 11:10:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Max Nikulin References: <106f5128-680b-f25e-1316-f7308c49b625@gmail.com> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc. In-Reply-To: <106f5128-680b-f25e-1316-f7308c49b625@gmail.com> 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: 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=1651255950; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ihLHL6hwXwUJiHgoVBVibmqDFzT2fs2WSHI+ItDs21g=; b=FjZ55b2Y441RZ/bPmd3JKZoTWxCxRH3PRmD9koqMmzEheg9fl/pLdSXOyyOXwn6tS6cS5D 9UT4m7FoHY8gBfV0UuHStx0f8fpHqVigEpMh+Gtl7N5Au0PptzC/a81gcSxjvryWUGTl3S MEYCpczy8V4wDEHSUJZFKFaGnlo7ME+1XTnK5wstTXFHeX6RoEGdpmnYGE4wYLcXOSIkbf zXJZpMIh03BCENv86qOhvy48s15hQYLgwqy36KzyYX3luOvvry+dg6nwPBuOlhW576SXMt AW5+T9sQogoaaCG2rNhzbZOajl4mL08xFHPcR8trhecG2XzbxHeujFXIkZiVWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651255950; a=rsa-sha256; cv=none; b=DziMkbGKUOHzf2WCATeNfEqVW2hZgdAtzjywgl2YzelYUvi5bhdb7RplHs958/RCBPGp1y B0NNJGa/29lSLl4caavTJNpiA9mUNMtMWcQucq1cY99Q9DE235REuCAFLeo5oM49W6/NpQ 3l13SUCsIDWOX48lNXfOdR8TkfZZx752dyIpO71CHL602boxniIiUD6Pwg1BWnmgxyqCDs q29rU5Xzdt6m8ByO7Gnn5zUuYEnQgOgoUP++crpYioaS1qe7Xe17xhAmvEYdHTFhQfhoTo 1EmOI5vG9HjHakamdV/eC+TISzj6R8RGgHhrtouxwBao/XmM8DBoyE4OHgavDA== 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: -2.90 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: BB8B42970B X-Spam-Score: -2.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: FlOJ3H8hSo3h This is a multi-part message in MIME format. --------------XvsjYsPKPsFkvc9kCzJTNk0i Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/29/22 07:22, Max Nikulin wrote: > It was still working in most real-life cases. Yes, the current code breaks only in fine-grained cases. Most of the time it'll work fine since people rarely compile the same file twice in the same second. > 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 Yes, that sounds simpler and better. How about the attached patch? --------------XvsjYsPKPsFkvc9kCzJTNk0i Content-Type: text/x-patch; charset=UTF-8; name="0001-Improve-org-compile-file-timestamp-handling.patch" Content-Disposition: attachment; filename="0001-Improve-org-compile-file-timestamp-handling.patch" Content-Transfer-Encoding: base64 RnJvbSBmYmQ2NTYxOTUyYWNmMzU5MjM2YWZjZjc5NTdhMTk3Mzc2YTE4YzY2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBGcmksIDI5IEFwciAyMDIyIDExOjA2OjAwIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gSW1wcm92ZSBvcmctY29tc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