clojure-emacs / clojure-emacs/parseedn
parseedn-print tag readers
- Dominant language
- Emacs Lisp
- Stars
- 62
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
For `parseedn-read`, we can pass an alist of readers to convert e.g. #uuid into a string.
Could this be done in the inverse operation, `parseedn-print`, as well?
Currently I've just patched it like so:
```
((consp datum)
(cond
((not (listp (cdr datum))) ; dotted pair
(error "Don't know how to print: %s" datum))
((eq 'edn-set (car datum))
(insert "#{") (parseedn-print-seq (cadr datum)) (insert "}"))
+ ((eq 'edn-uuid (car datum))
+ (insert "#uuid ") (parseedn-print-seq (cdr datum)))
(t (insert "(") (parseedn-print-seq datum) (insert ")"))))
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.