commit f8350169db7a8d77fc3e5389ad0d7bd864a0eb0a
parent 99b1215d2718e5a46003bd7c738275125db7b896
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sun, 14 Oct 2018 19:44:15 +0100
Pretty-print primitive values
As of 1d2954b we pretty-print keymaps and hooks by default, but this
broke display of variables of other types. Fix that.
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -1,6 +1,6 @@
# v0.15 (unreleased)
-No changes yet.
+Fixed a crash on formatting values.
# v0.14
diff --git a/helpful.el b/helpful.el
@@ -1910,8 +1910,7 @@ state of the current symbol."
(consp val))
(helpful--format-hook val))
(t
- (error "don't know how to format value of type %s"
- (type-of val))))
+ (helpful--pretty-print val)))
"\n\n")
(when multiple-views-p
(insert (helpful--make-toggle-literal-button) " "))