commit cb9beb0bd6857d9262c935e42a9346331cee4c45
parent 94a07d49a80f66f8ebc54a49a4b4f6899a65fbe3
Author: Nikita Bloshchanevich <nikblos@outlook.com>
Date: Mon, 15 Mar 2021 12:02:04 +0100
Unescape \= in signature docstring
`helpful--signature': unquote \=, as added by `help--quote-signature'.
An example where this is needed is `\(setf\ seq-first\)'.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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))))