[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sly 19f4046 2/5: Simplify message timestamp formatting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sly 19f4046 2/5: Simplify message timestamp formatting |
Date: |
Fri, 24 Dec 2021 11:58:00 -0500 (EST) |
branch: elpa/sly
commit 19f4046decb9715907b8064807b9e97c87a278fa
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: João Távora <joaotavora@gmail.com>
Simplify message timestamp formatting
* lib/sly-tests.el (sly-wait-condition): Use format-time-string rather
than formatting by hand. This avoids relying on Emacs timestamp
format, which is slated to change.
---
lib/sly-tests.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/sly-tests.el b/lib/sly-tests.el
index af381e9..5167794 100644
--- a/lib/sly-tests.el
+++ b/lib/sly-tests.el
@@ -209,9 +209,8 @@ conditions (assertions)."
(defun sly-wait-condition (name predicate timeout &optional cleanup)
(let ((end (time-add (current-time) (seconds-to-time timeout))))
(while (not (funcall predicate))
- (let ((now (current-time)))
- (sly-message "waiting for condition: %s [%s.%06d]" name
- (format-time-string "%H:%M:%S" now) (cl-third now)))
+ (sly-message "waiting for condition: %s [%s]" name
+ (format-time-string "%H:%M:%S.%6N"))
(cond ((time-less-p end (current-time))
(unwind-protect
(error "Timeout waiting for condition: %S" name)
- [nongnu] elpa/sly updated (9300e46 -> 2e00c3b), ELPA Syncer, 2021/12/24
- [nongnu] elpa/sly 520be05 1/5: Simplify message timestamp formatting, ELPA Syncer, 2021/12/24
- [nongnu] elpa/sly 554e6b0 3/5: Fix #484, #479: Use xref-push-marker-stack when available, ELPA Syncer, 2021/12/24
- [nongnu] elpa/sly 7f7cfec 4/5: Merge commit of pull request #482 with the '-s ours' strategy, ELPA Syncer, 2021/12/24
- [nongnu] elpa/sly 19f4046 2/5: Simplify message timestamp formatting,
ELPA Syncer <=
- [nongnu] elpa/sly 2e00c3b 5/5: Merge commit '9300e466cb' into sly, ELPA Syncer, 2021/12/24