aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2019-10-29 00:18:55 +0000
committerJoão Távora2019-10-29 00:19:33 +0000
commit5860fd3123635af3c2e419bfde53e26fde85930b (patch)
tree4b4a587f55b9a8bfcc773c0d160c8d49318f02e5
parent7373d6eae807af9f0557b28b30e2864f17114c40 (diff)
downloademacs-5860fd3123635af3c2e419bfde53e26fde85930b.tar.gz
emacs-5860fd3123635af3c2e419bfde53e26fde85930b.zip
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.
-rw-r--r--lisp/icomplete.el2
1 files changed, 2 insertions, 0 deletions
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'.
399See `icomplete-mode' and `minibuffer-setup-hook'." 399See `icomplete-mode' and `minibuffer-setup-hook'."
400 (when (and icomplete-mode 400 (when (and icomplete-mode
401 (icomplete-simple-completing-p)) ;Shouldn't be necessary. 401 (icomplete-simple-completing-p)) ;Shouldn't be necessary.
402 (redisplay) ; FIXME: why is this sometimes needed when moving
403 ; up dirs in a file-finding table?
402 (save-excursion 404 (save-excursion
403 (goto-char (point-max)) 405 (goto-char (point-max))
404 ; Insert the match-status information: 406 ; Insert the match-status information: