aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-01-11 22:58:49 +0000
committerWilfred Hughes <me@wilfred.me.uk>2018-01-11 22:58:49 +0000
commit1b8a99a6c3857ecd09bf39702158939d3c3af63d (patch)
treee76e433b5e77db10defce9d315d4028b8e45e294
parent04073c80f3c82fa488edcd0cffa4961ff40cf885 (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.md1
-rw-r--r--helpful.el2
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.
diff --git a/helpful.el b/helpful.el
index 9471eb0..2af81d1 100644
--- 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)