aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-10-14 19:44:15 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-10-14 19:45:40 +0100
commitf8350169db7a8d77fc3e5389ad0d7bd864a0eb0a (patch)
treeb5913425750245e7aaf4063d365e78d57fd1e975 /helpful.el
parent99b1215d2718e5a46003bd7c738275125db7b896 (diff)
Pretty-print primitive values0.15
As of 1d2954b we pretty-print keymaps and hooks by default, but this broke display of variables of other types. Fix that.
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/helpful.el b/helpful.el
index 9715c81..71df518 100644
--- 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) " "))