Received: (at 52389) by debbugs.gnu.org; 11 Dec 2021 03:25:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 10 22:25:38 2021 Received: from localhost ([127.0.0.1]:48305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mvt10-0000TR-20 for submit <at> debbugs.gnu.org; Fri, 10 Dec 2021 22:25:38 -0500 Received: from quimby.gnus.org ([95.216.78.240]:33500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mvt0y-0000TD-2D for 52389 <at> debbugs.gnu.org; Fri, 10 Dec 2021 22:25:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=N9CF/zR+oYDP2XsW79QZoiFPY1wOhzMPr966kYvShUQ=; b=CsKDsp0PZy+vrlGB130K4N5unn 7UDVrNYHVwUci/gduksg40bWpEtg0NiAUMrcb2W6v7bGuISdwsaox1w2yok2lymxMeXn/nuSWeI6m wgQ91uUlQ/C0BUKX3NyhylSBZIYC5LrCo4MLMVNm0tjKEvN/Yx0zMqBLJ6YlnUMvNAeQ=; Received: from [84.212.220.105] (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 1mvt0o-0000MF-GU; Sat, 11 Dec 2021 04:25:29 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN> Subject: Re: bug#52389: 29.0.50; Imenu does not pop up the Completions eagerly References: <87bl1pj44k.fsf@HIDDEN> <87mtl8znih.fsf@HIDDEN> <m1lf0strq8.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXq8fnAqLegeX9e OEAjFBucVUH///8QE4DzAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UMCg0iAI96+IcAAAGdSURBVDjL 1VNBbsNACNzkBbHzgtjtvTLwAsgHgvn/Vzqw2ciVUqnXcshGMzALw7q1fx8T4i28LLTc3sArmSm1 H9RpmomAI5peDtnzShVJ2DSYeSnQO9V4/ur4lY5hjeatejvzC3RSIhAkt0s78TE/CQMhy3TNRBsE o107K3iKz2NFEQtwY5MoSJBTVIvsz1AlLhEumATnKs17Kco8hlI4oyvxrTe4i2DknIGcrUUKoMEt b+yixRQRXSRSXnoCPQnom7o8hlU8iEdyTttHZUHZn0TFA832+meFD8ZjM+1X9q7oRRDb2ikMqAPN YHUtsVZWUNboaJzvOJtSCKokk7OMlctRmChlSMRu+LnvyorXw628wVwibpmZQzA8aUDZcq8SBpPz QoWV0RIDsmLB+c7QExJRWvvAAn2TYFgrNIiczg1dMS6BICzjkso11xxQhx8Ch1JS63JsAbALtLIJ VCjeLoaoJZpIIrh8r9fONVx5IfUByI52jdGuvExcOdW4+IY/MKAeLJDCuBO/xB8JpeeZ32CenhOb YKB8AjDE+RtdBtpHyoFRdQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMi0xMFQxMzozNDowMCsw MDowMD0NvwUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTItMTBUMTM6MzQ6MDArMDA6MDBMUAe5 AAAAAElFTkSuQmCC X-Now-Playing: Section 25's _From The Hip_: "Back To Wonder (12" Version)" Date: Sat, 11 Dec 2021 04:25:25 +0100 In-Reply-To: <m1lf0strq8.fsf@HIDDEN> ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Fri, 10 Dec 2021 16:16:47 +0100") Message-ID: <87h7bfx1p6.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Daniel MartÃn <mardani29@HIDDEN> writes: > I think the safest way to solve this long-standing problem without > surprising users is to introduce a new variable whose logic is handled > correctly, and mark imenu-eager-completion-buffer as dep [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 52389 Cc: Protesilaos Stavrou <info@HIDDEN>, 52389 <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: -3.3 (---) Daniel Mart=C3=ADn <mardani29@HIDDEN> writes: > I think the safest way to solve this long-standing problem without > surprising users is to introduce a new variable whose logic is handled > correctly, and mark imenu-eager-completion-buffer as deprecated. Sounds good to me. (The new variable could be an alias of the old name, but have a name with the opposite meaning, and then things would continue to work for everybody.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#52389
; Package emacs
.
Full text available.Received: (at 52389) by debbugs.gnu.org; 10 Dec 2021 15:17:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 10 10:17:02 2021 Received: from localhost ([127.0.0.1]:47734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mvhdu-0002p2-3S for submit <at> debbugs.gnu.org; Fri, 10 Dec 2021 10:17:02 -0500 Received: from sonic305-20.consmr.mail.ir2.yahoo.com ([77.238.177.82]:36060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mardani29@HIDDEN>) id 1mvhdq-0002oc-7e for 52389 <at> debbugs.gnu.org; Fri, 10 Dec 2021 10:17:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1639149411; bh=B1/s5qjdlzjhVExnW0EaUaD3dsskzUiacRT1YvjQSLQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=X0APEPasEQh4yIaRj3yWiDTqLtXZeV5i764MKcuIsgt7qVtuNWD/5OI96yJXka0cnVP0FWgBF7h9zmA3bJBGn8fgyT2UQwNWedBvVuwNItBnWxWlLdUWI6xsmNVtyxNFEoRCYCPuyIwBzMtz885E8Xmgpbw0YSX5iY+W9YrkA+Z4UkcQSPbWJfmZYhAEm8dZDYyI44DjzXZMi3ZQtpKVej+iA0AAA/uKC6+PJJ9GDgrcA0U2SAWCDxst39Cea6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mNuYkVHhXIiLfiGI9Y75TDsIKIc5vFVF GaI2sgXf7Ap2ilqItnoAWulq5ZM3fd0h06jCdbSGpczzMt12mO4wRv1Kn8oSsNMqANuUEHTF28BV RtS8L2sZiBnSVI0BcnEZ5JkJx4jqibv5U8l3TImV9HNed2LAtzOju3AayY6EJO59iMcZazRGKBsi fuPk03aUivA0rzL16hMCK0_bEPJp_rDaa5RkqVVhXQbPBGGgMRqeWnB58Q5f9AyR2ugB9eqm4unA EbsXU75xRZAsiqavfOuUeoSngXQI.QI1jgC.D6a0p_nrLPEd2NFvumcpE1mnicTda1i.fFs_OtGP lQTFWnj70wdhYWv9qrTKWzRS06MIRcApXwFIrR91ogEXO9NY54Cj9gq7IpcooDreTGoHZbIlZZ4e 1070F6vG.8vaAzHnBThZjOxrkQSkN0BpSyTdry5dVN8vif5aHl_nvJObsY_ETNh8WvMh5IzXAlaC QrurN7Z5F.N8DQpaP2rcOBKQa8ASH4KlDxW0JI61WaOdJpaDeSvHg22o9i.d_2DXFHlXUmCOCbhC 65xGaJLIJgndtlIqGsjdKCZsMkiyU8eHinO9saQ80TW1Dw2Vk1Bokkg0TXiHOzYcC6xrHvKltwin nH4BhVlNdLPeCmLj3qDTKLYmuvHuKpxq8dtwcMIr1e53jaoWInW4EKPbAWQ4ptZfawAd1Z7DTz0H ytO277BfEznzS0aWmzaXU18sw7j5Mf60QkuudN7z9JM1yHUvpQljCJTCQ1w-- X-Sonic-MF: <mardani29@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Fri, 10 Dec 2021 15:16:51 +0000 Received: by kubenode516.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 31d0e8e0676aaa6f9f60c7d08345daa8; Fri, 10 Dec 2021 15:16:48 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#52389: 29.0.50; Imenu does not pop up the Completions eagerly References: <87bl1pj44k.fsf@HIDDEN> <87mtl8znih.fsf@HIDDEN> Date: Fri, 10 Dec 2021 16:16:47 +0100 In-Reply-To: <87mtl8znih.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri, 10 Dec 2021 12:51:18 +0100") Message-ID: <m1lf0strq8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.19415 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 767 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 52389 Cc: Protesilaos Stavrou <info@HIDDEN>, 52389 <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.8 (/) Lars Ingebrigtsen <larsi@HIDDEN> writes: > Protesilaos Stavrou <info@HIDDEN> writes: > >> * lisp/imenu.el (imenu-eager-completion-buffer): Set the default value >> to nil, as that was the intended one. >> (imenu--completion-buffer): Update the condition to check for a >> non-nil value to 'imenu-eager-completion-buffer'. > > But you're reversing the logic, so that people who have set this to nil > now won't get an eager pop up? > > I don't think we can do that. The documentation (and indeed the name of > the variable) seems to be wrong, though. I think the safest way to solve this long-standing problem without surprising users is to introduce a new variable whose logic is handled correctly, and mark imenu-eager-completion-buffer as deprecated.
bug-gnu-emacs@HIDDEN
:bug#52389
; Package emacs
.
Full text available.Received: (at 52389) by debbugs.gnu.org; 10 Dec 2021 11:51:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 10 06:51:32 2021 Received: from localhost ([127.0.0.1]:45729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mveR1-0004ZK-SS for submit <at> debbugs.gnu.org; Fri, 10 Dec 2021 06:51:32 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mveR0-0004Z8-Kg for 52389 <at> debbugs.gnu.org; Fri, 10 Dec 2021 06:51:31 -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=7ldNEs68v9MOu43VTmOSpSsYvHEw4eeEdADBszCmzuQ=; b=ChXCwkofUHKiRzDDo7K2wzmXlw FrJcrxDCWILDF0tYJUO9w96sKUAbmviZNFyoUZ3C54zZZSwlypqEb2ii3CC9J6DBTyOzoDaRXV7ml MpftJwahkLZkGG8wZq6kMvIhjqN3yfg/12U0mKuz11436dlqZaYS6GEGvpg1j+LFmooc=; Received: from [84.212.220.105] (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 1mveQr-0002oc-O0; Fri, 10 Dec 2021 12:51:24 +0100 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Protesilaos Stavrou <info@HIDDEN> Subject: Re: bug#52389: 29.0.50; Imenu does not pop up the Completions eagerly References: <87bl1pj44k.fsf@HIDDEN> X-Now-Playing: The Smiths's _Hatful Of Hollow_: "William It Was Really Nothing" Date: Fri, 10 Dec 2021 12:51:18 +0100 In-Reply-To: <87bl1pj44k.fsf@HIDDEN> (Protesilaos Stavrou's message of "Thu, 09 Dec 2021 15:32:11 +0200") Message-ID: <87mtl8znih.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Protesilaos Stavrou <info@HIDDEN> writes: > * lisp/imenu.el (imenu-eager-completion-buffer): Set the default value > to nil, as that was the intended one. > (imenu--completion-buffer): Update the condition to check for a > non-nil value to 'i [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 52389 Cc: 52389 <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: -3.3 (---) Protesilaos Stavrou <info@HIDDEN> writes: > * lisp/imenu.el (imenu-eager-completion-buffer): Set the default value > to nil, as that was the intended one. > (imenu--completion-buffer): Update the condition to check for a > non-nil value to 'imenu-eager-completion-buffer'. But you're reversing the logic, so that people who have set this to nil now won't get an eager pop up? I don't think we can do that. The documentation (and indeed the name of the variable) seems to be wrong, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#52389
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 9 Dec 2021 13:32:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 09 08:32:35 2021 Received: from localhost ([127.0.0.1]:42905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mvJX2-0002y8-NV for submit <at> debbugs.gnu.org; Thu, 09 Dec 2021 08:32:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:42138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <info@HIDDEN>) id 1mvJX1-0002y0-5N for submit <at> debbugs.gnu.org; Thu, 09 Dec 2021 08:32:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <info@HIDDEN>) id 1mvJX0-0003r5-Ty for bug-gnu-emacs@HIDDEN; Thu, 09 Dec 2021 08:32:18 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <info@HIDDEN>) id 1mvJWy-0001Qz-Rt for bug-gnu-emacs@HIDDEN; Thu, 09 Dec 2021 08:32:18 -0500 Received: (Authenticated sender: public@HIDDEN) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D8A3CE000D for <bug-gnu-emacs@HIDDEN>; Thu, 9 Dec 2021 13:32:12 +0000 (UTC) From: Protesilaos Stavrou <info@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 29.0.50; Imenu does not pop up the Completions eagerly Date: Thu, 09 Dec 2021 15:32:11 +0200 Message-ID: <87bl1pj44k.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=217.70.183.196; envelope-from=info@HIDDEN; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -1.0 (-) --=-=-= Content-Type: text/plain Dear maintainers, I think the current behaviour of 'imenu-eager-completion-buffer' is counter-intuitive. Its default value is non-nil, while its doc string tells us that: If non-nil, eagerly popup the completion buffer. This, however, is not what actually happens. With 'emacs -Q': + Include a demo function in the scratch buffer: (defun test-fn ()) + M-x imenu + Here we expect the Completions' buffer to eagerly pop up, yet it does not. + M-: (setq imenu-eager-completion-buffer nil) + M-x imenu + The Completions' buffer now pops up automatically. Do you agree that this is counter-intuitive? If so, please find attached a patch that should fix the issue. I was not sure this was NEWSworthy, but I included an entry regardless. All the best, Protesilaos -- Protesilaos Stavrou https://protesilaos.com --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-semantics-of-imenu-eager-completion-buffer.patch From b4625110cb5b40f079c134a73e9be8240818fa33 Mon Sep 17 00:00:00 2001 Message-Id: <b4625110cb5b40f079c134a73e9be8240818fa33.1639055998.git.info@HIDDEN> From: Protesilaos Stavrou <info@HIDDEN> Date: Thu, 9 Dec 2021 15:19:48 +0200 Subject: [PATCH] Fix semantics of imenu-eager-completion-buffer * etc/NEWS: Document the change. * lisp/imenu.el (imenu-eager-completion-buffer): Set the default value to nil, as that was the intended one. (imenu--completion-buffer): Update the condition to check for a non-nil value to 'imenu-eager-completion-buffer'. --- etc/NEWS | 7 +++++++ lisp/imenu.el | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index b9134d850e..a83f2d2a86 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -706,6 +706,13 @@ the Netscape web browser was released in February, 2008. This support has been obsolete since Emacs 25.1. The final version of the Galeon web browser was released in September, 2008. +** Imenu +The default value of 'imenu-eager-completion-buffer' is set to nil to +better convey the intended semantics of optionally popping up the +Completions' buffer automatically after invoking M-x imenu (with the +default settings from previous versions, the Completions would not pop +up automatically and the same is true now). + * New Modes and Packages in Emacs 29.1 diff --git a/lisp/imenu.el b/lisp/imenu.el index 22412d5f88..bf12e110e5 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -99,10 +99,10 @@ (defcustom imenu-use-popup-menu 'on-mouse (const :tag "Never" nil) (other :tag "Always" t))) -(defcustom imenu-eager-completion-buffer t +(defcustom imenu-eager-completion-buffer nil "If non-nil, eagerly popup the completion buffer." :type 'boolean - :version "22.1") + :version "29.1") (defcustom imenu-after-jump-hook nil "Hooks called after jumping to a place in the buffer. @@ -727,7 +727,7 @@ (defun imenu--completion-buffer (index-alist &optional prompt) name)))) (let ((minibuffer-setup-hook minibuffer-setup-hook)) ;; Display the completion buffer. - (if (not imenu-eager-completion-buffer) + (when imenu-eager-completion-buffer (add-hook 'minibuffer-setup-hook 'minibuffer-completion-help)) (setq name (completing-read prompt prepared-index-alist -- 2.34.1 --=-=-=--
Protesilaos Stavrou <info@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#52389
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.