summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2023-03-04 12:49:00 +0000
committerJoão Távora <joaotavora@gmail.com>2023-03-04 12:49:00 +0000
commit0bfba49ca7cf90e841c076d6db9bb3826e7b6a57 (patch)
tree256eb1f8f68d135b0a1b27a6de669301caef8c46 /lisp/emacs-lisp
parentea5fd375bb2656562f57325b3d5c6fd17f6b2e72 (diff)
downloademacs-0bfba49ca7cf90e841c076d6db9bb3826e7b6a57.tar.gz
emacs-0bfba49ca7cf90e841c076d6db9bb3826e7b6a57.tar.bz2
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 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions