emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 beec9f6 2/2: Add comment on fido-mode's file-sorting semantics


From: João Távora
Subject: emacs-27 beec9f6 2/2: Add comment on fido-mode's file-sorting semantics
Date: Thu, 9 Jan 2020 05:09:41 -0500 (EST)

branch: emacs-27
commit beec9f64a50c8c8f8bfd1b85d9c546ff25b361ba
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Add comment on fido-mode's file-sorting semantics
    
    * lisp/icomplete.el (icomplete--sorted-completions): Add comment.
---
 lisp/icomplete.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index ceff11f..a1a67e2 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]