branch: elpa/macrostep
commit 8d72b622ed3034db6e1dd58ccf89dcaf6b3279c0
Author: joddie <[email protected]>
Commit: joddie <[email protected]>
Fix indentation in new macrostep-pp function
---
macrostep.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/macrostep.el b/macrostep.el
index d7f71fe..afb63de 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -727,8 +727,11 @@ treated as the macro expansion of the source and inserted
using
(delete-region
(point)
(save-excursion (skip-chars-backward " \t\n") (point))))
+ ;; Indent the newly-inserted form in context
(widen)
- (indent-sexp))))
+ (save-excursion
+ (backward-list)
+ (indent-sexp)))))
(defun macrostep-get-gensym-face (symbol)
"Return the face to use in fontifying SYMBOL in printed macro expansions.