emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/elpa d431d41 088/139: Fix bug in hover support


From: João Távora
Subject: [elpa] externals/elpa d431d41 088/139: Fix bug in hover support
Date: Mon, 14 May 2018 09:53:42 -0400 (EDT)

branch: externals/elpa
commit d431d4109918500ff9a99782b45d975709f1d6be
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Fix bug in hover support
    
    * eldoc.el (eglot-eldoc-function): Use eglot--format-markup.
    (subr-x): Require it.
    (eglot--format-markup): Pacify byte-compiler.
---
 eglot.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index 8e92725..9d7b16d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -34,6 +34,7 @@
 (require 'warnings)
 (require 'flymake)
 (require 'xref)
+(require 'subr-x)
 
 
 ;;; User tweakable stuff
@@ -763,7 +764,7 @@ Meaning only return locally if successful, otherwise exit 
non-locally."
   "Format MARKUP according to LSP's spec."
   (cond ((stringp markup)
          (with-temp-buffer
-           (ignore-errors (funcall 'markdown-mode))
+           (ignore-errors (funcall (intern "markdown-mode"))) ;escape 
bytecompiler
            (font-lock-ensure)
            (insert markup)
            (string-trim (buffer-string))))
@@ -1428,7 +1429,7 @@ DUMMY is ignored"
                    :position (eglot--pos-to-lsp-position))
                   :success-fn (eglot--lambda (&key contents _range)
                                 (eldoc-message
-                                 (mapconcat #'eglot--format
+                                 (mapconcat #'eglot--format-markup
                                             (if (vectorp contents)
                                                 contents
                                               (list contents))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]