commit 5586f746956cea2a1263b90743c8c55300805e5b
parent 8176a22e5520a78e4aee236ff78d794809d1418f
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sat, 3 Jun 2017 17:21:28 +0100
Don't offer to disassemble primitive functions
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/helpful.el b/helpful.el
@@ -388,9 +388,12 @@ state of the current symbol."
(if (helpful--primitive-p helpful--sym)
'c-mode))
(helpful--syntax-highlight (helpful--pretty-print source)))
- "\n\n"
- (helpful--disassemble-button)
- " "
+ "\n"
+ (if (helpful--primitive-p helpful--sym)
+ ""
+ (concat
+ (helpful--disassemble-button)
+ " "))
(helpful--forget-button))
(goto-char start-pos)))