summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text
diff options
context:
space:
mode:
authorStephen Leake <stephen_leake@stephe-leake.org>2019-04-25 16:29:36 -0700
committerStephen Leake <stephen_leake@stephe-leake.org>2019-04-25 16:29:36 -0700
commitd2a5283a065fd03d6dc606cc7ec29822e544dffb (patch)
tree275e0ea3a813d77fd9319832b3b87d66b14ca6d4 /test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text
parent1486eadf7c9469f873fcd04beafd03f21564d580 (diff)
downloademacs-d2a5283a065fd03d6dc606cc7ec29822e544dffb.tar.gz
Add new file completion tables, change project.el to allow using themscratch/project-uniquify-files
* lisp/file-complete-root-relative.el: New file. * lisp/uniquify-files.el: New file. * test/lisp/progmodes/uniquify-files-resources/: New directory containing files for testing uniquify-files. * test/lisp/progmodes/uniquify-files-test.el: New file; test uniquify-files. * lisp/files.el (path-files): New function; useful with new completion tables. * lisp/progmodes/project.el (project-file-completion-table): Use file-complete-root-relative completion table. (project-find-file): Add optional FILENAME parameter. (project--completing-read-strict): Rewrite to just use the given completion table; extracting the common directory is now done by file-complete-root-relative. This also allows using the new uniquify-files completion table. * lisp/minibuffer.el (completion-category-defaults): Add uniquify-file. (completing-read-default): Add final step to call completion table with 'alist action if supported.
Diffstat (limited to 'test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text')
-rw-r--r--test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text b/test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text
new file mode 100644
index 00000000000..ac4ffaa6bb5
--- /dev/null
+++ b/test/lisp/progmodes/uniquify-files-resources/Alice/alice-2/foo-file1.text
@@ -0,0 +1 @@
+alice-2/foo-file1.text