[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 0f4eb7aebf 452/472: Decouple score page render fro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 0f4eb7aebf 452/472: Decouple score page render from sign render (#203) |
Date: |
Thu, 6 Jan 2022 21:59:48 -0500 (EST) |
branch: elpa/pacmacs
commit 0f4eb7aebfb1a73528eed4b4322fe2c243d1ad67
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Decouple score page render from sign render (#203)
---
pacmacs-score.el | 5 +++++
pacmacs.el | 6 ++----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/pacmacs-score.el b/pacmacs-score.el
index 456a519317..df56635235 100644
--- a/pacmacs-score.el
+++ b/pacmacs-score.el
@@ -79,6 +79,11 @@
(-take-while (-lambda ((_ . score)) (< new-score score)))
(length)))
+(defun pacmacs--render-score-page (render-score-sign)
+ (funcall render-score-sign)
+ (-> (pacmacs--read-score-table)
+ (pacmacs--render-score-table)))
+
(defun pacmacs--render-score-table (score-table)
(if score-table
(-each score-table #'pacmacs--render-score-record)
diff --git a/pacmacs.el b/pacmacs.el
index b1d7899767..3fa30d31d3 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -743,10 +743,8 @@
(with-current-buffer pacmacs--score-buffer-name
(let ((inhibit-read-only t))
(erase-buffer)
- (pacmacs--render-object-board pacmacs--object-board)
- (let ((inhibit-read-only t))
- (-> (pacmacs--read-score-table)
- (pacmacs--render-score-table))))
+ (pacmacs--render-score-page (-partial #'pacmacs--render-object-board
+ pacmacs--object-board)))
(goto-char (point-min))))
(defun pacmacs--wall-tile-at (row column)
- [nongnu] elpa/pacmacs 429294ea94 416/472: Fix render-score-table UT (#134), (continued)
- [nongnu] elpa/pacmacs 429294ea94 416/472: Fix render-score-table UT (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d6260cd30c 417/472: Refactor nickname submission action (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 71ffcfb208 419/472: Add UT for align-score-record-nickname func (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 861aa9543e 422/472: Add UT for make-wall-cell func, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2e881d27e0 424/472: Remove commented chunk of code (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1e4cbd5f4f 426/472: Sort score table on reading and writing (#194), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0d62e0346a 427/472: Remove redundant score sorting (#194), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9b2c497eb9 431/472: Handle error during level list loading (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2cf174ca7e 434/472: Create signs folder with game over sign (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 7d4356c92c 445/472: Implement pacmacs-score-awesome (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0f4eb7aebf 452/472: Decouple score page render from sign render (#203),
ELPA Syncer <=
- [nongnu] elpa/pacmacs a12795e835 455/472: Introduce pacmacs-scores-mode (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs cdae42dba5 461/472: Replace too specific function with composition, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 864fe2b02e 465/472: Bump the copyright year for all the files, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs edadbe5e53 469/472: Bump version to 0.1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs db16fba9cd 470/472: Add missing license statement, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 98ce700143 023/472: Hide cursor in the game's buffer. Close #12, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3070cf0e6a 063/472: Merge branch 'refactor-image-resource-51'. Close #51, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1a678dfee7 110/472: Refactor out pacmacs--object-at-p (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5492ed0a87 118/472: Refactor pacmacs-render-state (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b5078d2632 141/472: Move most of the rendering stuff to pacman-render, ELPA Syncer, 2022/01/06