[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot e53dd5c 46/54: Per #354: make a public reader for
From: |
João Távora |
Subject: |
[elpa] externals/eglot e53dd5c 46/54: Per #354: make a public reader for project-nickname |
Date: |
Thu, 16 Apr 2020 05:31:52 -0400 (EDT) |
branch: externals/eglot
commit e53dd5cd9b5ce372efdc84a561fa6643dfdb6368
Author: Felicián Németh <address@hidden>
Commit: Felicián Németh <address@hidden>
Per #354: make a public reader for project-nickname
Close #399.
* eglot.el (eglot-lsp-server): Add a public reader for
project-nickname as eglot-project-nickname.
(eglot--connect, eglot--read-server, eglot--mode-line-format): Use
the public variant.
---
eglot.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/eglot.el b/eglot.el
index 4c65af0..8d1d2d7 100644
--- a/eglot.el
+++ b/eglot.el
@@ -536,7 +536,8 @@ treated as in `eglot-dbind'."
(defclass eglot-lsp-server (jsonrpc-process-connection)
((project-nickname
:documentation "Short nickname for the associated project."
- :accessor eglot--project-nickname)
+ :accessor eglot--project-nickname
+ :reader eglot-project-nickname)
(major-mode
:documentation "Major mode symbol."
:accessor eglot--major-mode)
@@ -906,7 +907,7 @@ in project `%s'."
(or (plist-get serverInfo :name)
(jsonrpc-name server))
managed-major-mode
- (eglot--project-nickname server))
+ (eglot-project-nickname server))
(when tag (throw tag t))))
:timeout eglot-connect-timeout
:error-fn (eglot--lambda ((ResponseError) code message)
@@ -1172,7 +1173,7 @@ and just return it. PROMPT shouldn't end with a question
mark."
being hash-values of eglot--servers-by-project
append servers))
(name (lambda (srv)
- (format "%s/%s" (eglot--project-nickname srv)
+ (format "%s/%s" (eglot-project-nickname srv)
(eglot--major-mode srv)))))
(cond ((null servers)
(eglot--error "No servers!"))
@@ -1388,7 +1389,7 @@ Uses THING, FACE, DEFS and PREPEND."
(defun eglot--mode-line-format ()
"Compose the EGLOT's mode-line."
(pcase-let* ((server (eglot-current-server))
- (nick (and server (eglot--project-nickname server)))
+ (nick (and server (eglot-project-nickname server)))
(pending (and server (hash-table-count
(jsonrpc--request-continuations server))))
(`(,_id ,doing ,done-p ,_detail) (and server (eglot--spinner
server)))
- [elpa] externals/eglot a4c83a6 37/54: Merge pull request #400 from joaotavora/scratch/fix-277-exit-notification, (continued)
- [elpa] externals/eglot a4c83a6 37/54: Merge pull request #400 from joaotavora/scratch/fix-277-exit-notification, João Távora, 2020/04/16
- [elpa] externals/eglot 7c48c7a 39/54: Document the changes in column calculation, João Távora, 2020/04/16
- [elpa] externals/eglot 2fdffef 41/54: Close #405: support bug-reference-prog-mode, João Távora, 2020/04/16
- [elpa] externals/eglot ce53ca4 44/54: Close #315: introduce and use eglot--{}, the empty JSON object, João Távora, 2020/04/16
- [elpa] externals/eglot 73d3774 24/54: Fix #351: locally tweak imenu-create-index-function, João Távora, 2020/04/16
- [elpa] externals/eglot b0fdfb0 30/54: Close #379: add built-in support for TeX and friends, João Távora, 2020/04/16
- [elpa] externals/eglot c9fcbce 32/54: Close #383: add elm-language-server as the language server for Elm, João Távora, 2020/04/16
- [elpa] externals/eglot 4b453dc 35/54: Fix #389: avoid double shutdowns and simplify shutdown logic, João Távora, 2020/04/16
- [elpa] externals/eglot 633979e 38/54: Fix #361: abide by LSP when reporting and moving to columns, João Távora, 2020/04/16
- [elpa] externals/eglot ae0943f 40/54: Revert the last change about column calculation, João Távora, 2020/04/16
- [elpa] externals/eglot e53dd5c 46/54: Per #354: make a public reader for project-nickname,
João Távora <=
- [elpa] externals/eglot 4f6e152 51/54: Fix #430: send shutdown and exit messages without arguments, João Távora, 2020/04/16
- [elpa] externals/eglot 8332cdf 52/54: Fix eglot-move-to-lsp-abiding-column (#361), João Távora, 2020/04/16
- [elpa] externals/eglot 864a493 50/54: Close #323: add a simple github issue template, João Távora, 2020/04/16
- [elpa] externals/eglot 4496657 34/54: Close #393: use completing-read in eglot-code-actions, João Távora, 2020/04/16
- [elpa] externals/eglot 9c52f24 36/54: Fix #277: Send exit as a notification, João Távora, 2020/04/16
- [elpa] externals/eglot 9f10a27 42/54: Explain the animations in the README, João Távora, 2020/04/16
- [elpa] externals/eglot e02479a 54/54: * eglot.el (Version): Bump to 1.6, João Távora, 2020/04/16
- [elpa] externals/eglot 212a7f7 43/54: Per #315: call shutdown/exit methods with params:{}, not null, João Távora, 2020/04/16
- [elpa] externals/eglot 8d8c90d 45/54: Fix #182: add public hook eglot-managed-mode-hook, João Távora, 2020/04/16
- [elpa] externals/eglot 16dd4b8 47/54: Close #414: mention eglot-find-* in README, João Távora, 2020/04/16