From: João Távora Date: Tue, 29 Oct 2019 00:18:55 +0000 (+0000) Subject: Make icomplete-exhibit actually work when navigating up directories X-Git-Tag: emacs-27.0.90~842 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5860fd3123635af3c2e419bfde53e26fde85930b;p=emacs.git 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. --- diff --git a/lisp/icomplete.el b/lisp/icomplete.el index f2745fb30aa..02eae55a196 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: