[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/macrostep ee46132 008/110: Print dotted lists in expansion
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/macrostep ee46132 008/110: Print dotted lists in expansions correctly |
Date: |
Sat, 7 Aug 2021 09:17:51 -0400 (EDT) |
branch: elpa/macrostep
commit ee46132b5be689b573d3386284ad53aa35de4d8c
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Print dotted lists in expansions correctly
---
macrostep.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/macrostep.el b/macrostep.el
index 06f333e..0bdcc3c 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -566,15 +566,21 @@ sub-forms. See also `macrostep-sexp-at-point'."
(insert " ")
(setq sexp (cdr sexp)))
;; print remaining list elements
- (dolist (inner sexp)
- (macrostep-print-sexp inner)
- (insert " "))
- (backward-delete-char 1)
+ (while sexp
+ (if (listp sexp)
+ (progn
+ (macrostep-print-sexp (car sexp))
+ (when (cdr sexp) (insert " "))
+ (setq sexp (cdr sexp)))
+ ;; Print tail of dotted list
+ (insert ". ")
+ (macrostep-print-sexp sexp)
+ (setq sexp nil)))
(insert ")")))))
;; print non-lists as normal
(t (prin1 sexp (current-buffer)))))
-
+
(provide 'macrostep)
- [nongnu] branch elpa/macrostep created (now 424e373), ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d847fb2 001/110: Initial upload to github, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0067091 018/110: fix youtube link in docs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep ee46132 008/110: Print dotted lists in expansions correctly,
ELPA Syncer <=
- [nongnu] elpa/macrostep 99d2cc7 020/110: Don't fontify a quoted macro since this won't get expanded normally, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep f8f0424 027/110: Fix header dates, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9a534df 052/110: Make macrostep-slime-insert more robust, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 352b6d2 042/110: Minor improvements to SLIME prototype, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 3062d4c 046/110: Add support for compiler macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 874c790 058/110: WIP: smarter SLIME macroexpansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d7991b4 070/110: Track forms using the printer rather than the reader, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep dd14d5c 077/110: Remove unused function `bindings-to-environment`, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep b1c1230 079/110: More tests, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 4b382cd 088/110: Identify Elisp compiler-macros more selectively, ELPA Syncer, 2021/08/07