[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sly 520be05 1/5: Simplify message timestamp formatting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sly 520be05 1/5: Simplify message timestamp formatting |
Date: |
Fri, 24 Dec 2021 11:58:00 -0500 (EST) |
branch: elpa/sly
commit 520be051b226dd49928530bcb83b87a382ac612e
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
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 | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/lib/sly-tests.el b/lib/sly-tests.el
index af381e9..44f50a5 100644
--- a/lib/sly-tests.el
+++ b/lib/sly-tests.el
@@ -95,7 +95,7 @@ Exits Emacs when finished. The exit code is the number of
failed tests."
(string-match "test/sly-\\(.*\\)\.elc?$" file-name))
(list 'contrib (intern (match-string 1 file-name)))
'(core)))))
-
+
(defmacro define-sly-ert-test (name &rest args)
"Like `ert-deftest', but set tags automatically.
Also don't error if `ert.el' is missing."
@@ -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)
@@ -1314,7 +1313,7 @@ Reconnect afterwards."
(with-current-buffer mrepl-buffer
;; FIXME: suboptimal: wait one second for the lisp
;; to reply.
- (sit-for 1)
+ (sit-for 1)
(unless (and (string-match "^; +SLY" (buffer-string))
(string-match "CL-USER> *$" (buffer-string)))
(die (format "MREPL prompt: %s" (buffer-string))))))))
@@ -1447,7 +1446,7 @@ Reconnect afterwards."
(sly-test--eval-now "(.fn3.)"))
'("nil" "nil")))
;; Recompile now
- ;;
+ ;;
(with-current-buffer xref-buffer
(sly-recompile-all-xrefs)
(sly-wait-condition "Compilation finished"
- [nongnu] elpa/sly updated (9300e46 -> 2e00c3b), ELPA Syncer, 2021/12/24
- [nongnu] elpa/sly 520be05 1/5: Simplify message timestamp formatting,
ELPA Syncer <=
- [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, 2021/12/24
- [nongnu] elpa/sly 2e00c3b 5/5: Merge commit '9300e466cb' into sly, ELPA Syncer, 2021/12/24