[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59678: [PATCH] sh-script: use completion-table-with-cache to improve
From: |
Eli Zaretskii |
Subject: |
bug#59678: [PATCH] sh-script: use completion-table-with-cache to improve performance |
Date: |
Fri, 02 Dec 2022 15:44:11 +0200 |
> Cc: Yikai Zhao <yikai@z1k.dev>
> From: yikai@z1k.dev
> Date: Tue, 29 Nov 2022 22:30:14 +0800
>
> Hi,
>
> I found that the auto-completion on .sh files (with company-mode) was pretty
> slow (takes several seconds).
> It turns out that company-mode would call the capf function with 'metadata
> action for each candidate,
> where each function call would need to list all the cmds. In this patch, I
> modified the code to use
> completion-table-with-cache which fixes the problem for me.
Thanks, installed on the emacs-29 branch.
In the future, please accompany your changes with ChangeLog-style commit of
messages (see CONTRIBUTE for the details).