From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mark Barton Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc. Date: Tue, 26 Apr 2022 23:37:50 -0700 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23861"; mail-complaints-to="usenet@ciao.gmane.io" To: eggert@cs.ucla.edu, emacs-devel@gnu.org, emacs-orgmode Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Wed Apr 27 08:39:39 2022 Return-path: Envelope-to: geo-emacs-orgmode@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 1njbKs-00064p-Dl for geo-emacs-orgmode@m.gmane-mx.org; Wed, 27 Apr 2022 08:39:38 +0200 Original-Received: from localhost ([::1]:59724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njbKr-0001di-1R for geo-emacs-orgmode@m.gmane-mx.org; Wed, 27 Apr 2022 02:39:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njbJI-0001cr-Fv; Wed, 27 Apr 2022 02:38:00 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:44598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njbJG-0006fu-Hz; Wed, 27 Apr 2022 02:37:59 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id j8so738516pll.11; Tue, 26 Apr 2022 23:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=T3waFiczmPGF9c+OmlUiPhGEjYK5LRgveyL50bsIjLk=; b=lc8OWTuqO+dgJ2hFKmCmVaX1mHEVhPxAJudS8WmyAcqn8DW+GSeq7Tn7OUxYxVpkYC wY2zEmGGyFL71zPdYy/xkuViIeNEAU/nsn2BBgNxSk/WmTRD3sVWY2jnD8Y8uVZsWevO IXSDGOdzWV9s/1UIhTzogGebKKRLSuSK4YLk35AgWQTkn6v1HEOtYDkDIapZ1Qn60j6h BdTdvixcNjBJB8Dp4cv9X6tY43h0LJlnsYxtowP7t8tq1QTP2mIKQLG8nfJAxJuzq4Eh H8cm0eCXlEqPCMXHYx4VWrzg0YTtnCtdOIR7n9twkaL8StCd/jKLNWdo9RdaISlu9Gaw wfRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=T3waFiczmPGF9c+OmlUiPhGEjYK5LRgveyL50bsIjLk=; b=ReyipdSn8pO5fME/+Sacx0rE9wKuuamP992Qre45JIuvLLdiyNLgsr60M6e3Nx8Axs jcwHS3yaEpxVcxSC+YIcUPaAM//TyJUXDbK8R4ajfYHatxO64ZD4rnepbGzie2vIaCSL vXwSRSUMiLjXDl3gSzbKcTbcz0espbYuCitZppSdW6LUsFewAkyOWddphvbYM+HPGRrG HMgeKZXfrkxz4c3bhZDODjBwo3NsNy7IVKww5vvT4QKSNQf1Q9fuVV4qIIJTkuQrWAZZ gbX8dChxmv9RhAr48GOWIgWrYBM7E0w8B1zpptO2xomsDVCAqvszyN3NgAHTLL4xQMOA CBNA== X-Gm-Message-State: AOAM533Y/tzECBCC1+R4luanBITuJ2ALu+vi4TNJNVjHBOsKUq26XnRG HQD24XO+sMNuAPsCGxwSvYY= X-Google-Smtp-Source: ABdhPJw+93LKCUp69df9ALvk62rzSaccLfPeN+f8ie3GxcdJF589ftC3l/sWbygQel2Qimt2jLILEA== X-Received: by 2002:a17:90a:d083:b0:1c9:94bb:732d with SMTP id k3-20020a17090ad08300b001c994bb732dmr31252442pju.106.1651041475465; Tue, 26 Apr 2022 23:37:55 -0700 (PDT) Original-Received: from smtpclient.apple (2603-8001-7a00-01a0-69ee-c135-2e90-bba7.res6.spectrum.com. [2603:8001:7a00:1a0:69ee:c135:2e90:bba7]) by smtp.gmail.com with ESMTPSA id 95-20020a17090a0fe800b001cd4989ff47sm1218373pjz.14.2022.04.26.23.37.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Apr 2022 23:37:54 -0700 (PDT) X-Mailer: Apple Mail (2.3696.80.82.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=mbarton98@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FAKE_REPLY_B=1.566, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:144777 gmane.emacs.devel:288907 Archived-At: The change also breaks org-file-newer-than-p function that triggered the = debugger while loading my init that uses org babel. I was able to use = the example of the patch that Paul Eggert provided earlier for the = desktop-save to add the time-convert to =E2=80=9Cfix=E2=80=9D = org-file-newer-than-p as shown below. Not positive that I needed to = change it in both places, but it works for me now on macOS Monterey. modified lisp/org/org-macs.el @@ -264,8 +264,8 @@ org-file-newer-than-p ;; (e.g. HFS+) do not retain any finer granularity. As ;; a consequence, make sure we return non-nil when the two ;; times are equal. - (not (time-less-p (cl-subseq (nth 5 (file-attributes file)) 0 2) - (cl-subseq time 0 2))))) + (not (time-less-p (cl-subseq (time-convert (nth 5 = (file-attributes file)) 'list) 0 2) + (cl-subseq (time-convert time 'list) 0 2)))))