diff options
| author | João Távora | 2023-03-04 12:49:00 +0000 |
|---|---|---|
| committer | João Távora | 2023-03-04 12:49:00 +0000 |
| commit | 0bfba49ca7cf90e841c076d6db9bb3826e7b6a57 (patch) | |
| tree | 256eb1f8f68d135b0a1b27a6de669301caef8c46 /java/debug.sh | |
| parent | ea5fd375bb2656562f57325b3d5c6fd17f6b2e72 (diff) | |
| download | emacs-0bfba49ca7cf90e841c076d6db9bb3826e7b6a57.tar.gz emacs-0bfba49ca7cf90e841c076d6db9bb3826e7b6a57.zip | |
Robustify Eglot for "transient" projects
When Eglot needs to synthesize a "transient" project for
default-directory sometimes the value of that variable is set to an
unexpanded value, sometimes not. This can cause simple invocations
like.
Emacs -Q ~/path/to-some-python-file.py -f eglot
to fail, because eglot--current-server will be looking for a project
in the registry called
(transient . "~/path")
where in reality it is stored there as
(transient . "/home/someuser/path")
The fix is to always expand default-directory in eglot--current-project.
* lisp/progmodes/eglot.el (eglot--current-project): Use
expand-file-name.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions