GNU bug report logs -
#25272
problem with imenu and company-mode
Previous Next
To reply to this bug, email your comments to 25272 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25272
; Package
emacs
.
(Mon, 26 Dec 2016 02:41:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ali AlipourR <alipoor90 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 26 Dec 2016 02:41:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi
I'm not sure this is really a "problem" with imenu, but here are the
details:
https://github.com/company-mode/company-mode/issues/624
Thanks
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25272
; Package
emacs
.
(Mon, 30 Nov 2020 11:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 25272 <at> debbugs.gnu.org (full text, mbox):
Ali AlipourR <alipoor90 <at> gmail.com> writes:
> Hi
> I'm not sure this is really a "problem" with imenu, but here are the details:
> https://github.com/company-mode/company-mode/issues/624
>
> Thanks
(This bug report unfortunately got no response at the time.)
The relevant bits from that bug report seems to be:
---
1 open this file
2 M-x sh-mode (this should recognize the shebang line and take you to
shell-script[bash] mode)
3 M-x company-mode
and it should give you suggestions, define a new long name function/variable
and ...
Thanks
@dgutov
SVG Image Copy link
Member
@dgutov
dgutov commented Dec 25, 2016
Thanks. I though I was doing exactly that, but apparently not. I can reproduce
this now.
It's a problem in Emacs (which was apparent from the outset, since the backend
is company-capf), and it goes like this: the completion function takes the
generated IMenu index to get the list of functions.
IMenu, however, uses imenu-max-item-length to truncate the lengths of its items.
So please M-x report-emacs-bug so we can get this fixed, one way or another. In
the meantime, you can customize imenu-max-item-length to some larger value
as a workaround.
SVG Image
@dgutov
dgutov added the third party issue label Dec 25, 2016
SVG Image
@SudoerReodus
SudoerReodus closed this Dec 26, 2016
@dgutov
SVG Image Copy link
Member
@dgutov
dgutov commented Dec 26, 2016
To be clear, it's a bug in sh-mode, not in IMenu.
---
It's not really that clear what the issue is -- at least not to me. :-)
Dmitry?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 30 Nov 2020 11:31:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25272
; Package
emacs
.
(Tue, 01 Dec 2020 00:51:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 25272 <at> debbugs.gnu.org (full text, mbox):
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.
Removed tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jan 2021 20:32:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.