commit efa395ee083a648478f5e7601b183ee87e5537db
parent a18eff2b2fa0980126e2884f119791a2cf31231e
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sat, 22 Jul 2017 13:00:11 +0100
Don't show compiled functions on symbol properties
They're often messy and rarely interesting. See cadr for an example.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/helpful.el b/helpful.el
@@ -75,7 +75,9 @@ This allows us to distinguish strings from symbols."
(format "%s %s"
(propertize (symbol-name sym)
'face 'font-lock-constant-face)
- (helpful--pretty-print val)))
+ (if (eq (type-of val) 'compiled-function)
+ "#<compiled-function>"
+ (helpful--pretty-print val))))
syms-and-vals)))
(when lines
(s-join "\n" lines))))