branch: elpa/macrostep
commit e582ca7a5d23737d60340f05869d647e06647e65
Author: joddie <[email protected]>
Commit: joddie <[email protected]>
Fix trivial bug printing a single non-list form
---
macrostep-test.el | 1 +
macrostep.el | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/macrostep-test.el b/macrostep-test.el
index 8c298f7..5eaaa45 100644
--- a/macrostep-test.el
+++ b/macrostep-test.el
@@ -169,6 +169,7 @@
(macrostep-print-sexp ,form)
(buffer-string))
,string))))
+ (should-print nil "nil")
(should-print 'symbol "symbol")
(should-print '(single-element-list) "(single-element-list)")
(should-print '(two-element list) "(two-element list)")
diff --git a/macrostep.el b/macrostep.el
index f2206fb..d9f1b0f 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -775,7 +775,7 @@ Will not collapse overlays that begin at START and end at
END."
;; Indent the newly-inserted form in context
(widen)
(save-excursion
- (backward-list)
+ (backward-sexp)
(indent-sexp))))))
(defun macrostep-collect-macro-forms (form &optional environment)