[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 221a327 2/2: Fix org-table 65536-second bug
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 221a327 2/2: Fix org-table 65536-second bug |
Date: |
Mon, 19 Aug 2019 21:05:23 -0400 (EDT) |
branch: master
commit 221a3272ad4a1befb41dda2990d672782bc0257f
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Fix org-table 65536-second bug
* lisp/org/org-table.el (org-table-message-once-per-second):
Fix bug when clock difference goes past a 65536-second boundary.
Don’t assume particular format for current-time result.
---
lisp/org/org-table.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
index 513a534..a65629b 100644
--- a/lisp/org/org-table.el
+++ b/lisp/org/org-table.el
@@ -3169,7 +3169,7 @@ ARGS are passed as arguments to the `message' function.
Returns
current time if a message is printed, otherwise returns T1. If
T1 is nil, always messages."
(let ((curtime (current-time)))
- (if (or (not t1) (< 0 (nth 1 (time-subtract curtime t1))))
+ (if (or (not t1) (time-less-p 1 (time-subtract curtime t1)))
(progn (apply 'message args)
curtime)
t1)))