From d2a5283a065fd03d6dc606cc7ec29822e544dffb Mon Sep 17 00:00:00 2001 From: Stephen Leake Date: Thu, 25 Apr 2019 16:29:36 -0700 Subject: Add new file completion tables, change project.el to allow using them * 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. --- .../lisp/progmodes/uniquify-files-resources/wisitoken-text_io_trace.text | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/lisp/progmodes/uniquify-files-resources/wisitoken-text_io_trace.text (limited to 'test/lisp/progmodes/uniquify-files-resources/wisitoken-text_io_trace.text') diff --git a/test/lisp/progmodes/uniquify-files-resources/wisitoken-text_io_trace.text b/test/lisp/progmodes/uniquify-files-resources/wisitoken-text_io_trace.text new file mode 100644 index 00000000000..a2d8f82a7ca --- /dev/null +++ b/test/lisp/progmodes/uniquify-files-resources/wisitoken-text_io_trace.text @@ -0,0 +1 @@ +Wisitoken-text_io_trace.text -- cgit v1.2.1