summaryrefslogtreecommitdiff
path: root/lisp/minibuffer.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2019-05-14 05:09:19 +0300
committerDmitry Gutov <dgutov@yandex.ru>2019-05-14 05:11:18 +0300
commite0ee41d155b210327eb9c9ad5334f80ed59439f4 (patch)
tree563710e61b14362454a11c33fbb348c0066d9a7a /lisp/minibuffer.el
parent9b28a5083edecacfac3c7e16308bd8af3f4773a2 (diff)
downloademacs-e0ee41d155b210327eb9c9ad5334f80ed59439f4.tar.gz
Allow customizing the display of project file names when reading
To hopefully resolve a long-running discussion (https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00162.html). * lisp/progmodes/project.el (project-read-file-name-function): New variable. (project--read-file-absolute, project--read-file-cpd-relative): New functions, possible values for the above. (project-find-file-in): Use the introduced variable. (project--completing-read-strict): Retain just the logic that fits the name.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r--lisp/minibuffer.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index dbd24dfa0a3..d11a5cf574d 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -846,6 +846,8 @@ styles for specific categories, such as files, buffers, etc."
(defvar completion-category-defaults
'((buffer (styles . (basic substring)))
(unicode-name (styles . (basic substring)))
+ ;; A new style that combines substring and pcm might be better,
+ ;; e.g. one that does not anchor to bos.
(project-file (styles . (substring)))
(info-menu (styles . (basic substring))))
"Default settings for specific completion categories.