From efa395ee083a648478f5e7601b183ee87e5537db Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 22 Jul 2017 13:00:11 +0100 Subject: Don't show compiled functions on symbol properties They're often messy and rarely interesting. See cadr for an example. --- helpful.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) + "#" + (helpful--pretty-print val)))) syms-and-vals))) (when lines (s-join "\n" lines)))) -- cgit v1.0