aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorNikita Bloshchanevich <nikblos@outlook.com>2021-03-15 12:02:04 +0100
committerWilfred Hughes <me@wilfred.me.uk>2022-08-29 21:54:57 -0700
commitcb9beb0bd6857d9262c935e42a9346331cee4c45 (patch)
tree5fc25b87425cb01476893f081e61c72989b4750d /helpful.el
parent94a07d49a80f66f8ebc54a49a4b4f6899a65fbe3 (diff)
Unescape \= in signature docstring
`helpful--signature': unquote \=, as added by `help--quote-signature'. An example where this is needed is `\(setf\ seq-first\)'.
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index c1b5550..8710e1c 100644
--- a/helpful.el
+++ b/helpful.el
@@ -2556,7 +2556,8 @@ For example, \"(some-func FOO &optional BAR)\"."
source-sig)
;; If that's not set, use the usage specification in the
;; docstring, if present.
- (docstring-sig)
+ (docstring-sig
+ (replace-regexp-in-string "\\\\=\\(['\\`‘’]\\)" "\\1" docstring-sig t))
(t
;; Otherwise, just use the signature from the source code.
source-sig))))