emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/vertico 285efbf: Redisplay before candidates are recomp


From: ELPA Syncer
Subject: [elpa] externals/vertico 285efbf: Redisplay before candidates are recomputed (Fix #89)
Date: Wed, 21 Jul 2021 15:57:18 -0400 (EDT)

branch: externals/vertico
commit 285efbf74e00724536774d4546417b4b3d2ce869
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Redisplay before candidates are recomputed (Fix #89)
    
    This improves responsiveness when the candidate recomputation is slow.
---
 vertico.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vertico.el b/vertico.el
index cb253d0..449e50b 100644
--- a/vertico.el
+++ b/vertico.el
@@ -305,6 +305,9 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
 
 (defun vertico--recompute-candidates (pt content bounds metadata)
   "Recompute candidates given PT, CONTENT, BOUNDS and METADATA."
+  ;; Redisplay the minibuffer such that the input becomes immediately
+  ;; visible before the expensive candidate recomputation is performed (Issue 
#89).
+  (redisplay)
   (pcase-let* ((field (substring content (car bounds) (+ pt (cdr bounds))))
                ;; `minibuffer-completing-file-name' has been obsoleted by the 
completion category
                (completing-file (eq 'file (completion-metadata-get metadata 
'category)))



reply via email to

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