[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/parseedn fd3f88d67b 1/2: Allow empty coll with `parseedn-p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/parseedn fd3f88d67b 1/2: Allow empty coll with `parseedn-print-seq` |
Date: |
Thu, 12 May 2022 09:58:58 -0400 (EDT) |
branch: elpa/parseedn
commit fd3f88d67b9757d5d06bd88b374a2f15d66337fe
Author: tmpUser2022 <98637343+tmpUser2022@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Allow empty coll with `parseedn-print-seq`
Allow empty coll with `parseedn-print-seq`
---
parseedn.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/parseedn.el b/parseedn.el
index 87a4213055..1e06e54218 100644
--- a/parseedn.el
+++ b/parseedn.el
@@ -156,7 +156,8 @@ TAG-READERS is an optional association list. For more
information, see
(defun parseedn-print-seq (coll)
"Insert sequence COLL as EDN into the current buffer."
- (parseedn-print (elt coll 0))
+ (unless (seq-empty-p coll)
+ (parseedn-print (elt coll 0)))
(let ((next (seq-drop coll 1)))
(when (not (seq-empty-p next))
(insert " ")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/parseedn fd3f88d67b 1/2: Allow empty coll with `parseedn-print-seq`,
ELPA Syncer <=