[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 1.2 05e5a9f 063/101: Per #63: Allow function contacts to be inter
From: |
Christian Johansson |
Subject: |
[elpa] 1.2 05e5a9f 063/101: Per #63: Allow function contacts to be interactive |
Date: |
Thu, 29 Apr 2021 15:09:01 -0400 (EDT) |
tag: 1.2
commit 05e5a9f07b5113c213a901f32c8b2ccebe199c6b
Author: MichaĆ K <k.michal@zoho.com>
Commit: mkcms <k.michal@zoho.com>
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] 1.2 updated (f291816 -> e70be91), Christian Johansson, 2021/04/29
- [elpa] 1.2 1015f83 004/101: Per #48: Fix messages of eglot-ensure, Christian Johansson, 2021/04/29
- [elpa] 1.2 4a7086e 016/101: Per #59: eglot-workspace-configuration's keys needn't be keywords, Christian Johansson, 2021/04/29
- [elpa] 1.2 310e527 006/101: * README.md (Installation and usage): Add haskell-ide-engine, Christian Johansson, 2021/04/29
- [elpa] 1.2 f2a6aa3 010/101: Close #54: Correctly make LSP positions in narrowed buffers, Christian Johansson, 2021/04/29
- [elpa] 1.2 d845453 019/101: Close #60: Notify server of recent changes before save notification, Christian Johansson, 2021/04/29
- [elpa] 1.2 d8c1f5d 026/101: Improve eglot-execute-command API to ease overriding by servers, Christian Johansson, 2021/04/29
- [elpa] 1.2 d48e737 017/101: Per #63: Accept functions as entries in eglot-server-programs, Christian Johansson, 2021/04/29
- [elpa] 1.2 b0c6e17 035/101: Add kotlin-language-server (#70), Christian Johansson, 2021/04/29
- [elpa] 1.2 38a27be 029/101: Add a test for eglot-ensure. Make, Christian Johansson, 2021/04/29
- [elpa] 1.2 05e5a9f 063/101: Per #63: Allow function contacts to be interactive,
Christian Johansson <=
- [elpa] 1.2 922f4e5 060/101: Merge pull request #104 from mkcms/fix-diagnostics-wrong-type-argument, Christian Johansson, 2021/04/29
- [elpa] 1.2 7b78b15 055/101: Autoload eglot-ensure (#120), Christian Johansson, 2021/04/29
- [elpa] 1.2 bfadd9a 053/101: Close #100: Don't send other notifications before initialized, Christian Johansson, 2021/04/29
- [elpa] 1.2 737f08d 056/101: Correctly map DocumentSymbol's :kind to its name (#121), Christian Johansson, 2021/04/29
- [elpa] 1.2 3c9e00e 068/101: * .travis.yml (install): Download eclipse.jdt.ls server., Christian Johansson, 2021/04/29
- [elpa] 1.2 be464f2 005/101: Add entry for haskell-ide-engine in eglot-server-programs (#49), Christian Johansson, 2021/04/29
- [elpa] 1.2 0694579 009/101: Fix typo in willSaveWaitUntil RPC request (#51), Christian Johansson, 2021/04/29
- [elpa] 1.2 f4f93d3 014/101: Fix placement of diagnostics with same start and end positions, Christian Johansson, 2021/04/29
- [elpa] 1.2 01ec85f 011/101: Implement TextDocument/rangeFormatting, Christian Johansson, 2021/04/29
- [elpa] 1.2 d1cfc9e 008/101: Work around Emacs bugs 32237, 32278 (#53), Christian Johansson, 2021/04/29