[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 375d85e49b 344/472: Add pacmacs-replay-finished-ho
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 375d85e49b 344/472: Add pacmacs-replay-finished-hook |
Date: |
Thu, 6 Jan 2022 21:59:38 -0500 (EST) |
branch: elpa/pacmacs
commit 375d85e49bf417dec4dad49065f3d4e977cac74c
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Add pacmacs-replay-finished-hook
It will help to write scripts for automated it cases replaying
---
tools/pacmacs-rr.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tools/pacmacs-rr.el b/tools/pacmacs-rr.el
index 31e2ed87a4..b673e112e4 100644
--- a/tools/pacmacs-rr.el
+++ b/tools/pacmacs-rr.el
@@ -42,6 +42,7 @@
(defvar pacmacs--tick-counter 0)
(defvar pacmacs--recorded-actions nil)
(defvar pacmacs--tick-times nil)
+(defvar pacmacs-replay-finished-hook nil)
(defun pacmacs--record-action (action-name)
(add-to-list 'pacmacs--recorded-actions
@@ -97,12 +98,13 @@
(pacmacs--measure-time
(pacmacs-tick)))
- (if (not pacmacs--recorded-actions)
- (pacmacs-quit)
- (-let ((((action . tick-number) . _) pacmacs--recorded-actions))
- (when (= tick-number pacmacs--tick-counter)
- (funcall action)
- (setq pacmacs--recorded-actions (cdr pacmacs--recorded-actions))))))
+ (if pacmacs--recorded-actions
+ (-let ((((action . tick-number) . _) pacmacs--recorded-actions))
+ (when (= tick-number pacmacs--tick-counter)
+ (funcall action)
+ (setq pacmacs--recorded-actions (cdr pacmacs--recorded-actions))))
+ (pacmacs-quit)
+ (run-hooks 'pacmacs-replay-finished-hook)))
(define-derived-mode pacmacs-it-recorder-mode pacmacs-mode
"pacmacs-it-recorder-mode"
(define-key pacmacs-it-recorder-mode-map (kbd "<up>") 'pacmacs-record-up)
- [nongnu] elpa/pacmacs 2473e65744 268/472: Remove dead left overs of #141, (continued)
- [nongnu] elpa/pacmacs 2473e65744 268/472: Remove dead left overs of #141, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 22355a4954 276/472: Add Terrified Ghost animation. Close #83, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 97973dd305 288/472: Rough implementaion of escaping for TGs (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3758d601d3 304/472: Fix blinking terrified ghost animation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 27c7ba7bbb 314/472: Update README about minimal version of Emacs (#165), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d6b63ef5b9 317/472: Merge pull request #166 from codingteam/drop-emacs-24.3-165, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3344de1bbe 322/472: Adapt render-track-board for new track board, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 481eb8bd37 326/472: Merge pull request #169 from codingteam/distances-instead-of-directions-159, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 31d7305439 331/472: Add 2nd big pill level (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 862f9b7f9e 332/472: Add 3d big pill level (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 375d85e49b 344/472: Add pacmacs-replay-finished-hook,
ELPA Syncer <=
- [nongnu] elpa/pacmacs ffc0195b9a 346/472: Merge pull request #176 from codingteam/refactor-it-recorder, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ebeba826ce 356/472: Merge pull request #180 from codingteam/headers-urls-178, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ab77f7a391 360/472: Terrify already terrified ghosts first (#173), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2425a26d88 364/472: Use push instead of add-to-list (#182), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a90b8d6352 372/472: Clear wall cache on game start (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6bb1f0d0a7 375/472: Rename wall-blocks to wall-tiles (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 20d89a67cf 384/472: Enable debug on error for ATT script (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a97d195e12 391/472: Merge pull request #188 from codingteam/qfix/move-measure-time-to-rr, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 75e26090e5 393/472: Add UT for clear-wall-tiles-cache, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1b658fe6aa 405/472: Calc new score position (#134), ELPA Syncer, 2022/01/06