Received: (at 73117) by debbugs.gnu.org; 6 Jan 2025 00:16:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 19:16:11 2025 Received: from localhost ([127.0.0.1]:35948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tUamw-0005wI-So for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 19:16:11 -0500 Received: from mail-ej1-f43.google.com ([209.85.218.43]:55688) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <troy.s.brown@HIDDEN>) id 1tUams-0005vW-Sw for 73117 <at> debbugs.gnu.org; Sun, 05 Jan 2025 19:16:09 -0500 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa689a37dd4so2248645866b.3 for <73117 <at> debbugs.gnu.org>; Sun, 05 Jan 2025 16:16:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736122560; x=1736727360; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hTkekvgM3rRkcM3hFLdM1UhS3b2alXDsD9QCp+tuJmg=; b=QAvj/2KQj0fLP1x+AjEVcBaFk85UzyZiZd36L0O46YiUkIYMqZ7gUpJk1Ke1W3Pc68 2mtkrsIzBuYuvsiWxl+J9tAyHMPQjyIAOlV8Cuc672ADv3mCPGtmDzIymiPx5SNONUMI MBhQvoJOfNGT18u3s+9crqFJNrGvvmZln/ybeU6VAwoAD92Li3ePJ7oR3gZJq2v/jSjP yj/XMB6fwWeMzJNLjInJQCDXHKSyF4ZrnnCnd/lLYM9bmrFl4u4dm5Wj/R+fYCXfcdaO gWFw1WMlbKA1OEF1q2W5J+7YUUDnMzFi/rhhc3ZeA7iD9Jz55rRdFZs6hTi3TAHSZtYw gcNw== X-Forwarded-Encrypted: i=1; AJvYcCVgyYSDID5o+vi/Ymk3HfqFHjh4d/ZqMywSdLcLG+eUKkm7VxBS6AgRYGnSoDpMdrYjWWR1Yw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx1dE29td864DljQ4Z+d6u7EA3/dbfbjsOhug5O7te6YTxvBGVS BtF/19f+wixbb+mqfhj3ypsb3h1vUHs22e0PJNu/BjPHlr41y5BHgtfDFwda8xs= X-Gm-Gg: ASbGncuGXvsMWSB6YiEDILFcjCWKV3MAVb1HKHioDn0dPSEyR2mECBgr6Se5c1ZlFuR G+oFPqL539RrtiyQI5aiLzaIEHmQbOaAcp8P1VTwtKiRJsA/gJunkPtXXJxsWAPjaBGYgOY3xeL g156z5X8k/NxrJpmoui51B6cK+cRO9jp/IGoffO1+DFlHVQM4+g0/E5LFaNaJwG6AlxAB/aN1lR 0F7FuNV4mwAb7xABjwh9wL8SWdaqKJ3h2JLaprHug1ZcEpfbDnX/0Vl1IYRp9a05Tw8JXtn1x7l cxwYhAdu6MFFvxZ+zcug X-Google-Smtp-Source: AGHT+IH6nNN80Dsy7Z5P0n3B6i/JJZPN8BUwGBMMiKaO9oiJRBXtnp1N3ocbCG1yR14OT1rCSHfQnw== X-Received: by 2002:a17:907:3e90:b0:aa6:abb2:be12 with SMTP id a640c23a62f3a-aac3354ff4dmr3975115266b.37.1736122560053; Sun, 05 Jan 2025 16:16:00 -0800 (PST) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com. [209.85.218.46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0efe49ccsm2191539766b.94.2025.01.05.16.15.59 for <73117 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jan 2025 16:15:59 -0800 (PST) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-aafc9d75f8bso198372866b.2 for <73117 <at> debbugs.gnu.org>; Sun, 05 Jan 2025 16:15:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWrBdH60Gwp1pdxguaEgIVCaH9jzse5srJzvDWph4vOWdHOKqf6KeWeuB63V4Ll8qBWlqqHfA==@debbugs.gnu.org X-Received: by 2002:a17:907:318c:b0:aaf:ab6f:da49 with SMTP id a640c23a62f3a-aafab6fdc82mr888689966b.39.1736122559679; Sun, 05 Jan 2025 16:15:59 -0800 (PST) MIME-Version: 1.0 References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> <CABvCZ405z+FmDqqubHmV6s8X0EbWFs1nuEeLzWzMDfuQ1ZPUdQ@HIDDEN> <867cb66bvb.fsf@HIDDEN> <86bk086so2.fsf@HIDDEN> In-Reply-To: <86bk086so2.fsf@HIDDEN> From: Troy Brown <brownts@HIDDEN> Date: Sun, 5 Jan 2025 19:15:47 -0500 X-Gmail-Original-Message-ID: <CABvCZ43Z98vcaBvKOKWudzk3rgsp=0MJrFJhqwad54=kftfLjA@HIDDEN> Message-ID: <CABvCZ43Z98vcaBvKOKWudzk3rgsp=0MJrFJhqwad54=kftfLjA@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, mail@HIDDEN, Juri Linkov <juri@HIDDEN> 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 (/) On Sat, Sep 28, 2024 at 5:20=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote: > > > Cc: 73117 <at> debbugs.gnu.org, Daniel Mendler <mail@HIDDEN> > > From: Juri Linkov <juri@HIDDEN> > > Date: Fri, 20 Sep 2024 09:58:24 +0300 > > > > > The following example configures `imenu-flatten" to "group" and then > > > shows the menu, first with `completions-format` set to "horizontal" > > > and then "vertical". > > > > > > ```elisp > > > (progn > > > (setopt completions-group t) > > > (setopt imenu-eager-completion-buffer nil) > > > (setopt minibuffer-visible-completions t) > > > (setopt imenu-flatten 'group) > > > > > > (require 'imenu) > > > > > > (dolist (format '(horizontal vertical)) > > > (setopt completions-format format) > > > > Any fixes for completion--insert-horizontal should be pushed > > only to master, not to the release branch. > > > > But for the release branch we should push the documentation fixes > > that will mention all prerequisites for this feature to work > > correctly: > > Feel free to install on the release branch, and thanks. While discussing a similar issue for Vertico here (https://github.com/minad/vertico/discussions/553), Daniel discovered that icomplete-mode also won't display all of the grouped candidates. The following is a reproducer which can be used to demonstrate this issue. In the reproducer, the first time through the loop, icomplete-mode is not enabled and the completion buffer shows all four possible candidates along with their corresponding groups, however the next time through the loop, icomplete-vertical-mode is enabled and only 3 of the 4 candidates are displayed. See his comments in the provided link for his take on the issue as well as his discovery of yet more places that groups don't seem to work correctly (e.g., completion--insert-column). ```elisp (progn (setopt completions-group t) (setopt completions-format 'vertical) (setopt imenu-flatten 'group) (setopt icomplete-show-matches-on-no-input t) (require 'imenu) (dolist (arg '(-1 +1)) (icomplete-mode arg) (icomplete-vertical-mode arg) (setopt imenu-eager-completion-buffer icomplete-vertical-mode) (imenu-choose-buffer-index (format "(icomplete-vertical-mode =3D %s) Index item: " icomplete-vertical-mode) `(("XYZ" . (("123" . ,(point-min-marker)))) ("ABC" . (("124" . ,(point-min-marker)))) ("Bar" . (("Foo" . ,(point-min-marker)))) ("Baz" . (("Foo" . ,(point-max-marker)))))= ))) ```
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 28 Sep 2024 09:21:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 28 05:21:17 2024 Received: from localhost ([127.0.0.1]:51851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1suTdc-0007W4-S1 for submit <at> debbugs.gnu.org; Sat, 28 Sep 2024 05:21:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1suTda-0007Vr-IA for 73117 <at> debbugs.gnu.org; Sat, 28 Sep 2024 05:21:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1suTcz-0005bh-SG; Sat, 28 Sep 2024 05:20:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dHI5yHZemNtw5gnZhD/1d3oLebeu4KLTDLyzwMjRI6U=; b=UOn32QJleAXC NIlkAWKjxI4HIglm/PATIxZCRvyUeo61lwxgcZ80/bSlbBglG4uPTD+jbGj18Fic2E9y5q96nmx/L XUWJpIbS/faJk+4o3sF2xLtVLK8fBup7zhNoJCfHDz4W7Lw3rsMuAOlWoBBTVXGE4dOq16urOBDMY HhwOyGD3yEN9WPsUJ31XVG2QndXewA9JQp8vIEnyxlpxZbgIr+u3GdzOf3i8GsbYVv7NDrCCTD6Dc SyPhohWdeEO9HXOK3tJVICXp/B67ARqea7ZHPzV4J1VMJqK78ngXY5yXLR9J/O054hbAyYoA2F25p hR4USqqmVuuA0g1Y0W1vUg==; Date: Sat, 28 Sep 2024 12:20:29 +0300 Message-Id: <86bk086so2.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <867cb66bvb.fsf@HIDDEN> (message from Juri Linkov on Fri, 20 Sep 2024 09:58:24 +0300) Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> <CABvCZ405z+FmDqqubHmV6s8X0EbWFs1nuEeLzWzMDfuQ1ZPUdQ@HIDDEN> <867cb66bvb.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, mail@HIDDEN, brownts@HIDDEN 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 (---) > Cc: 73117 <at> debbugs.gnu.org, Daniel Mendler <mail@HIDDEN> > From: Juri Linkov <juri@HIDDEN> > Date: Fri, 20 Sep 2024 09:58:24 +0300 > > > The following example configures `imenu-flatten" to "group" and then > > shows the menu, first with `completions-format` set to "horizontal" > > and then "vertical". > > > > ```elisp > > (progn > > (setopt completions-group t) > > (setopt imenu-eager-completion-buffer nil) > > (setopt minibuffer-visible-completions t) > > (setopt imenu-flatten 'group) > > > > (require 'imenu) > > > > (dolist (format '(horizontal vertical)) > > (setopt completions-format format) > > Any fixes for completion--insert-horizontal should be pushed > only to master, not to the release branch. > > But for the release branch we should push the documentation fixes > that will mention all prerequisites for this feature to work > correctly: Feel free to install on the release branch, and thanks.
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 20 Sep 2024 07:13:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 20 03:13:23 2024 Received: from localhost ([127.0.0.1]:33926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1srXpT-0006wQ-1O for submit <at> debbugs.gnu.org; Fri, 20 Sep 2024 03:13:23 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:46517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1srXpQ-0006w4-Qz for 73117 <at> debbugs.gnu.org; Fri, 20 Sep 2024 03:13:21 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 70C74C0002; Fri, 20 Sep 2024 07:12:53 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Troy Brown <brownts@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group In-Reply-To: <CABvCZ405z+FmDqqubHmV6s8X0EbWFs1nuEeLzWzMDfuQ1ZPUdQ@HIDDEN> (Troy Brown's message of "Sun, 8 Sep 2024 13:31:36 -0400") Organization: LINKOV.NET References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> <CABvCZ405z+FmDqqubHmV6s8X0EbWFs1nuEeLzWzMDfuQ1ZPUdQ@HIDDEN> Date: Fri, 20 Sep 2024 09:58:24 +0300 Message-ID: <867cb66bvb.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, Daniel Mendler <mail@HIDDEN> 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.7 (-) > The following example configures `imenu-flatten" to "group" and then > shows the menu, first with `completions-format` set to "horizontal" > and then "vertical". > > ```elisp > (progn > (setopt completions-group t) > (setopt imenu-eager-completion-buffer nil) > (setopt minibuffer-visible-completions t) > (setopt imenu-flatten 'group) > > (require 'imenu) > > (dolist (format '(horizontal vertical)) > (setopt completions-format format) Any fixes for completion--insert-horizontal should be pushed only to master, not to the release branch. But for the release branch we should push the documentation fixes that will mention all prerequisites for this feature to work correctly: diff --git a/lisp/imenu.el b/lisp/imenu.el index 8f1b1f22a67..13440cfb626 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -158,9 +158,18 @@ imenu-flatten with a suffix that is the section name to which it belongs. If the value is `group', split completion candidates into groups according to the sections. + Since the values `annotation' and `group' rely on text properties, you can use them only by selecting candidates from the completions -buffer, not by typing in the minibuffer. +buffer, not by typing in the minibuffer. This also means that +if you use `minibuffer-next-completion' (`M-<down>') to select +a completion while point stays in the minibuffer, you need +to customize `minibuffer-completion-auto-choose' to nil that +doesn't insert completion candidates to the minibuffer. +Also note that for using the value `group' you need to customize +`completions-group' to the value t, and `completions-format' +to the value `vertical'. + Any other value is treated as `prefix'. The value of `imenu-level-separator', a string, is used to separate
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 15 Sep 2024 15:59:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 15 11:59:27 2024 Received: from localhost ([127.0.0.1]:50456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sprep-0004lR-AM for submit <at> debbugs.gnu.org; Sun, 15 Sep 2024 11:59:27 -0400 Received: from mail-ed1-f46.google.com ([209.85.208.46]:55495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <troy.s.brown@HIDDEN>) id 1sprem-0004lB-Pc for 73117 <at> debbugs.gnu.org; Sun, 15 Sep 2024 11:59:25 -0400 Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5c42e7adbddso1578361a12.2 for <73117 <at> debbugs.gnu.org>; Sun, 15 Sep 2024 08:59:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726415946; x=1727020746; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9wiBQFTNvGvUO0ibnFFnxBtytBFvJWaEoUwKQoHz824=; b=L4SrtGyCrDPQuFNIodfcDJGns/7nQMyfCVu8ARSI8/2VJJFIvP45uNfO0dgnyqyU2v UJ0CtFRwRa+Bt0laAjQLQASLSIsu5I9Pnpfvg7W14FNu11fjBFrWvGF3KUB0ToRozBKY WMbhmvXJQuDk6UakRgqW652X8f4svk9sW+GsWW8aj/mtZEpJ+klTQJmTFYI8CJRX1PY2 rfcwC/9Wdq9TPEVjhu7osTf1ZdS6xat1JWBsdLuztbmHntCHa9KqJ89/1ZBa5UijNpCW YsiF8RGe5nPOJzXpJE++N/r8cRyaAo5k7WjNKqy4k4OnB8X+WKHSNg/0GT2rEnOtkGhw SLRg== X-Forwarded-Encrypted: i=1; AJvYcCVxtFXVvK6EaqgK639GZzBUFj4NF1oK9K/Bn1JK19QNV7Cjj2KJZP2RHz3cXDSTnGQv9vhEPQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxathzOBxpjdeF3HjjycrWYjxgOGKOOXuui0pc8RgLUYIavqINs u46m1Fq1JLm7rvqXL+Dto9E77Y9r6PVN1fKSfxzzilzTYtN2u4thR6123YqPtgI= X-Google-Smtp-Source: AGHT+IEFTu+CdnL/nculPkVPn7xm56mPhqDlZYs15/SVJ5QFLljRrBbour5V8ego+hUmgbRF16Mx5A== X-Received: by 2002:a17:907:1b12:b0:a8d:3e29:a82d with SMTP id a640c23a62f3a-a9047d4088amr844622466b.37.1726415945447; Sun, 15 Sep 2024 08:59:05 -0700 (PDT) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9061328dd2sm209409166b.200.2024.09.15.08.59.05 for <73117 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Sep 2024 08:59:05 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5c43003a667so820603a12.3 for <73117 <at> debbugs.gnu.org>; Sun, 15 Sep 2024 08:59:05 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUfQNTrZFvYX4MJcxuvUL4fUlpI5xCi5to2AFGHtKgfP0h3qE+HN/tB9YUOPLLD9tzJHsZc+g==@debbugs.gnu.org X-Received: by 2002:a05:6402:518f:b0:5bf:1bd:adb3 with SMTP id 4fb4d7f45d1cf-5c41e18ea13mr7994811a12.14.1726415944958; Sun, 15 Sep 2024 08:59:04 -0700 (PDT) MIME-Version: 1.0 References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> <8734mac85k.fsf@HIDDEN> <CABvCZ41Sg+evwvN2jB-NdXuCmeK1kkzVDx4rBX-qh7EX+s=bQw@HIDDEN> In-Reply-To: <CABvCZ41Sg+evwvN2jB-NdXuCmeK1kkzVDx4rBX-qh7EX+s=bQw@HIDDEN> From: Troy Brown <brownts@HIDDEN> Date: Sun, 15 Sep 2024 11:58:53 -0400 X-Gmail-Original-Message-ID: <CABvCZ41qLA+40eNx6Dky4R9yQd6S81ZdvEa9cweo7LnDs=SqzA@HIDDEN> Message-ID: <CABvCZ41qLA+40eNx6Dky4R9yQd6S81ZdvEa9cweo7LnDs=SqzA@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group To: Daniel Mendler <mail@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN> 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 (/) On Sun, Sep 8, 2024 at 3:25=E2=80=AFPM Troy Brown <brownts@HIDDEN> w= rote: > > It appears to be this line in `completion--insert-horizontal` which is > causing all the trouble. When I comment that out, I get the output > I'm expecting. Looking at the difference between > `completion--insert-horizontal` and `completion--insert-vertical`, > that check happens after the check for `group-fun`. Maybe > `completion--insert-horizontal` should be restructured similarly? > > ```elisp > (unless (equal last-string str) ; Remove (consecutive) duplicates. > ``` Daniel, any thoughts on my comment above? It appears completion--insert-horizontal incorrectly filters consecutive strings when they belong to different groups. From what I can tell, it appears completion--insert-horizontal does support groups, but just displays them vertically. However, it does contain the above problem. I also notice this issue coming through in my use of consult-imenu.
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 8 Sep 2024 19:26:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 15:26:14 2024 Received: from localhost ([127.0.0.1]:60065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1snNY3-0006xs-HG for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 15:26:14 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:57495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <troy.s.brown@HIDDEN>) id 1snNXy-0006xQ-UK for 73117 <at> debbugs.gnu.org; Sun, 08 Sep 2024 15:26:10 -0400 Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a8d13b83511so197821366b.2 for <73117 <at> debbugs.gnu.org>; Sun, 08 Sep 2024 12:26:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725823558; x=1726428358; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H1XFNasPIMnS18UmGcloxkb0BoQHKuDk5vS4ZdWZNXk=; b=MkKdA83UQiCJb+WbjNjtmum2T1KHhVJCRgp2fYTzAaxoa1Qjwj8tmpreR3cOb+JBA9 EqcvcF8YCdiXxzmeJDiLcAPcNhoaLOxusEd8IkF2SXRiA5TZ0ZFIdta3q5Hr/GVYvM4/ 3i4lpwVfQligsfyPlAEQsLEBktMbLZUDZTul5QWdqMf3tHaI3A042lQbP2dy1BbEisG+ MF9gIoDrWRVfjGkX245N6dsjjWM7PfljYsvYWArlI3Ludo+Paf7UzNka0FmryvhwQtQB ZO9HOpbNpcoGN8JE8NPJsA+Ca1ZntPKCR3p4js9TkvPIA9u/KNzElWhpzgD9aBqFSVpu jGWA== X-Forwarded-Encrypted: i=1; AJvYcCWIoAzXBhf7mAz+OgCJKBXht8Z7N5MbixGgDe5TDnZZ2VjubefknH0CSnzS7Mv3UPOVFJB9aw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyU6UB020fRy00AsknPKvAzTGNgyDxovAAlnrGFafp9jYiu7PCZ IoXxRluq0arWCwrQgKTxaXt3xrqpQrnSTarlx+aZqqAQtSa/WQqepS3hX0tD00I= X-Google-Smtp-Source: AGHT+IF9hdiB58rEoQRdjsS0PefuUmUIN0eLGn0XWWat1b3yQ+4AGMCyf9Yh41oBQalfNC7ah6nM8A== X-Received: by 2002:a17:907:36c7:b0:a8a:572c:1bae with SMTP id a640c23a62f3a-a8a885bff77mr712154666b.2.1725823557543; Sun, 08 Sep 2024 12:25:57 -0700 (PDT) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25952c01sm240851266b.64.2024.09.08.12.25.57 for <73117 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 12:25:57 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a8a7929fd64so426075366b.0 for <73117 <at> debbugs.gnu.org>; Sun, 08 Sep 2024 12:25:57 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVuBGYsDhYku3cN/Naea8PLMjH/iIKZ4WJXuAeR7SuU0m7WPuAB0fuFFFYSkv62t+te2zjRsA==@debbugs.gnu.org X-Received: by 2002:a17:907:9303:b0:a86:817e:d27a with SMTP id a640c23a62f3a-a8a88870e4dmr715000766b.61.1725823556947; Sun, 08 Sep 2024 12:25:56 -0700 (PDT) MIME-Version: 1.0 References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> <8734mac85k.fsf@HIDDEN> In-Reply-To: <8734mac85k.fsf@HIDDEN> From: Troy Brown <brownts@HIDDEN> Date: Sun, 8 Sep 2024 15:25:45 -0400 X-Gmail-Original-Message-ID: <CABvCZ41Sg+evwvN2jB-NdXuCmeK1kkzVDx4rBX-qh7EX+s=bQw@HIDDEN> Message-ID: <CABvCZ41Sg+evwvN2jB-NdXuCmeK1kkzVDx4rBX-qh7EX+s=bQw@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group To: Daniel Mendler <mail@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN> 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 (/) On Sun, Sep 8, 2024 at 2:28=E2=80=AFPM Daniel Mendler <mail@daniel-mendler.= de> wrote: > > Juri Linkov <juri@HIDDEN> writes: > > > Maybe Daniel (Cc:ed) could help us understand > > why 'completion--insert-horizontal' doesn't display groups. > > If I remember correctly, I didn't add group titles to the horizontal > formatting in order to keep the display more dense, with the goal of > fitting as many candidates on the screen as possible. In my Vertico > package, I am using a similar strategy, where group titles are not shown > for the flat and grid display modes. In any case, there shouldn't be a > technical reason which prevents us from showing the titles also for the > horizontal display. It appears to be this line in `completion--insert-horizontal` which is causing all the trouble. When I comment that out, I get the output I'm expecting. Looking at the difference between `completion--insert-horizontal` and `completion--insert-vertical`, that check happens after the check for `group-fun`. Maybe `completion--insert-horizontal` should be restructured similarly? ```elisp (unless (equal last-string str) ; Remove (consecutive) duplicates. ```
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 8 Sep 2024 18:30:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 14:30:30 2024 Received: from localhost ([127.0.0.1]:60050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1snMg9-00045H-UG for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 14:30:30 -0400 Received: from server.qxqx.de ([49.12.34.165]:32937 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1snMg7-000451-HE for 73117 <at> debbugs.gnu.org; Sun, 08 Sep 2024 14:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To: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=OMqDW+mAE45JNgRIIQ1ysP0N23agMX5+5kbX2KOy6Ko=; b=qXI6lEa4K5i5vUnL7KOdgVdD16 Yrday62OrOhK1CfOc1zpDA1RXcDlSYCNtELsyOjb5OntfshCrYk2+1dPf2qmo5h6VDWKu8ML9IkVm J/3ejUzfh56mtxNZIsN34o1CCll4+zRV3qNVFqYzTxSo4YHGlYybFz8Mti6IM02KT9ho=; From: Daniel Mendler <mail@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group In-Reply-To: <86y142p0hu.fsf@HIDDEN> (Juri Linkov's message of "Sun, 08 Sep 2024 19:35:09 +0300") References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> Date: Sun, 08 Sep 2024 20:28:07 +0200 Message-ID: <8734mac85k.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, Troy Brown <brownts@HIDDEN> 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.7 (-) Juri Linkov <juri@HIDDEN> writes: > Maybe Daniel (Cc:ed) could help us understand > why 'completion--insert-horizontal' doesn't display groups. If I remember correctly, I didn't add group titles to the horizontal formatting in order to keep the display more dense, with the goal of fitting as many candidates on the screen as possible. In my Vertico package, I am using a similar strategy, where group titles are not shown for the flat and grid display modes. In any case, there shouldn't be a technical reason which prevents us from showing the titles also for the horizontal display. Daniel
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 8 Sep 2024 17:32:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 13:32:01 2024 Received: from localhost ([127.0.0.1]:59999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1snLlY-0000xj-V8 for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 13:32:01 -0400 Received: from mail-lj1-f175.google.com ([209.85.208.175]:55613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <troy.s.brown@HIDDEN>) id 1snLlW-0000xR-S1 for 73117 <at> debbugs.gnu.org; Sun, 08 Sep 2024 13:31:59 -0400 Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2f752d9ab62so28437091fa.3 for <73117 <at> debbugs.gnu.org>; Sun, 08 Sep 2024 10:31:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725816710; x=1726421510; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bBKxQvgx+Aab1ecFibid8UQev6VGNy5ejcKSTmJlsPk=; b=CJC/e1QO0IRoQvBQi02TKsftYfN8eYvyJ0ZVmiN1Qc2e/rhRbKJCa2PXskzRrPRO6D vvjAKPpXFzLHZRNLKv+pqqfPJnSmPNT+Wu4OrJzmJddqSj9GSArN1BmYJZipTKoW7HOh vA3qSVnfd2VoVNy9TB2vm2SpUotsJDUoFla76bZ8VJdqu3XQNvlEEJuV3QijAENTou2B g+/8ngsJxwMMM5xOkDa6hqZlRbPQHumbjMh2nskUz29D02juOqB3BHsw4uQbkkfFmNCX ooPjHRt53VNGcTjgUsXX1q/JwGoekt/gTPer2RM6zMoImdLryVSslnBsjUwIMbR24QqY v91A== X-Forwarded-Encrypted: i=1; AJvYcCUBzjzi6Nzm5YEH9KtatGj2zPnSAxQgx+DJi8OzUxSceW0aiCTN9YzoqmimRPKHBM+ZevUZwg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyTpLR0Alhn4oWdf3rErVFzcUE4HaU5ACdhrZ6ZpnJlq7X83ytc pqjgOMOJMa7yvhSzNH8E7nBrT9BrjdL/0+OwkcLeCpMuxmHo+pfGomT+JfI6Y78= X-Google-Smtp-Source: AGHT+IFUrBYB6s2ifbUxFYztKxH241uP2Uk0N4/U3jJjyT+IG2nl9i+SqEOxV2bU0VkxJ8svmHtlcw== X-Received: by 2002:a2e:87d9:0:b0:2f6:5df8:bfcb with SMTP id 38308e7fff4ca-2f75b93077amr27707841fa.38.1725816708977; Sun, 08 Sep 2024 10:31:48 -0700 (PDT) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com. [209.85.208.47]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c3ebd46934sm2156143a12.35.2024.09.08.10.31.48 for <73117 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 10:31:48 -0700 (PDT) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5c27067b81aso3553309a12.0 for <73117 <at> debbugs.gnu.org>; Sun, 08 Sep 2024 10:31:48 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWp2xZ7AwVLOe1n6L3mIeDTFLi/fun6Xfyj/ecnwJ2KdRxvrjVFWUZEhgxH7zdE9s85Db5VOg==@debbugs.gnu.org X-Received: by 2002:a05:6402:1d53:b0:5c2:5141:84b0 with SMTP id 4fb4d7f45d1cf-5c3eac27a4bmr2819664a12.35.1725816708528; Sun, 08 Sep 2024 10:31:48 -0700 (PDT) MIME-Version: 1.0 References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> <86y142p0hu.fsf@HIDDEN> In-Reply-To: <86y142p0hu.fsf@HIDDEN> From: Troy Brown <brownts@HIDDEN> Date: Sun, 8 Sep 2024 13:31:36 -0400 X-Gmail-Original-Message-ID: <CABvCZ405z+FmDqqubHmV6s8X0EbWFs1nuEeLzWzMDfuQ1ZPUdQ@HIDDEN> Message-ID: <CABvCZ405z+FmDqqubHmV6s8X0EbWFs1nuEeLzWzMDfuQ1ZPUdQ@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group To: Juri Linkov <juri@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, Daniel Mendler <mail@HIDDEN> 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 (/) On Sun, Sep 8, 2024 at 12:42=E2=80=AFPM Juri Linkov <juri@HIDDEN> wrote= : > > > Maybe using `(setopt completion-auto-help t)` > > and hitting TAB is a better method. > > Or just using `(setopt imenu-eager-completion-buffer nil)` > because otherwise with its default value you need to hit > '?' (minibuffer-completion-help) instead of TAB > to show the completions buffer with two identical > completions in different groups. > Ah, thanks! Yes, I'm used to using Vertico so I'm not very familiar with the default settings/bindings. In fact that's how I first ran into this issue using Vertico and Imenu with `imenu-flatten` set to "group". > I'm so sorry, I forgot to check with `emacs -Q`, and there is > an additional important setting that affects the groups: > > ``` > (setopt completions-group t) > (setopt completions-format 'vertical) > ``` > > The default value of 'completions-format' is 'horizontal' > that doesn't support groups, and I don't know why. > > Maybe Daniel (Cc:ed) could help us understand > why 'completion--insert-horizontal' doesn't display groups. No worries, at least I know I'm not going crazy, lol. Indeed, when I set `completions-format` to "vertical" it does show all entries. I then expanded this example to see what happens with 3 entries with both "horizontal" and "vertical" values for `completions-format`. With a three section menu (see example below), and format set to "horizontal", it does show multiple groups vertically. However, even under this condition, the groups which had identical entries only show up once (which seems like a bug). The following example configures `imenu-flatten" to "group" and then shows the menu, first with `completions-format` set to "horizontal" and then "vertical". ```elisp (progn (setopt completions-group t) (setopt imenu-eager-completion-buffer nil) (setopt minibuffer-visible-completions t) (setopt imenu-flatten 'group) (require 'imenu) (dolist (format '(horizontal vertical)) (setopt completions-format format) (imenu-choose-buffer-index (format "(%s) Index item: " format) `(("XYZ" . (("123" . ,(point-min-marker)))) ("Bar" . (("Foo" . ,(point-min-marker)))) ("Baz" . (("Foo" . ,(point-max-marker)))))= ))) ``` --8<---------------cut here---------------start------------->8--- Click or type RET on a completion to select it. Type <right>, <left>, <down>, <up> to move point between completions. 3 possible completions: XYZ 123 Bar Foo --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Click or type RET on a completion to select it. Type <right>, <left>, <down>, <up> to move point between completions. 3 possible completions: XYZ 123 Bar Foo Baz Foo --8<---------------cut here---------------end--------------->8---
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 8 Sep 2024 16:42:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 12:42:46 2024 Received: from localhost ([127.0.0.1]:59943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1snKzu-0006j8-83 for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 12:42:46 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1snKzs-0006ir-7m for 73117 <at> debbugs.gnu.org; Sun, 08 Sep 2024 12:42:44 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id B1FC91C0003; Sun, 8 Sep 2024 16:42:14 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Troy Brown <brownts@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group In-Reply-To: <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> (Troy Brown's message of "Sun, 8 Sep 2024 10:19:26 -0400") Organization: LINKOV.NET References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> Date: Sun, 08 Sep 2024 19:35:09 +0300 Message-ID: <86y142p0hu.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <at> debbugs.gnu.org, Daniel Mendler <mail@HIDDEN> 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.7 (-) > Maybe using `(setopt completion-auto-help t)` > and hitting TAB is a better method. Or just using `(setopt imenu-eager-completion-buffer nil)` because otherwise with its default value you need to hit '?' (minibuffer-completion-help) instead of TAB to show the completions buffer with two identical completions in different groups. > I did try adding your suggested settings to the above code snippet, > but they did not seem to improve anything with regards to what shows > up in the completions buffer: > > ``` > (setopt completions-group t) > (setopt minibuffer-visible-completions t) > ``` I'm so sorry, I forgot to check with `emacs -Q`, and there is an additional important setting that affects the groups: ``` (setopt completions-group t) (setopt completions-format 'vertical) ``` The default value of 'completions-format' is 'horizontal' that doesn't support groups, and I don't know why. Maybe Daniel (Cc:ed) could help us understand why 'completion--insert-horizontal' doesn't display groups.
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 8 Sep 2024 14:19:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 10:19:50 2024 Received: from localhost ([127.0.0.1]:59790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1snIlZ-0007eX-Gs for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 10:19:49 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:55407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <troy.s.brown@HIDDEN>) id 1snIlX-0007eK-R8 for 73117 <at> debbugs.gnu.org; Sun, 08 Sep 2024 10:19:48 -0400 Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2f74e468baeso39829851fa.2 for <73117 <at> debbugs.gnu.org>; Sun, 08 Sep 2024 07:19:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805179; x=1726409979; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K4es7STQlU1oGOblaHFGhW8Dsc/7Z+a4MuRoXueU9w0=; b=h3EHbi0nbskQUyrn0yOdeFO9BVxjTV8A5gzMrHDHFpOftHmqMhKIK7+d5bOuGcpjfL +tz47RrGwO9twbbgn8qgp8WQvQ5ChorYdP4zAaCSM1d0IIce62FqUqlLnW65lfzpIGXC v8vC2g0w6HBJi7WrzYb0c6D1P39TzoezygVUrYP5NDkI4Y+nrBWDU1dT88A99TYCw2XG vDqdRUdbXyexVay6Lwp8wOhAxddBXCVS9Xs39/IoOjUMZsw2NnB24Gm2EdCQi+HbhItp 22hgHci8u80x1k1XH8uD5uf8DFtyPgInoVjV8/DJG0MzuzPNOlYHefTtYStDKbypvUPh pmqw== X-Gm-Message-State: AOJu0Ywgt09t8reeXqk3iIpWDghqmOH2XCYCuy6xRPni+oUuYE7hi70A 4R99mptZkqx2alkKLowpeu8y/xyflyVj/ahEfnDswCzW0iajFr8wrXG7T9AwrRM= X-Google-Smtp-Source: AGHT+IGnZ8Vn81meu+/KdgIi6baHb5l3mDN6F9s/7PfB6jBWVytM6s5tgAqfgRZqFHM1f229SD36ug== X-Received: by 2002:a05:651c:19aa:b0:2ef:2472:300a with SMTP id 38308e7fff4ca-2f75b87f0cdmr34370701fa.2.1725805178098; Sun, 08 Sep 2024 07:19:38 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c009937sm4225151fa.67.2024.09.08.07.19.37 for <73117 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 07:19:37 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2f761cfa5e6so7803171fa.0 for <73117 <at> debbugs.gnu.org>; Sun, 08 Sep 2024 07:19:37 -0700 (PDT) X-Received: by 2002:a2e:a99a:0:b0:2f6:4f17:aead with SMTP id 38308e7fff4ca-2f75b8b7d08mr35991931fa.21.1725805177550; Sun, 08 Sep 2024 07:19:37 -0700 (PDT) MIME-Version: 1.0 References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> <86v7z6skkj.fsf@HIDDEN> In-Reply-To: <86v7z6skkj.fsf@HIDDEN> From: Troy Brown <brownts@HIDDEN> Date: Sun, 8 Sep 2024 10:19:26 -0400 X-Gmail-Original-Message-ID: <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> Message-ID: <CABvCZ42rd1sf7hpdXLwLXuXfN1bLneVuA71KB2mRHaQBNBTjiw@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group To: Juri Linkov <juri@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <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 (/) On Sun, Sep 8, 2024 at 2:57=E2=80=AFAM Juri Linkov <juri@HIDDEN> wrote: > > > ``` > > ;; begin > > (progn > > (require 'imenu) > > (dolist (flatten '(prefix group annotation)) > > (setq imenu-flatten flatten) > > > > (imenu-choose-buffer-index (format "(%s) Index item: " flatten) > > `(("Bar" . (("Foo" . ,(point-min-marker)= ))) > > ("Baz" . (("Foo" . ,(point-max-marker)= ))))))) > > ;; end > > ``` > > Sorry for leaving out of documentation an unapparent mention > of `completions-group`. We are discussing this currently at > https://mail.gnu.org/archive/html/emacs-devel/2024-08/msg00241.html > So a prerequisite would be to use `(setopt completions-group t)`. > But currently this should be mentioned in the docstring. > > Also in the same discussion we came to conclusion that > `M-<down>` can't be used to select imenu items for > `annotation` and `group`. So this limitation was > documented recently in the docstring of `imenu-flatten`: > > @@ -158,6 +158,9 @@ imenu-flatten > with a suffix that is the section name to which it belongs. > If the value is `group', split completion candidates into groups > according to the sections. > +Since the values `annotation' and `group' rely on text properties, > +you can use them only by selecting candidates from the completions > +buffer, not by typing in the minibuffer. > > Otherwise, `group` should work nicely when using `<down>` > with `minibuffer-visible-completions`. Hi Juri, I did see the text in the diff above. I assumed that was indicating that you need to use the completions buffer to distinguish between the identically named items (although after re-reading it, maybe it affects the selection too). I was using M-<down> to pop-up the completions buffer so that I could see those distinctions. Maybe using `(setopt completion-auto-help t)` and hitting TAB is a better method. Either way, I'm just trying to display the completions buffer. This does work for the "annotations" setting as I see both entries with the suffix annotation in the completions buffer. Maybe there is a different issue using M-<down> for the selection, but my issue is that I can't get the completions buffer to even display all of the items. Just to be clear I'm running "emacs -Q" on the latest in the emacs-30 branch as of yesterday. I ran the code snippet I posted in the original email by running `eval-last-sexp` in the scratch buffer. I did try adding your suggested settings to the above code snippet, but they did not seem to improve anything with regards to what shows up in the completions buffer: ``` (setopt completions-group t) (setopt minibuffer-visible-completions t) ``` The following is what I see in the "*Completions*" buffer for all three settings of `imenu-flatten` (i.e., "prefix", "group" and "annotation"). Notice that the second output (which is the "group" setting) only shows a single entry, the one for Bar/Foo. The "Bar" group is displayed and the "Foo" entry under it is also displayed, but the "Baz" group is completely missing (even though it says "2 possible completions"). This is the issue I'm having. --8<---------------cut here---------------start------------->8--- Click or type RET on a completion to select it. Type <right>, <left>, <down>, <up> to move point between completions. 2 possible completions: Bar:Foo Baz:Foo --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Click or type RET on a completion to select it. Type <right>, <left>, <down>, <up> to move point between completions. 2 possible completions: Bar Foo --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Click or type RET on a completion to select it. Type <right>, <left>, <down>, <up> to move point between completions. 2 possible completions: Foo (Bar) Foo (Baz) --8<---------------cut here---------------end--------------->8---
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at 73117) by debbugs.gnu.org; 8 Sep 2024 06:57:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 02:57:17 2024 Received: from localhost ([127.0.0.1]:57904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1snBrJ-0001MN-0W for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 02:57:17 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1snBrH-0001Lx-Fi for 73117 <at> debbugs.gnu.org; Sun, 08 Sep 2024 02:57:16 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 72EF8FF802; Sun, 8 Sep 2024 06:57:05 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Troy Brown <brownts@HIDDEN> Subject: Re: bug#73117: 30.0.90; Imenu missing entries when flattening by group In-Reply-To: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> (Troy Brown's message of "Sat, 7 Sep 2024 21:41:43 -0400") Organization: LINKOV.NET References: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> Date: Sun, 08 Sep 2024 09:53:16 +0300 Message-ID: <86v7z6skkj.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73117 Cc: 73117 <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.7 (-) > This issue appears to be similar to the issue reported in 70846, but > this is specifically regarding when Imenu is configured to flatten > into "groups" (as opposed to "annotation" as was reported there). > When "imenu-flatten" is set to "group", I see an issue where nested > entries, with the same name but belonging to different parents, aren't > all displayed. > > I've included an example below (based on the example menu > configuration described in 70846). This example cycles through > flattening based on "index", "group" and "annotation" with the example > menu configuration. > > For "prefix" and "annotation" configurations, it appears to work > correctly, as pressing "M-<down>" when the menu prompt is displayed, I > can see both entries identified in the "*Completions*" buffer. > > However, when I do this with "imenu-flatten" set to "group" and press > "M-<down>" to display the completions window, the window indicates "2 > possible completions" but only one is actually displayed and > selectable (i.e., the one under "Bar"). The menu entry "Foo" under > "Baz" is not displayed at all and it appears there is no way to select > it. > > ``` > ;; begin > (progn > (require 'imenu) > (dolist (flatten '(prefix group annotation)) > (setq imenu-flatten flatten) > > (imenu-choose-buffer-index (format "(%s) Index item: " flatten) > `(("Bar" . (("Foo" . ,(point-min-marker)))) > ("Baz" . (("Foo" . ,(point-max-marker)))))))) > ;; end > ``` Sorry for leaving out of documentation an unapparent mention of `completions-group`. We are discussing this currently at https://mail.gnu.org/archive/html/emacs-devel/2024-08/msg00241.html So a prerequisite would be to use `(setopt completions-group t)`. But currently this should be mentioned in the docstring. Also in the same discussion we came to conclusion that `M-<down>` can't be used to select imenu items for `annotation` and `group`. So this limitation was documented recently in the docstring of `imenu-flatten`: @@ -158,6 +158,9 @@ imenu-flatten with a suffix that is the section name to which it belongs. If the value is `group', split completion candidates into groups according to the sections. +Since the values `annotation' and `group' rely on text properties, +you can use them only by selecting candidates from the completions +buffer, not by typing in the minibuffer. Otherwise, `group` should work nicely when using `<down>` with `minibuffer-visible-completions`.
bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 8 Sep 2024 01:42:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 07 21:42:07 2024 Received: from localhost ([127.0.0.1]:57785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sn6wJ-0001b0-BG for submit <at> debbugs.gnu.org; Sat, 07 Sep 2024 21:42:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:54476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <troy.s.brown@HIDDEN>) id 1sn6wE-0001ao-Re for submit <at> debbugs.gnu.org; Sat, 07 Sep 2024 21:42:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <troy.s.brown@HIDDEN>) id 1sn6wD-0006d4-0b for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2024 21:42:01 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <troy.s.brown@HIDDEN>) id 1sn6wB-00012O-3B for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2024 21:42:00 -0400 Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-53661ac5ba1so579168e87.2 for <bug-gnu-emacs@HIDDEN>; Sat, 07 Sep 2024 18:41:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725759716; x=1726364516; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vvlqv8hIc5w4XG3Wp/+4110at40iqM3kLhFM58A9M/8=; b=jHANqk5Tj8CC2O0R7Q63ak+BZE8ofHJimZetFvr95SsiL4DObaTwQD1+X8E57SXnES HMId2PzR4TuBZ6bdrSJMP4JWwitghxXA/Bq1kjZgOuN2aMt40+QnPNEROzokBJpxHSnJ 3l8Y0Ln119iTsIYuZ/pI6g5xj82y/wivK3AQf2o1gFNwVg1d2ni8eTjgLNNdmEgyXLPh 8eY2GC27HRdf+aX5xNcUU+I1R09zmL14nRZMbz3vfLLpuolhcqxtsbyMImiUt49+PbNe yQIW79dCKn4tEf9sJU+dCGnz6nvOkg3JD59hAcXbPT+tFWtym80SMRYsSC1WOhqg5CD7 XPqg== X-Gm-Message-State: AOJu0YzMrqXIQtfiKzePe3v6rBviJIztmX5sxiZj68RDKWJnZ+hEnV/F 9ztezkWpUWA+IJqyjHQqIuATpkAnbzAcf27UILibGS1LDRU1xG457svJyA== X-Google-Smtp-Source: AGHT+IF1NsHQNCniI9tLvli2/4wAxLxdZDN6XM+RyK7mI5x5SHwR5q6Zy6BmtuJHoEnKAvUzPyoRjw== X-Received: by 2002:a05:6512:33c9:b0:52c:99c9:bef6 with SMTP id 2adb3069b0e04-536587a4236mr4961983e87.7.1725759715403; Sat, 07 Sep 2024 18:41:55 -0700 (PDT) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25ce9ed6sm132761366b.165.2024.09.07.18.41.54 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Sep 2024 18:41:54 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5c3c30e6649so4017874a12.2 for <bug-gnu-emacs@HIDDEN>; Sat, 07 Sep 2024 18:41:54 -0700 (PDT) X-Received: by 2002:a05:6402:5383:b0:5c2:7740:b3bd with SMTP id 4fb4d7f45d1cf-5c3dc793bc2mr3909188a12.14.1725759714678; Sat, 07 Sep 2024 18:41:54 -0700 (PDT) MIME-Version: 1.0 From: Troy Brown <brownts@HIDDEN> Date: Sat, 7 Sep 2024 21:41:43 -0400 X-Gmail-Original-Message-ID: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> Message-ID: <CABvCZ41tbNXHbFbmMitVt5Pc=mZTLBLfMvBQCJ=Ok7GgQVgJiQ@HIDDEN> Subject: 30.0.90; Imenu missing entries when flattening by group To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.167.49; envelope-from=troy.s.brown@HIDDEN; helo=mail-lf1-f49.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) 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: -2.1 (--) This issue appears to be similar to the issue reported in 70846, but this is specifically regarding when Imenu is configured to flatten into "groups" (as opposed to "annotation" as was reported there). When "imenu-flatten" is set to "group", I see an issue where nested entries, with the same name but belonging to different parents, aren't all displayed. I've included an example below (based on the example menu configuration described in 70846). This example cycles through flattening based on "index", "group" and "annotation" with the example menu configuration. For "prefix" and "annotation" configurations, it appears to work correctly, as pressing "M-<down>" when the menu prompt is displayed, I can see both entries identified in the "*Completions*" buffer. However, when I do this with "imenu-flatten" set to "group" and press "M-<down>" to display the completions window, the window indicates "2 possible completions" but only one is actually displayed and selectable (i.e., the one under "Bar"). The menu entry "Foo" under "Baz" is not displayed at all and it appears there is no way to select it. ``` ;; begin (progn (require 'imenu) (dolist (flatten '(prefix group annotation)) (setq imenu-flatten flatten) (imenu-choose-buffer-index (format "(%s) Index item: " flatten) `(("Bar" . (("Foo" . ,(point-min-marker)))) ("Baz" . (("Foo" . ,(point-max-marker)))))))) ;; end ```
Troy Brown <brownts@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#73117
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.