unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Lars Ingebrigtsen <larsi@gnus.org>, Ali AlipourR <alipoor90@gmail.com>
Cc: 25272@debbugs.gnu.org
Subject: bug#25272: problem with imenu and company-mode
Date: Tue, 1 Dec 2020 02:50:43 +0200	[thread overview]
Message-ID: <d617c82d-8cdb-498d-8260-54a90513fc93@yandex.ru> (raw)
In-Reply-To: <87360raxq0.fsf@gnus.org>

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

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	other threads:[~2020-12-01  0:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-26  2:40 bug#25272: problem with imenu and company-mode Ali AlipourR
2020-11-30 11:30 ` Lars Ingebrigtsen
2020-12-01  0:50   ` Dmitry Gutov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d617c82d-8cdb-498d-8260-54a90513fc93@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=25272@debbugs.gnu.org \
    --cc=alipoor90@gmail.com \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).