[Top][All Lists]

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

bug#25272: problem with imenu and company-mode

From: Dmitry Gutov
Subject: bug#25272: problem with imenu and company-mode
Date: Tue, 1 Dec 2020 02:50:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 30.11.2020 13:30, Lars Ingebrigtsen wrote:
It's not really that clear what the issue is -- at least not to me.:-)

sh--cmd-completion-table (a completion table function) delegates to imenu--make-index-alist. Which is affected imenu-max-item-length: when an item gets too long, it is truncated.

That is fine for Imenu index, I guess, but creates invalid completions (the examples in the report are when function names are longer than 60 chars).

A fix would be to either stop going through imenu--make-index-alist and write proper completion logic, or at least temporarily bind imenu-max-item-length to nil, while making sure to clear the imenu entries cache.

reply via email to

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