helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit 1b8a99a6c3857ecd09bf39702158939d3c3af63d
parent 04073c80f3c82fa488edcd0cffa4961ff40cf885
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Thu, 11 Jan 2018 22:58:49 +0000

Ensure we link command references in variable docstrings too

Previously the variable docstring had already been passed through
substitute-command-keys and it was too late for our button conversion.

Diffstat:
MCHANGELOG.md | 1+
Mhelpful.el | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -7,6 +7,7 @@ Better handling of docstrings: * Correctly handle \= escapes * Quoted keywords are now highlighted * Correctly highlight docstrings that contain standalone `` ` `` +* Ensure we link command references in variable docstrings too Added disassemble buttons to byte-code functions in symbol properties. diff --git a/helpful.el b/helpful.el @@ -1343,7 +1343,7 @@ escapes that are used by `substitute-command-keys'." ;; TODO: Only do this if the function is advised. (setq docstring (helpful--skip-advice docstring))))) (setq docstring - (documentation-property sym 'variable-documentation))) + (documentation-property sym 'variable-documentation t))) docstring)) (defun helpful--read-symbol (prompt predicate)