From f2326f4e13ecf7c244b31aa727cec6981056ace2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 4 Dec 2018 09:47:36 +0000 Subject: [PATCH] Fix bug introduced by previous fix * eglot.el (eglot--CompletionParams): Don't use last-input-event. GitHub-reference: per https://github.com/joaotavora/eglot/issues/173 --- lisp/progmodes/eglot.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 578a90d27ea..3bb93dcc4ff 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1399,7 +1399,7 @@ THINGS are either registrations or unregisterations." (eglot--TextDocumentPositionParams) `(:context ,(if-let (trigger (and (characterp eglot--last-inserted-char) - (cl-find last-input-event + (cl-find eglot--last-inserted-char (eglot--server-capable :completionProvider :triggerCharacters) :key (lambda (str) (aref str 0)) @@ -2116,8 +2116,8 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp." (keyboard-quit) retval))))) (eglot--dcase action - (((Command) command arguments) - (eglot-execute-command server (intern command) arguments)) + (((Command) command arguments) + (eglot-execute-command server (intern command) arguments)) (((CodeAction) edit command) (when edit (eglot--apply-workspace-edit edit)) (when command -- 2.39.2