aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-07-22 13:00:11 +0100
committerWilfred Hughes <me@wilfred.me.uk>2017-07-22 13:00:11 +0100
commitefa395ee083a648478f5e7601b183ee87e5537db (patch)
tree610e8cde7082ea2d48a7d9bb8b008384f2fbaae8
parenta18eff2b2fa0980126e2884f119791a2cf31231e (diff)
Don't show compiled functions on symbol properties
They're often messy and rarely interesting. See cadr for an example.
-rw-r--r--helpful.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index a1d80c0..6ce9b25 100644
--- 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))))