mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
Add comment on fido-mode's file-sorting semantics
* lisp/icomplete.el (icomplete--sorted-completions): Add comment.
This commit is contained in:
parent
eb3c6ad325
commit
beec9f64a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user