[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 508d15dff5 415/472: Fix compilation errors (#134)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 508d15dff5 415/472: Fix compilation errors (#134) |
Date: |
Thu, 6 Jan 2022 21:59:44 -0500 (EST) |
branch: elpa/pacmacs
commit 508d15dff561b896d08b4ae94e46c64f6195356a
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Fix compilation errors (#134)
---
pacmacs.el | 48 ++++++++++++++++++++++++------------------------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/pacmacs.el b/pacmacs.el
index 698f1a5288..c3f7a30cb3 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -39,6 +39,8 @@
(require 'cl-lib)
(require 'dash)
(require 'f)
+(require 'widget)
+(require 'wid-edit)
(require 'pacmacs-anim)
(require 'pacmacs-board)
@@ -571,41 +573,39 @@
(pacmacs--read-score-table)))
(new-score-position (pacmacs--position-of-new-score
score-table
- pacmacs-score))
- (nickname-widget nil))
+ pacmacs-score)))
(if (< new-score-position pacmacs--max-score-table-size)
(progn
(->> score-table
(-take new-score-position)
(pacmacs--render-score-table))
- (setq nickname-widget
- (widget-create 'editable-field
- :size pacmacs--max-score-nick-size
- :action (lambda (widget &optional event)
- (let ((nickname (widget-value
widget)))
- (pacmacs--add-entry-to-score-table
- nickname
- pacmacs-score)
- (widget-value-set widget
- (format "%s%s"
- nickname
-
(make-string
- (max 0
-
(- pacmacs--max-score-nick-size
-
(length nickname)))
- ?\s)))
- (widget-delete widget)))
-
- ""))
+ (widget-create 'editable-field
+ :size pacmacs--max-score-nick-size
+ :action (lambda (widget &optional event)
+ (ignore event)
+ (let ((nickname (widget-value widget)))
+ (pacmacs--add-entry-to-score-table
+ nickname
+ pacmacs-score)
+ (widget-value-set widget
+ (format "%s%s"
+ nickname
+ (make-string
+ (max 0
+ (-
pacmacs--max-score-nick-size
+
(length nickname)))
+ ?\s)))
+ (widget-delete widget)))
+
+ "")
(insert (format " %d\n" pacmacs-score))
(->> score-table
(-drop new-score-position)
(pacmacs--render-score-table))
- (plist-bind ((width :width)
- (height :height))
+ (plist-bind ((height :height))
pacmacs--object-board
- (goto-line (+ height pacmacs--score-table-render-offset (1+
new-score-position)))))
+ (forward-line (+ height pacmacs--score-table-render-offset (1+
new-score-position)))))
(pacmacs--render-score-table score-table)
(goto-char (point-min)))
(use-local-map widget-keymap)
- [nongnu] elpa/pacmacs ffc0195b9a 346/472: Merge pull request #176 from codingteam/refactor-it-recorder, (continued)
- [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
- [nongnu] elpa/pacmacs 508d15dff5 415/472: Fix compilation errors (#134),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 953f9901d9 421/472: Remove register-new-score function (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 70864bb773 447/472: Indicate that score table is empty (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b9a63f204b 449/472: Rename render-board to render-object-board (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs cd50cff10c 448/472: Disable cursor for score table (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ee83af998d 467/472: Replace deprecated dash-functional dependency, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 31853e0341 166/472: Update README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 13f24ef937 171/472: Implement pause. Close #112, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs cf693bef1c 173/472: UTs for pacmacs--levelname-from-filename function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 239e27b0f2 178/472: Update README.md, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d128a6f057 183/472: Enable lexical binding, ELPA Syncer, 2022/01/06