Skip to content

Commit

Permalink
Unescape \= in signature docstring
Browse files Browse the repository at this point in the history
`helpful--signature': unquote \=, as added by `help--quote-signature'.

An example where this is needed is `\(setf\ seq-first\)'.
  • Loading branch information
nbfalcon authored and Wilfred committed Aug 30, 2022
1 parent 94a07d4 commit cb9beb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpful.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit cb9beb0

Please sign in to comment.