From e366550f05aefd1eddbb363f43fdf6b567e9650f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 3 May 2018 15:45:30 +0100 Subject: [PATCH] Must re-announce didopen after reconnect * eglot.el (eglot-reconnect): Also call eglot--maybe-activate-editing-mode for all buffers. --- lisp/progmodes/eglot.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 3561da2db46..86c0a4c05fa 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -205,8 +205,11 @@ INTERACTIVE is t if called interactively." (eglot--major-mode process) (eglot--short-name process) (eglot--bootstrap-fn process) - (lambda (_proc) - (eglot--message "Reconnected!")))) + (lambda (proc) + (eglot--message "Reconnected!") + (dolist (buffer (buffer-list)) + (with-current-buffer buffer + (eglot--maybe-activate-editing-mode proc)))))) (defvar eglot--command-history nil "History of COMMAND arguments to `eglot'.") -- 2.39.2