diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-01-11 22:58:49 +0000 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2018-01-11 22:58:49 +0000 |
| commit | 1b8a99a6c3857ecd09bf39702158939d3c3af63d (patch) | |
| tree | e76e433b5e77db10defce9d315d4028b8e45e294 | |
| parent | 04073c80f3c82fa488edcd0cffa4961ff40cf885 (diff) | |
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.
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | helpful.el | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 72fbcd6..96ed360 100644 --- 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. @@ -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) |
