[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 67d8335 17/69: jrpc.el should know nothing of mod
From: |
João Távora |
Subject: |
[elpa] externals/eglot 67d8335 17/69: jrpc.el should know nothing of mode-line updates |
Date: |
Fri, 22 Jun 2018 11:54:56 -0400 (EDT) |
branch: externals/eglot
commit 67d833598956521c848223304c2ef35fcb6812ca
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
jrpc.el should know nothing of mode-line updates
* eglot.el (eglot--dispatch): METHOD can be a symbol.
Call force-mode-line-update here.
---
eglot.el | 5 +++--
jrpc.el | 3 +--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/eglot.el b/eglot.el
index 4e02c72..81229a5 100644
--- a/eglot.el
+++ b/eglot.el
@@ -317,11 +317,12 @@ INTERACTIVE is t if called interactively."
(defun eglot--dispatch (proc method id params)
"Dispatcher passed to `jrpc-connect'.
Builds a function from METHOD, passes it PROC, ID and PARAMS."
- (let* ((handler-sym (intern (concat "eglot--server-" method))))
+ (let* ((handler-sym (intern (format "eglot--server-%s" method))))
(if (functionp handler-sym) ;; FIXME: fails if params is array, not object
(apply handler-sym proc (append params (if id `(:id ,id))))
(jrpc-reply proc id
- :error (jrpc-obj :code -32601 :message "Unimplemented")))))
+ :error (jrpc-obj :code -32601 :message "Unimplemented")))
+ (force-mode-line-update t)))
(defun eglot--connect (project managed-major-mode name contact)
(let* ((contact (if (functionp contact) (funcall contact) contact))
diff --git a/jrpc.el b/jrpc.el
index bb4fe28..c974fd9 100644
--- a/jrpc.el
+++ b/jrpc.el
@@ -452,8 +452,7 @@ is a symbol saying if this is a client or server
originated."
(funcall (nth 0 continuations) result)))
(id
(jrpc-warn "No continuation for id %s" id)))
- (jrpc--call-deferred proc)
- (force-mode-line-update t)))
+ (jrpc--call-deferred proc)))
(defun jrpc--process-send (proc message)
"Send MESSAGE to PROC (ID is optional)."
- [elpa] externals/eglot updated (0176264 -> f385d9c), João Távora, 2018/06/22
- [elpa] externals/eglot f4de5d7 01/69: Fix copyright header. Obviously not since 2003, João Távora, 2018/06/22
- [elpa] externals/eglot 5cda0ec 06/69: Fix a ridiculous bug when generating transient projects, João Távora, 2018/06/22
- [elpa] externals/eglot e5120aa 08/69: Add jrpc.el to Makefile, João Távora, 2018/06/22
- [elpa] externals/eglot 07359a2 15/69: Allow null timeouts and set default to 3 seconds, João Távora, 2018/06/22
- [elpa] externals/eglot 67d8335 17/69: jrpc.el should know nothing of mode-line updates,
João Távora <=
- [elpa] externals/eglot 0e1a5f0 05/69: jrpc-connect is now passed a generic dispatching function, João Távora, 2018/06/22
- [elpa] externals/eglot 078a1a6 13/69: Add full "Commentary" section to jrpc.el, João Távora, 2018/06/22
- [elpa] externals/eglot 2f1d76d 03/69: Proper server shutdown when jrpc.el is used, João Távora, 2018/06/22
- [elpa] externals/eglot a2aa1ed 19/69: Robustify timer handling for jrpc-async-request, João Távora, 2018/06/22
- [elpa] externals/eglot 7769c07 16/69: Send message, then establish continuations, João Távora, 2018/06/22
- [elpa] externals/eglot 7f2e894 11/69: Merge branch 'master' into jsonrpc-refactor (using good ol' git merge), João Távora, 2018/06/22
- [elpa] externals/eglot e5ba4f6 18/69: Automatically reply with error if dispatcher doesn't, João Távora, 2018/06/22
- [elpa] externals/eglot 33ae871 09/69: More flexible jrpc.el and improve eglot.el's doc, João Távora, 2018/06/22
- [elpa] externals/eglot 3265c1d 10/69: Simpler callback protocol for JSONRPC parameters and results, João Távora, 2018/06/22
- [elpa] externals/eglot e906d25 14/69: Overhaul JSON and JSRONRPC error handling, João Távora, 2018/06/22