[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/parseedn adf57f36f4 11/32: Fix printing of hash-maps with
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/parseedn adf57f36f4 11/32: Fix printing of hash-maps with multiple entries |
Date: |
Tue, 28 Dec 2021 14:04:41 -0500 (EST) |
branch: elpa/parseedn
commit adf57f36f49108674cac4e1aa89559aeee6363cb
Author: Ákos Kiss <ak@coram.pub>
Commit: Ákos Kiss <ak@coram.pub>
Fix printing of hash-maps with multiple entries
---
parseedn.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/parseedn.el b/parseedn.el
index 7b09f598c6..e969d23d42 100644
--- a/parseedn.el
+++ b/parseedn.el
@@ -141,16 +141,16 @@ TAG-READERS is an optional association list. For more
information, see
(insert " ")
(parseedn-print-seq next))))
-(defun parseedn-print-kvs (map)
+(defun parseedn-print-kvs (map &optional ks)
"Insert hash table MAP as an EDN map into the current buffer."
- (let ((keys (a-keys map)))
+ (let ((keys (or ks (a-keys map))))
(parseedn-print (car keys))
(insert " ")
(parseedn-print (a-get map (car keys)))
(let ((next (cdr keys)))
(when (not (seq-empty-p next))
(insert ", ")
- (parseedn-print-kvs next)))))
+ (parseedn-print-kvs map next)))))
(defun parseedn-print (datum)
"Insert DATUM as EDN into the current buffer.
- [nongnu] elpa/parseedn e1de65e463 30/32: Merge pull request #10 from clojure-emacs/cl-case-to-cond, (continued)
- [nongnu] elpa/parseedn e1de65e463 30/32: Merge pull request #10 from clojure-emacs/cl-case-to-cond, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 90cfe3df51 19/32: Add date/sha to CHANGELOG, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 6d80a59673 14/32: Add support for alist, plist and an explicit error for unsupported dotted pair notation., ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn ff3cb233bc 07/32: Bump the copyright years, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 5470d4ed67 21/32: Fix the inst parsing test for the case where TZ=UTC, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn acbea6bb1e 03/32: Fix a typo, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn ddf824bc1d 08/32: Update the installation instructions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 4efa23a851 15/32: oops! fix test., ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 1a3640d298 29/32: Replace `cl-case` with `cond`, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn b00eb42a1c 28/32: Update the required Emacs version, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn adf57f36f4 11/32: Fix printing of hash-maps with multiple entries,
ELPA Syncer <=
- [nongnu] elpa/parseedn 17c4b2f658 05/32: Fix a couple of typos, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 342359abd1 10/32: Merge pull request #2 from clojure-emacs/fix-build-question-mark, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 7b9ca20b39 22/32: Merge pull request #7 from clojure-emacs/print-uuid-inst, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn ef0f8772bf 01/32: Initial commit, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 92bf875962 17/32: Merge pull request #5 from clojure-emacs/support-dotted-pairs, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn e5ba280d1f 32/32: Correctly bump versions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn f42ff98833 13/32: Merge pull request #1 from ak-coram/fix-hash-map-printing, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 8f0582da3f 06/32: Improve the commentary front matter, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 0ffab01927 12/32: Add test to cover the printing of hash-maps, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseedn 3b1bea1425 27/32: Drop use of map-merge alist, for Emacs 25/26, ELPA Syncer, 2021/12/28