diff options
| author | Spencer Baugh | 2023-08-19 08:24:45 -0400 |
|---|---|---|
| committer | Dmitry Gutov | 2023-08-23 03:07:09 +0300 |
| commit | 255b7e1a046cbf9a745d58080d74983bfe205859 (patch) | |
| tree | 7129ebd36739d98dad7ec762d53045d4115042f9 /java | |
| parent | 9507c88f98cdb27425e8a08598acf45e79ccd729 (diff) | |
| download | emacs-255b7e1a046cbf9a745d58080d74983bfe205859.tar.gz emacs-255b7e1a046cbf9a745d58080d74983bfe205859.zip | |
Expand project file names before storing them
Before, whatever project-root returned, we stored as the root
directory of the project in project-list and project-list-file. This
could lead to duplicate entries or bad behavior if projects were
accessed by different file names, e.g. both /home/user/src/emacs and
~/src/emacs.
Now project-list-file contains only expanded paths and project--list
contains only abbreviated paths. We abbreviate filenames before
setting project--list, and expand filenames before writing to
project-list-file. We only do this for local files, though, to avoid
making remote connections; the situation will still be bad for remote
projects, but at least this is an improvement.
* lisp/progmodes/project.el (project--write-project-list): Call
expand-file-name.
(project--read-project-list, project-remember-project)
(project--remove-from-project-list): Call abbreviate-file-name.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions