From: Paul Eggert Date: Sun, 4 Jun 2017 16:13:15 +0000 (-0700) Subject: Fix eldoc bug with curved quote X-Git-Tag: emacs-26.0.90~521^2~170^2~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7dd9e7e95c1e4502b7a9fd6a18211208bd2914a5;p=emacs.git Fix eldoc bug with curved quote * lisp/progmodes/elisp-mode.el (elisp-get-fnsym-args-string): Substitute quotes in documentation before returning it (Bug#27159). --- diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 6c6fb925040..b3f452ca5b9 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -1372,7 +1372,7 @@ or elsewhere, return a 1-line docstring." (condition-case nil (documentation sym t) (invalid-function nil)) sym)) - (car doc)) + (substitute-command-keys (car doc))) (t (help-function-arglist sym))))) ;; Stringify, and store before highlighting, downcasing, etc. (elisp--last-data-store sym (elisp-function-argstring args)