[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/slime 1923227: Simplify message timestamp formatting
From: |
Paul Eggert |
Subject: |
[nongnu] elpa/slime 1923227: Simplify message timestamp formatting |
Date: |
Wed, 15 Dec 2021 12:39:01 -0500 (EST) |
branch: elpa/slime
commit 1923227f542dab0c87a13aaf108ec29e06bf6841
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Simplify message timestamp formatting
* slime-tests.el (slime-wait-condition): Use format-time-string rather
than formatting by hand. This avoids relying on Emacs timestamp
format, which is slated to change.
---
slime-tests.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/slime-tests.el b/slime-tests.el
index b122119..8567b45 100644
--- a/slime-tests.el
+++ b/slime-tests.el
@@ -200,9 +200,8 @@ conditions (assertions)."
(defun slime-wait-condition (name predicate timeout)
(let ((end (time-add (current-time) (seconds-to-time timeout))))
(while (not (funcall predicate))
- (let ((now (current-time)))
- (message "waiting for condition: %s [%s.%06d]" name
- (format-time-string "%H:%M:%S" now) (cl-third now)))
+ (message "waiting for condition: %s [%s]" name
+ (format-time-string "%H:%M:%S.%6N"))
(cond ((time-less-p end (current-time))
(error "Timeout waiting for condition: %S" name))
(t
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/slime 1923227: Simplify message timestamp formatting,
Paul Eggert <=