emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/pacmacs 70864bb773 447/472: Indicate that score table is e


From: ELPA Syncer
Subject: [nongnu] elpa/pacmacs 70864bb773 447/472: Indicate that score table is empty (#203)
Date: Thu, 6 Jan 2022 21:59:47 -0500 (EST)

branch: elpa/pacmacs
commit 70864bb77388e265d87c7ac80b3f0f111c0dad22
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>

    Indicate that score table is empty (#203)
---
 pacmacs-score.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pacmacs-score.el b/pacmacs-score.el
index 50b1381eb9..456a519317 100644
--- a/pacmacs-score.el
+++ b/pacmacs-score.el
@@ -80,7 +80,9 @@
        (length)))
 
 (defun pacmacs--render-score-table (score-table)
-  (-each score-table #'pacmacs--render-score-record))
+  (if score-table
+      (-each score-table #'pacmacs--render-score-record)
+    (insert "(there are no records yet)")))
 
 (defun pacmacs--add-entry-to-score-table (nickname score)
   (->> (pacmacs--read-score-table)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]