all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc.
@ 2022-04-27  6:37 Mark Barton
  2022-04-27  7:20 ` Po Lu
  2022-04-27  7:39 ` Paul Eggert
  0 siblings, 2 replies; 30+ messages in thread
From: Mark Barton @ 2022-04-27  6:37 UTC (permalink / raw)
  To: eggert, emacs-devel, emacs-orgmode

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 “fix” 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)))))




^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <165091562900.12167.2356992007535632125@vcs2.savannah.gnu.org>]

end of thread, other threads:[~2022-10-21  3:28 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.