[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 56ba22b9df 11/50: Backport commit 3abb3681b from Em
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 56ba22b9df 11/50: Backport commit 3abb3681b from Emacs |
Date: |
Tue, 4 Oct 2022 21:57:58 -0400 (EDT) |
branch: externals/org
commit 56ba22b9dfa752071308146cb5c9c4e7aa5dc63e
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Kyle Meyer <kyle@kyleam.com>
Backport commit 3abb3681b from Emacs
* lisp/org-macs.el (org-file-newer-than-p):
Don’t assume list-format timestamps, by using
org-time-convert-to-integer instead of doing it by hand.
Use org-time-convert-to-integer instead of by hand
3abb3681b57d7c8ca7fa808addb0a10b6b109cab
Paul Eggert
Wed Apr 27 00:30:25 2022 -0700
---
lisp/org-macs.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index b10725bd52..92591b5bb7 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -257,15 +257,16 @@ ignored in this case."
(defun org-file-newer-than-p (file time)
"Non-nil if FILE is newer than TIME.
-FILE is a filename, as a string, TIME is a list of integers, as
+FILE is a filename, as a string, TIME is a Lisp time value, as
returned by, e.g., `current-time'."
(and (file-exists-p file)
;; Only compare times up to whole seconds as some file-systems
;; (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 (org-time-convert-to-integer
+ (nth 5 (file-attributes file)))
+ (org-time-convert-to-integer time)))))
(defun org-compile-file (source process ext &optional err-msg log-buf spec)
"Compile a SOURCE file using PROCESS.
- [elpa] externals/org c7e1bbfd1c 03/50: Backport commit 664094222 from Emacs, (continued)
- [elpa] externals/org c7e1bbfd1c 03/50: Backport commit 664094222 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 659646f135 07/50: Backport commit e0ca8f791 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 1a3dd6ec85 08/50: Backport commit 5f57b41aa from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 37bb3547c7 12/50: Backport commit fa1a7ac61 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org e74ea551bf 14/50: Backport commit cc8b6101f from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org c77692e8fb 22/50: Backport commit f94e93a6e from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 69ba7a20be 24/50: Backport commit 2a8d08360 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 1a2d2fd5e4 05/50: Backport commit c1145c31a from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org e7572fa86c 02/50: Backport commit 616dcf27e from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 723af4afae 10/50: Backport commit 8ef37913d from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 56ba22b9df 11/50: Backport commit 3abb3681b from Emacs,
ELPA Syncer <=
- [elpa] externals/org c06dc10f39 13/50: Backport commit 2fba71cf1 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 5a81ec0018 15/50: Backport commit 253374f81 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org e58217ff1f 35/50: Backport commit 57259773b from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 772c44779c 06/50: Backport commit dd0727e1e from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 5d5a7832ec 09/50: Backport commit 18b680cfd from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 303c89350e 16/50: Backport commit 5b3d4e7bf from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 675ec6771f 23/50: Backport commit 9230953f2 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 1bbd86310a 31/50: Backport commit 4c1bc8315 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org add8552b1d 36/50: Backport commit 48aacbf29 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 98e168b489 46/50: compat: Add compatibility wrapper for string-clean-whitespace, ELPA Syncer, 2022/10/04