emacs-diffs
[Top][All Lists]
Advanced

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

master 5860fd3 2/2: Make icomplete-exhibit actually work when navigating


From: João Távora
Subject: master 5860fd3 2/2: Make icomplete-exhibit actually work when navigating up directories
Date: Mon, 28 Oct 2019 20:19:45 -0400 (EDT)

branch: master
commit 5860fd3123635af3c2e419bfde53e26fde85930b
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Make icomplete-exhibit actually work when navigating up directories
    
    Sometimes, when finding files with icomplete-mode, backward-deleting
    the previous word or sexp (to move up a directory) doesn't actually
    refresh the file list of the new directory.  Forcing redisplay in
    icomplete-exhibit misteriously fixes the problem.
    
    * lisp/icomplete.el (icomplete-exhibit): Add call to redisplay.
---
 lisp/icomplete.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index f2745fb..02eae55 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -399,6 +399,8 @@ Should be run via minibuffer `post-command-hook'.
 See `icomplete-mode' and `minibuffer-setup-hook'."
   (when (and icomplete-mode
              (icomplete-simple-completing-p)) ;Shouldn't be necessary.
+    (redisplay)     ; FIXME: why is this sometimes needed when moving
+                    ; up dirs in a file-finding table?
     (save-excursion
       (goto-char (point-max))
                                         ; Insert the match-status information:



reply via email to

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