summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2020-01-09 10:07:45 +0000
committerJoão Távora <joaotavora@gmail.com>2020-01-09 10:08:44 +0000
commitbeec9f64a50c8c8f8bfd1b85d9c546ff25b361ba (patch)
tree4e9bff68a5714ac7e4c424ea0489426d440b9e98
parenteb3c6ad325ea54acbea047508b5496d130bff93a (diff)
downloademacs-beec9f64a50c8c8f8bfd1b85d9c546ff25b361ba.tar.gz
emacs-beec9f64a50c8c8f8bfd1b85d9c546ff25b361ba.tar.bz2
emacs-beec9f64a50c8c8f8bfd1b85d9c546ff25b361ba.zip
Add comment on fido-mode's file-sorting semantics
* lisp/icomplete.el (icomplete--sorted-completions): Add comment.
-rw-r--r--lisp/icomplete.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index ceff11f9bd6..a1a67e2330a 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -463,6 +463,12 @@ Usually run by inclusion in `minibuffer-setup-hook'."
((and fido-mode
(not minibuffer-default)
(eq (icomplete--category) 'file))
+ ;; `fido-mode' has some extra file-sorting
+ ;; semantics even if there isn't a default,
+ ;; which is to bubble "./" to the top if it
+ ;; exists. This makes M-x dired RET RET go to
+ ;; the directory of current file, which is
+ ;; what vanilla Emacs and `ido-mode' both do.
`(,(lambda (comp)
(string= "./" comp)))))
thereis (cl-loop