Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 25272) by debbugs.gnu.org; 1 Dec 2020 00:50:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 19:50:53 2020 Received: from localhost ([127.0.0.1]:57171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kjtsa-0006I8-QF for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 19:50:52 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:44261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raaahh@HIDDEN>) id 1kjtsZ-0006Hw-Vw for 25272 <at> debbugs.gnu.org; Mon, 30 Nov 2020 19:50:52 -0500 Received: by mail-wr1-f46.google.com with SMTP id 64so18894105wra.11 for <25272 <at> debbugs.gnu.org>; Mon, 30 Nov 2020 16:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=380kfH54/J4VkBvg2mIkbnp8flM0cprne2Gkha22ix8=; b=oC7kUIGViN2Me5t6/wXY3+++XgSK1dPYsP8upB222Fds52rmk4LA2tHcqJ0aMTNRXo hDemjrr5zXOvzOU7jyE2HxMRoI//146dZAnuOUnkHOd1AE9r5gWY0+A6D3ZEZ0MfVN+t i51sCQ3hgaY0yNo/sQQY6QdfV/f9TQVzJ50bpcq5vnExgjA/xMHk3PwLN4DrmYR02N0b NoaDY0lLrwrKzf1VM4F6R+1i3pBVIHN4Xd9yDBcw8B3N4R/UV5m3Evth3lxh6Rx9VdCX jyvUA36x5c1cIF4DxTqf7XGXvxwEHYucGHG9iLzvtWa397IJHctziAknu5TT462yr2gW 93BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=380kfH54/J4VkBvg2mIkbnp8flM0cprne2Gkha22ix8=; b=Nqt2bXY11vdAKlyIBungrcXdUYRuPLbE3kUMEozFe8ATJ9qJ8ZAcjJcDL2HA4PP+FO w2wfxSSVNcreoJLpKN/qKe9KS1kIUegx0zAGiYn+QySQV/tJCrgfpUuxJBZppU1QA0aW 14iU9zBAFQhljOzAHu8aR3dfBUFDAcLwdIo3RkN8yo2uiVOA50BykrJwPjPb5puUbYjj Mri7HiybCtsB9DEdWfW80V9GRclKxLK05wUbqVStG/ch8Yc+glSTC8ffdfCP1vIxhdNX 7ETFnYBHISE3G3vrYvcb3gKMjCZcr5T8Q0WDdpcDX/AjULTaLDtEfFXROeOHbxjoEyZo gRhg== X-Gm-Message-State: AOAM530GJen2LXj6+SwrwFYYmZgRjNVbmwwKMD4jqXjK4N2z5YWqdaYU NygTORFROWQjaQYz5HgGoN+3FfMDW9yInA== X-Google-Smtp-Source: ABdhPJzmwDkkxvIf1y6iM7eaVE/k5Ama/NF73bBQCqdPQ7odvRDAAajTO4Kjo0JL8Ths3QMXrtfY4Q== X-Received: by 2002:a5d:4ec8:: with SMTP id s8mr210419wrv.349.1606783845767; Mon, 30 Nov 2020 16:50:45 -0800 (PST) Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id b74sm33366wme.27.2020.11.30.16.50.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 16:50:44 -0800 (PST) Subject: Re: bug#25272: problem with imenu and company-mode To: Lars Ingebrigtsen <larsi@HIDDEN>, Ali AlipourR <alipoor90@HIDDEN> References: <CABvhJLi47Zpb0PMdLN-QiVK_c9HsM2rtJtUokUL-+2G2jXaRWg@HIDDEN> <87360raxq0.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <d617c82d-8cdb-498d-8260-54a90513fc93@HIDDEN> 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 MIME-Version: 1.0 In-Reply-To: <87360raxq0.fsf@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25272 Cc: 25272 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) 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.
bug-gnu-emacs@HIDDEN
:bug#25272
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 25272) by debbugs.gnu.org; 30 Nov 2020 11:30:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 06:30:27 2020 Received: from localhost ([127.0.0.1]:53794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kjhNz-0004CT-8z for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 06:30:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1kjhNx-00044X-7X for 25272 <at> debbugs.gnu.org; Mon, 30 Nov 2020 06:30:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nZuRAnPGQh7DP7tuCG69qRujx/oOZX/QZi97DHC3Svw=; b=eO5ujlUOp2ft4IPp15rrCnh66g Bb9uKlBCxHtHWnBTAhHT8MIpm0xcenHJwkBwuLZuzSCqDgv4teFeycgq/dj+FXjw6IREKSE5GVVRB 2Ufn3u2ch9yWNqME3aT5QA9HZXEwil6rp+YbWqNQPIrNkxIAWuEBmU4XH0TkgW88VpzU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1kjhNo-0008GU-Tz; Mon, 30 Nov 2020 12:30:19 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Ali AlipourR <alipoor90@HIDDEN> Subject: Re: bug#25272: problem with imenu and company-mode References: <CABvhJLi47Zpb0PMdLN-QiVK_c9HsM2rtJtUokUL-+2G2jXaRWg@HIDDEN> X-Now-Playing: Yukihiro Takahashi's _Saravah!_: "Sunset" Date: Mon, 30 Nov 2020 12:30:15 +0100 In-Reply-To: <CABvhJLi47Zpb0PMdLN-QiVK_c9HsM2rtJtUokUL-+2G2jXaRWg@HIDDEN> (Ali AlipourR's message of "Mon, 26 Dec 2016 06:10:07 +0330") Message-ID: <87360raxq0.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ali AlipourR <alipoor90@HIDDEN> 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.) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25272 Cc: Dmitry Gutov <dgutov@HIDDEN>, 25272 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Ali AlipourR <alipoor90@HIDDEN> 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
bug-gnu-emacs@HIDDEN
:bug#25272
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 26 Dec 2016 02:40:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 25 21:40:18 2016 Received: from localhost ([127.0.0.1]:55137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1cLLD0-0007II-NX for submit <at> debbugs.gnu.org; Sun, 25 Dec 2016 21:40:18 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <alipoor90@HIDDEN>) id 1cLLCz-0007I6-DY for submit <at> debbugs.gnu.org; Sun, 25 Dec 2016 21:40:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alipoor90@HIDDEN>) id 1cLLCt-0004dv-7p for submit <at> debbugs.gnu.org; Sun, 25 Dec 2016 21:40:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_40, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <alipoor90@HIDDEN>) id 1cLLCt-0004dq-4l for submit <at> debbugs.gnu.org; Sun, 25 Dec 2016 21:40:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alipoor90@HIDDEN>) id 1cLLCr-0001Ds-Mu for bug-gnu-emacs@HIDDEN; Sun, 25 Dec 2016 21:40:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alipoor90@HIDDEN>) id 1cLLCq-0004cX-Ut for bug-gnu-emacs@HIDDEN; Sun, 25 Dec 2016 21:40:09 -0500 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:35783) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alipoor90@HIDDEN>) id 1cLLCq-0004c2-PJ for bug-gnu-emacs@HIDDEN; Sun, 25 Dec 2016 21:40:08 -0500 Received: by mail-io0-x230.google.com with SMTP id n85so55753473ioi.2 for <bug-gnu-emacs@HIDDEN>; Sun, 25 Dec 2016 18:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yt2GJscI+Hyjh39/NXJ7RAwCyAS/t5xQwy1cTbyDQlY=; b=pJEdvoAsXaZTSMVI/yglUK3Jpq2sYdRH0SgXAcu9foFafDHbxLDpLtCS2iSeUfwAKL PHRt1OI88gk7yBg7p97Nzc9YcPcIo5RgMUAAnBv8skgDUlX1D5cZ8cnb8VKoU/24Dk6a odA34dgqK3XKKWnFreygZZuEutC1vW1/spo1Xl4e2+8xbpegDwprRP+SidQwCTEjkOtr qVeeg4I07lPCxM5y77nPY8f2I7JzWk2pxIUkOfF6lJWRlUkctn+vCEqF1PYPLm+unjM+ AxIU7Rjw39tbyc+E5G2tTlKpO5SFGzzQ7F8jptb4FI5yZnJzRCWRkUQTzwoAKq9dX8tO wrRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yt2GJscI+Hyjh39/NXJ7RAwCyAS/t5xQwy1cTbyDQlY=; b=i4qoN4tdodY9savAGwTIHSmeWxlIh8VuybcFDWQHZGuE1tKbITtdQLHyVFA9jw/k4/ A2b52zrhQrHQLrXxMr0uTaIZ3HQiz0zhF8Uo6G0nWFECf8slA7TRDRdh4eDfOOUM7xiF L51d0Q7f5q9L25CwLUhdu+rmTpImnFZQIgnkK6hg/otmUlqdIOqthoIBcVHWRONxN4pb Bj/z0rhJ/YFbYJNZBZwPJGV6dae8N+4+UL8wPqPX3DUU3u1L9fZEIvyzngHLH3+GBA2N W6xuVwt2JW0fvVBon4Lonc5VLXUGPSx1SIazW9U0sqKWAvrIyRwNZqPmcNjo8TXKbEdl jenQ== X-Gm-Message-State: AIkVDXJOi9MPE90QlSCquZ/GyGafGJLlW3Rfkk1SySLmClZQS9QrLC5XlRRK+dNaG68pMlwiyE3Yi1wQePaTiQ== X-Received: by 10.107.171.4 with SMTP id u4mr19412070ioe.102.1482720007878; Sun, 25 Dec 2016 18:40:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.3.66 with HTTP; Sun, 25 Dec 2016 18:40:07 -0800 (PST) From: Ali AlipourR <alipoor90@HIDDEN> Date: Mon, 26 Dec 2016 06:10:07 +0330 Message-ID: <CABvhJLi47Zpb0PMdLN-QiVK_c9HsM2rtJtUokUL-+2G2jXaRWg@HIDDEN> Subject: problem with imenu and company-mode To: bug-gnu-emacs@HIDDEN Content-Type: multipart/alternative; boundary=94eb2c05e9165f1925054486a741 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.8 (---) --94eb2c05e9165f1925054486a741 Content-Type: text/plain; charset=UTF-8 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 --94eb2c05e9165f1925054486a741 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi<br>I'm not sure this is really a "problem"= ; with imenu, but here are the details:=C2=A0<br><a href=3D"https://github.= com/company-mode/company-mode/issues/624">https://github.com/company-mode/c= ompany-mode/issues/624</a><br><br>Thanks</div> --94eb2c05e9165f1925054486a741--
Ali AlipourR <alipoor90@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#25272
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.