|
From: | Dmitry Gutov |
Subject: | Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations |
Date: | Wed, 2 Jun 2021 14:28:24 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 02.06.2021 14:04, João Távora wrote:
(defun icomplete-post-command-hook () (let ((non-essential t)) ;E.g. don't prompt for password! I would also suggest lowering the default of icomplete-compute-delay to 0.1 or even 0.05. With 300ms delay, the new behavior does look a little weird.Can you remind us what that delay is doing there again?
It waits before fetching completions if input it too short. To save on CPU usage or whatever.
Anyway, it should probably consult a customization knob. Or maybe the new behaviour could decide based on icomplete-compute-delay If someone is customizing that to a low value, turn on the anti-flicker and suffer some little latency. If the normal value, keep the current flickering and 0-ish latency.
The proposed change doesn't add any latency. And it would be helpful to have it working OOTB. But maybe disable if the user customizes the delay to be higher.
[Prev in Thread] | Current Thread | [Next in Thread] |