aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorSpencer Baugh2023-11-21 10:11:52 -0500
committerDmitry Gutov2023-11-25 03:59:21 +0200
commit505edceaf44a9d4e072975473170a674b949e504 (patch)
tree169840e1591bebbd9dea1e1697d690e383e5dcfe /java/org/gnu
parent2ed9c9f1b3230bb99b60646fe1cf46664453f693 (diff)
downloademacs-505edceaf44a9d4e072975473170a674b949e504.tar.gz
emacs-505edceaf44a9d4e072975473170a674b949e504.zip
Use the project--list as history when prompting for a project
The project--list is already ordered such that the most recently used projects are at the front. Now we use it as the minibuffer history when prompting for a project. To avoid savehist from picking up project--list as a minibuffer history variable and overriding our own persistence mechanism, we don't pass project--list directly as a history variable, but instead pass project--dir-history or project--name-history, dynamically-bound to an appropriate value. project--dir-history and project--name-history won't be persisted since they're always unbound at the top level; but if they are persisted anyway somehow, it won't affect us. If we later find a way to rely on savehist for persistence instead of having our own mechanism, we can change the in-memory format of project--list to be just a list of directories, and our explicit calls to project--add-dir can be replaced by let-binding history-delete-duplicates=t, history-length=t. * lisp/progmodes/project.el (project--remember-dir): Add. (project-remember-project): Use project--remember-dir. (project--name-history, project-prompt-project-name) (project--dir-history, project-prompt-project-dir): Pass a preprocessed project--list as HIST to completing-read. (bug#67310) (project-switch-project): Call project--remember-dir.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions