diff options
| author | João Távora | 2023-12-14 16:32:54 +0000 |
|---|---|---|
| committer | João Távora | 2023-12-14 18:08:38 +0000 |
| commit | af1fe69f05d803a6958f9d8a045d1013e2ce785c (patch) | |
| tree | a83b576e2420474a670449d1eac11c85f164cd36 /java/debug.sh | |
| parent | d9814efe0759ce916a1c470c5908d2ca3c80b29b (diff) | |
| download | emacs-af1fe69f05d803a6958f9d8a045d1013e2ce785c.tar.gz emacs-af1fe69f05d803a6958f9d8a045d1013e2ce785c.zip | |
Eglot: beware activation in fundamental-mode
In the specific situation of visiting a buffer via M-. with
eglot-extend-to-xref set to t, it was found that buffer was first
visited in fundamental mode, running after-change-major-mode-hook, and
then again in the proper major mode for the file. The call to
eglot-current-server of the first visit returned non-nil which cause
two didOpen notifications to be issued for the same file.
Furthermore, in the first call, eglot--languageId to returned nil,
prompting an error from servers such as rust-analyzer.
See also: https://github.com/joaotavora/eglot/discussions/1330
* lisp/progmodes/eglot.el (eglot-current-server): Watch out for
fundamental-mode.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions