commit 5c5c2bb74ad095f8665f4f12dd67043ae82ffd69
parent 1d014a3742b3d8fd9c967a8d5844e3a86a9da4fd
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sun, 28 May 2017 23:52:52 +0100
Forget button after definition
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/helpful.el b/helpful.el
@@ -86,7 +86,7 @@ This allows us to distinguish strings from symbols."
"Return a button that unbinds the current symbol"
(with-temp-buffer
(insert-text-button
- "Forget"
+ "Forget function"
:type 'helpful-forget-button)
(buffer-string)))
@@ -272,14 +272,14 @@ state of the current symbol."
source-path
(helpful--format-position-heads references))
"Could not find source file.\n")
- (helpful--heading "\nTools\n")
- (helpful--forget-button)
(helpful--heading "\n\nDefinition\n")
(if (stringp source)
(helpful--syntax-highlight source)
(helpful--pretty-print source))
"\n\n"
- (helpful--disassemble-button))
+ (helpful--disassemble-button)
+ " "
+ (helpful--forget-button))
(goto-char start-pos)))
(defun helpful--skip-advice (docstring)