emacs/lisp/progmodes
João Távora cc9ec87e53 Eglot: rework semtok feature again
This version was tested with the clangd, rust-analyzer and lean servers.
Each server is slightly different.

The main change is to recognize that that eglot--semtok-request is a
promise to get some data for BEG to END and a promise to flush it.  The
eglot--semtok-inflight variable is overhauled so that it more precisely
encodes this information.

The lean server insists on many workspace/semanticTokens/refresh waiting
for a textDocument/semanticTokens/full request from our part, but we
don't give in.  The spec doesn't actually say what types of requests the
clients should issue.  It eventualy gives up.  The only thing we do on
this request is to flush everything we know.  After this flush, the
font-lock machinery will know what to do.

* lisp/progmodes/eglot.el (eglot--async-request): Return id.
(eglot--semtok-inflight): Redesign variable.
(eglot-handle-request): Just flush.
(eglot--semtok-request): Rewrite.
(eglot--semtok-font-lock): Tweak.
2025-11-16 03:03:35 +00:00
..
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el
bug-reference.el (read-only-keymap-*): Be more careful with the namespace 2025-10-12 09:50:31 -04:00
c-ts-common.el
c-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
cc-align.el CC Mode: Don't indent a construct in a class after a template 2025-09-19 20:51:45 +00:00
cc-awk.el CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs 2025-06-23 11:50:07 +00:00
cc-bytecomp.el
cc-cmds.el CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs 2025-06-23 11:50:07 +00:00
cc-defs.el CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs 2025-06-23 11:50:07 +00:00
cc-engine.el ; * lisp/progmodes/cc-engine.el: Fix trailing whitespace. 2025-07-05 06:03:48 -04:00
cc-fonts.el CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs 2025-06-23 11:50:07 +00:00
cc-guess.el
cc-langs.el CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs 2025-06-23 11:50:07 +00:00
cc-menus.el CC Mode: Remove workarounds for missing "\_<", "\_>" in XEmacs 2025-06-23 11:50:07 +00:00
cc-mode.el hideshow: Rework previous changes 2025-11-06 09:41:12 +02:00
cc-styles.el
cc-vars.el CC Mode: Don't indent a construct in a class after a template 2025-09-19 20:51:45 +00:00
cfengine.el
cl-font-lock.el
cmacexp.el
cmake-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
compile.el * lisp/progmodes/compile.el (compilation--set-up-margin): Fix. 2025-10-19 20:56:30 +03:00
cperl-mode.el ; cperl-mode.el: Do not warn with valid character escapes 2025-08-22 15:03:17 +02:00
cpp.el
csharp-mode.el csharp-mode.el: fontify variables assigned from awaited tasks 2025-11-15 12:14:32 +02:00
cwarn.el
dcl-mode.el
dockerfile-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el
ebrowse.el
eglot.el Eglot: rework semtok feature again 2025-11-16 03:03:35 +00:00
elisp-mode.el ; (elisp-fontify-symbol): Put less text props when possible 2025-10-26 17:39:10 +01:00
elixir-ts-mode.el Improve hideshow support for elixir-ts-mode and heex-ts-mode 2025-11-10 20:46:40 +02:00
erts-mode.el
etags-regen.el Fix etags-regen-mode for remote projects (bug#79358) 2025-09-29 02:40:28 +03:00
etags.el Fix exact matching of Ada tags by 'M-.' 2025-05-27 13:50:12 +03:00
executable.el executable-interpret: Handle remote file names 2025-08-14 17:08:36 +02:00
f90.el hideshow: Rework previous changes 2025-11-08 20:04:30 +02:00
flymake-cc.el
flymake-proc.el
flymake.el Flymake: fix compatibility to older emacsen (bug#79769) 2025-11-10 11:33:48 +00:00
fortran.el hideshow: Rework previous changes 2025-11-08 20:04:30 +02:00
gdb-mi.el Fix gdb-mi startup when asking user about debuginfod 2025-09-14 08:55:44 +03:00
glasses.el
go-ts-mode.el Cache compiled tree-sitter queries (bug#79363) 2025-10-20 22:12:35 -07:00
grep.el * lisp/progmodes/grep.el (grep-menu-map): Add "Edit Grep Buffer" (bug#79793). 2025-11-10 09:21:00 +02:00
gud.el "M-x lldb": bugfix source code location without column 2025-09-06 12:04:30 +03:00
heex-ts-mode.el Improve hideshow support for heex-ts-mode and yaml-ts-mode 2025-11-10 21:46:29 +02:00
hideif.el
hideshow.el ; * lisp/progmodes/hideshow.el: Fix wording in commentary. 2025-11-14 10:14:14 +02:00
icon.el hideshow: Rework previous changes 2025-11-08 20:04:30 +02:00
inf-lisp.el
java-ts-mode.el Fix fontification for var in java-ts-mode (bug#79626) 2025-11-02 14:17:23 -08:00
js.el Merge from origin/emacs-30 2025-11-15 07:21:32 -05:00
json-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
ld-script.el * lisp/progmodes/ld-script.el: Add 'PT_TLS' to 'ld-script-keywords'. 2025-11-08 19:17:56 +02:00
lua-mode.el hideshow: Rework previous changes 2025-11-08 20:04:30 +02:00
lua-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
m4-mode.el
make-mode.el
meta-mode.el
mixal-mode.el
modula2.el
octave.el
opascal.el
pascal.el
peg.el peg.el: Fix bug#79502 a bit more 2025-09-27 22:57:02 -04:00
perl-mode.el
php-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
prog-mode.el Add tree-sitter version of prog-fill-reindent-defun (bug#78703) 2025-06-09 22:55:09 -07:00
project.el project-compile: Ignore compile-command from vc-compilation-mode 2025-11-06 12:57:35 +00:00
prolog.el
ps-mode.el
python.el hideshow: Rework previous changes 2025-11-09 09:20:05 +02:00
ruby-mode.el ruby-syntax-propertize: Add exception for /= 2025-09-16 02:17:13 +03:00
ruby-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
rust-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
scheme.el (scheme-mode-variables): Fix bug#79282 2025-09-10 19:05:15 -04:00
sh-script.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
simula.el
sql.el
subword.el
tcl.el
typescript-ts-mode.el Merge from origin/emacs-30 2025-11-15 07:21:32 -05:00
vera-mode.el
verilog-mode.el verilog-mode: Make recent change backward-compatible and update from package upstream. 2025-11-08 18:33:58 -05:00
vhdl-mode.el hideshow: Rework previous changes 2025-11-08 20:04:30 +02:00
which-func.el
xref.el Merge from origin/emacs-30 2025-10-18 06:15:46 -04:00
xscheme.el