1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00
emacs/lisp/progmodes
João Távora 67df34c143 Fix M-x eglot prompt when connection already exists (bug#60557)
Before this change, if a current connection existed at the time of M-x
eglot, user would be first asked to enter into M-x eglot's interactive
spec details about new command line arguments, and only afterwards be
prompted about what to do with the current connection (which could be
to reconnect to it using the same arguments, or tear it down and make
a new one).

This is very confusing, as users may not be fully aware of the
distinction between "reconnect" vs "disconnect-and-connect".  They
might not know if any new command line arguments provided are taking
effect or not.

This change simplifies this and removes the option to "reconnect
instead" from M-x eglot (users can do that at any time via M-x
eglot-reconnect).  It also ensures that users are informed about a
current connection before asking to enter new command line arguments
and not the other way round.

* lisp/progmodes/eglot.el (eglot): Rework.
2023-01-16 11:49:15 +00:00
..
antlr-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
asm-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
autoconf.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bat-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bug-reference.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
c-ts-mode.el Fix c-ts-mode block comment indentation (bug#60270) 2023-01-15 01:11:38 -08:00
cc-align.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-awk.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-bytecomp.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-cmds.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-defs.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-engine.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-fonts.el CC Mode: partially revert commit from 2022-10-04 2023-01-10 20:29:37 +00:00
cc-guess.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-langs.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-menus.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-styles.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cc-vars.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cfengine.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cl-font-lock.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cmacexp.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cmake-ts-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
compile.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cperl-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cpp.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
csharp-mode.el Fix indentation of object_expressions in csharp-ts-mode 2023-01-14 12:32:59 +01:00
cwarn.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dcl-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dockerfile-ts-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-abn.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-bnf.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-dtd.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-ebx.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-iso.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-otz.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf-yac.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebnf2ps.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ebrowse.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eglot.el Fix M-x eglot prompt when connection already exists (bug#60557) 2023-01-16 11:49:15 +00:00
elisp-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
erts-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
etags.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
executable.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
f90.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
flymake-cc.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
flymake-proc.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
flymake.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
fortran.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gdb-mi.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
glasses.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
go-ts-mode.el Improve go-ts-mode Imenu, navigation and electric pair (bug#60407) 2023-01-08 20:32:51 -08:00
grep.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gud.el ; * lisp/progmodes/gud.el (gud-tooltip-modes): Add ts- modes. 2023-01-07 18:44:16 -08:00
hideif.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
hideshow.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
icon.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
idlw-complete-structtag.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
idlw-help.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
idlw-shell.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
idlw-toolbar.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
idlwave.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
inf-lisp.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
java-ts-mode.el Add constructor_declaration as java-ts-mode defun 2023-01-14 23:07:43 +01:00
js.el Improve indentation for jsx 2023-01-15 21:51:08 +01:00
json-ts-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ld-script.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
m4-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
make-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
meta-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mixal-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
modula2.el Prefer defvar-keymap in modula2.el 2022-10-20 09:36:11 +02:00
octave.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
opascal.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pascal.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
perl-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
prog-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
project.el ; project.el: Bump version 2023-01-10 02:07:12 +02:00
prolog.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ps-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
python.el Fix string fontification on python-ts-mode (bug#60599) 2023-01-07 18:44:17 -08:00
ruby-mode.el Extract common code into ruby-base-mode to derive from 2023-01-03 03:10:49 +02:00
ruby-ts-mode.el ruby-ts-mode: Support the option ruby-block-indent 2023-01-16 05:50:28 +02:00
rust-ts-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
scheme.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sh-script.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
simula.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sql.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
subword.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tcl.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
typescript-ts-mode.el Improve indentation for jsx 2023-01-15 21:51:08 +01:00
vera-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
verilog-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vhdl-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
which-func.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
xref.el ; xref.el: Bump version 2023-01-10 02:07:12 +02:00
xscheme.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00