diff options
| author | João Távora | 2023-12-26 07:47:29 -0600 |
|---|---|---|
| committer | João Távora | 2023-12-26 07:54:21 -0600 |
| commit | 4dcbf61c1518dc53061707aeff8887517e050003 (patch) | |
| tree | e0711ed5270cddd78e99beb668077bad02432680 /java | |
| parent | 60199ac01d711d3240146afedd830b774eb5c5d2 (diff) | |
| download | emacs-4dcbf61c1518dc53061707aeff8887517e050003.tar.gz emacs-4dcbf61c1518dc53061707aeff8887517e050003.zip | |
Eglot: Make 'try-completion' less broken
The 'try-completion' completion operation, used mostly in vanilla
'completion-at-point' invoked with C-M-i is close to impossible to get
right in LSP because of the arbitrary edits handled in
':exit-function'.
When this operation is invoked on the table, returning the pattern
argument unchanged somehow (TM) makes a sole completion show the
*Completions* buffer, where selecting it will recover context
necessary for `:exit-function' and call that function. It doesn't
break any other cases I know, and that's good enough for now.
https://github.com/joaotavora/eglot/issues/1339
* lisp/progmodes/eglot.el (eglot-completion-at-point): Return pattern
when 'try-completion' is invoked.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions