[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vcomplete e320d50fb4 28/91: Make auto updating the complet
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vcomplete e320d50fb4 28/91: Make auto updating the completion list buffer more responsive |
Date: |
Tue, 24 May 2022 15:59:07 -0400 (EDT) |
branch: elpa/vcomplete
commit e320d50fb4a69661ee6812f3a056a357f60fcda1
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
Make auto updating the completion list buffer more responsive
* vcomplete.el (vcomplete--set-last-string-in-minibuffer)
(vcomplete--set-last-string-in-region): Wrap in
'(while-no-input (redisplay) CODE)'.
---
vcomplete.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/vcomplete.el b/vcomplete.el
index 1b890d6447..7cd30f54d9 100644
--- a/vcomplete.el
+++ b/vcomplete.el
@@ -184,18 +184,23 @@ With prefix argument N, move N items (negative N means
move forward)."
(defun vcomplete--set-last-string-in-minibuffer ()
"Set ‘vcomplete--last-string’ in a minibuffer."
- (setq vcomplete--last-string (minibuffer-contents)))
+ (while-no-input
+ (redisplay)
+ (setq vcomplete--last-string (minibuffer-contents))))
(defun vcomplete--string-in-region ()
- "Return a substring according to the markers in
‘completion-in-region--data’."
+ "Return a substring according to the markers in
+‘completion-in-region--data’."
(when completion-in-region--data
(buffer-substring (car completion-in-region--data)
(cadr completion-in-region--data))))
(defun vcomplete--set-last-string-in-region ()
"Set ‘vcomplete--last-string’ in-region."
- (setq vcomplete--last-string
- (vcomplete--string-in-region)))
+ (while-no-input
+ (redisplay)
+ (setq vcomplete--last-string
+ (vcomplete--string-in-region))))
(defun vcomplete--update-in-minibuffer ()
"Update the completion list when completing in a minibuffer."
- [nongnu] branch elpa/vcomplete created (now 8450b1befd), ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 5391b6e4e2 07/91: Auto update the completion list when completing in-region, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete cb8fbc39ef 10/91: Fix 'vcomplete--update-in-region' added to 'post-command-hook' globally, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 452cf29801 04/91: Optionally update the '*Completions*' buffer automatically, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete a064184c7f 23/91: Add basic Embark support, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete e320d50fb4 28/91: Make auto updating the completion list buffer more responsive,
ELPA Syncer <=
- [nongnu] elpa/vcomplete 10d9ca2fe1 29/91: ; Small Makefile modifications, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 07da8d9c1b 15/91: Fix 'vcomplete-auto-update' triggering an error when set initially, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 3c5e8eba9c 06/91: ; Remove 'vcomplete--setup' from the correct hook variable, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 68b3a86741 14/91: ; Fix incorrect short description of Info node, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 2995fb124d 33/91: ; Add disclaimer regarding Embark integration, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 0f5505cd54 36/91: ; Add a link to the relevant part of the manual for 'vcomplete-auto-update', ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 668f16f903 43/91: ; Bump to version 1.0, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 3c00d732a2 51/91: Remove 'vcomplete--reset-vars', ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 62428759ac 47/91: ; Change required Emacs version according to package-lint, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 9aa2d01fb9 52/91: ; Improvements to the manual, ELPA Syncer, 2022/05/24