[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot a406190 07/45: Per #63: Allow function contacts t
From: |
João Távora |
Subject: |
[elpa] externals/eglot a406190 07/45: Per #63: Allow function contacts to be interactive |
Date: |
Thu, 22 Nov 2018 19:15:27 -0500 (EST) |
branch: externals/eglot
commit a40619053fac04eec5f0909a168b4addd1973d47
Author: Michał K <address@hidden>
Commit: mkcms <address@hidden>
Per #63: Allow function contacts to be interactive
* eglot.el (eglot-server-programs): Mention that the function must
accept one argument.
(eglot--guess-contact): Pass to functional contacts the interactive
value.
---
eglot.el | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/eglot.el b/eglot.el
index 57d19b3..4376d3a 100644
--- a/eglot.el
+++ b/eglot.el
@@ -124,8 +124,14 @@ of those modes. CONTACT can be:
`jsonrpc-process-connection', which you should see for the
semantics of the mandatory :PROCESS argument.
-* A function of no arguments producing any of the above values
- for CONTACT.")
+* A function of a single argument producing any of the above
+ values for CONTACT. The argument's value is non-nil if the
+ connection was requested interactively (e.g. from the `eglot'
+ command), and nil if it wasn't (e.g. from `eglot-ensure'). If
+ the call is interactive, the function can ask the user for
+ hints on finding the required programs, etc. Otherwise, it
+ should not ask the user for any input, and return nil or signal
+ an error if it can't produce a valid CONTACT.")
(defface eglot-mode-line
'((t (:inherit font-lock-constant-face :weight bold)))
@@ -353,7 +359,9 @@ be guessed."
(lambda (m1 m2)
(or (eq m1 m2)
(and (listp m1) (memq m2 m1)))))))
- (guess (if (functionp guess) (funcall guess) guess))
+ (guess (if (functionp guess)
+ (funcall guess interactive)
+ guess))
(class (or (and (consp guess) (symbolp (car guess))
(prog1 (car guess) (setq guess (cdr guess))))
'eglot-lsp-server))
- [elpa] externals/eglot 9585b74 04/45: Merge pull request #104 from mkcms/fix-diagnostics-wrong-type-argument, (continued)
- [elpa] externals/eglot 9585b74 04/45: Merge pull request #104 from mkcms/fix-diagnostics-wrong-type-argument, João Távora, 2018/11/22
- [elpa] externals/eglot ff04bc0 06/45: Improve signature help, João Távora, 2018/11/22
- [elpa] externals/eglot f250784 10/45: Handle case when project was not found in eclipse.jdt.ls contact, João Távora, 2018/11/22
- [elpa] externals/eglot c795e3e 09/45: Override eglot-execute-command for eclipse.jdt.ls server, João Távora, 2018/11/22
- [elpa] externals/eglot 5571f10 05/45: Sort references and definitions by line number, João Távora, 2018/11/22
- [elpa] externals/eglot f0b5367 08/45: Per #63: Add support for eclipse.jdt.ls server, João Távora, 2018/11/22
- [elpa] externals/eglot 5b043fb 12/45: * .travis.yml (install): Download eclipse.jdt.ls server., João Távora, 2018/11/22
- [elpa] externals/eglot aefa498 20/45: Larger margin for printing test failure backtraces, João Távora, 2018/11/22
- [elpa] externals/eglot 19aded0 17/45: Remove duplicates from imenu, João Távora, 2018/11/22
- [elpa] externals/eglot 504fd25 14/45: Fix misspelling of "outstanding" (#74), João Távora, 2018/11/22
- [elpa] externals/eglot a406190 07/45: Per #63: Allow function contacts to be interactive,
João Távora <=
- [elpa] externals/eglot 27696d6 23/45: Use the container name of a symbol in imenu, João Távora, 2018/11/22
- [elpa] externals/eglot 6ebbd36 11/45: Add tests for eclipse.jdt.ls connection, João Távora, 2018/11/22
- [elpa] externals/eglot 22e5c57 18/45: Don't ignore unknown SymbolKinds in imenu, João Távora, 2018/11/22
- [elpa] externals/eglot 5ee05f9 16/45: Require subr-x at compile time (#139), João Távora, 2018/11/22
- [elpa] externals/eglot d9c3696 15/45: Fix #138: accept deprecated field in SymbolInformation, João Távora, 2018/11/22
- [elpa] externals/eglot 82ae4f6 21/45: Re-enable eclipse-jdt tests, João Távora, 2018/11/22
- [elpa] externals/eglot ee41f06 22/45: Slightly robustify test engine, João Távora, 2018/11/22
- [elpa] externals/eglot faf93ad 13/45: * eglot-tests.el: Disable eclipse connection tests., João Távora, 2018/11/22
- [elpa] externals/eglot c664f40 28/45: * eglot.el (eglot-client-capabilities): Mention supported SymbolKinds., João Távora, 2018/11/22
- [elpa] externals/eglot edc6538 32/45: Fix a bug introduced by previous bugfix, João Távora, 2018/11/22