emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/macrostep e582ca7 078/110: Fix trivial bug printing a sing


From: ELPA Syncer
Subject: [nongnu] elpa/macrostep e582ca7 078/110: Fix trivial bug printing a single non-list form
Date: Sat, 7 Aug 2021 09:18:06 -0400 (EDT)

branch: elpa/macrostep
commit e582ca7a5d23737d60340f05869d647e06647e65
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]