]> git.eshelyaron.com Git - emacs.git/commitdiff
Must re-announce didopen after reconnect
authorJoão Távora <joaotavora@gmail.com>
Thu, 3 May 2018 14:45:30 +0000 (15:45 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 3 May 2018 14:45:30 +0000 (15:45 +0100)
* eglot.el (eglot-reconnect): Also call
eglot--maybe-activate-editing-mode for all buffers.

lisp/progmodes/eglot.el

index 3561da2db46dbbff03d652ca0fe453ad893bc94f..86c0a4c05fa4e8d57ea735f80567a5718f46dd55 100644 (file)
@@ -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'.")