]> git.eshelyaron.com Git - emacs.git/commitdiff
Call eglot-eldoc-function after completion finishes
authorJoão Távora <joaotavora@gmail.com>
Wed, 9 May 2018 21:28:29 +0000 (22:28 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 9 May 2018 22:12:42 +0000 (23:12 +0100)
* eglot.el (eglot-completion-at-point): Call
eglot-eldoc-function after completion finishes.

lisp/progmodes/eglot.el

index 0795bc3e8c9df4ce5393acdc9bab7b350653f499..d5eae031e08f755183e29d9fa8f22cf0ba8f8793 100644 (file)
@@ -1292,7 +1292,9 @@ DUMMY is ignored"
        (lambda (items) (sort items (lambda (a b)
                                      (string-lessp
                                       (get-text-property 0 :sortText a)
-                                      (get-text-property 0 :sortText b)))))))))
+                                      (get-text-property 0 :sortText b)))))
+       :exit-function
+       (lambda (_string _status) (eglot-eldoc-function))))))
 
 (defvar eglot--highlights nil "Overlays for textDocument/documentHighlight.")