From: João Távora Date: Thu, 3 May 2018 14:45:30 +0000 (+0100) Subject: Must re-announce didopen after reconnect X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~661 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e366550f05aefd1eddbb363f43fdf6b567e9650f;p=emacs.git Must re-announce didopen after reconnect * eglot.el (eglot-reconnect): Also call eglot--maybe-activate-editing-mode for all buffers. --- 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'.")