From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#73117: 30.0.90; Imenu missing entries when flattening by group Date: Fri, 20 Sep 2024 09:58:24 +0300 Organization: LINKOV.NET Message-ID: <867cb66bvb.fsf@mail.linkov.net> References: <86v7z6skkj.fsf@mail.linkov.net> <86y142p0hu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26960"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 73117@debbugs.gnu.org, Daniel Mendler To: Troy Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 20 09:14:03 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1srXq6-0006sa-Vs for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Sep 2024 09:14:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srXpr-00037Q-Et; Fri, 20 Sep 2024 03:13:47 -0400 Original-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 ) id 1srXpp-00032V-Gg for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 03:13:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srXpo-0004PO-CE for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 03:13:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=rBwDuj+bLRih7q1OAtEed3roIXBpt8gqFEhPZbANlr0=; b=mGCgElZTYeb3qiMzIRVbk8YJDbxnrHt9tXB+MHd9PHR9pzdIBJh19Q1WJG/5cXR8TJRrRBet9of+4LTw1RqHIYazfsKL+8+PFoIeKrSpo/gXdIwdkBLW5/s+aYnKL5mg0AXZnk8tXteWH9Gloe7LceuYrT11PKLWgQdNwNa6V5Vv3G6I6Z4BcWd3Uosjl61vKBBW3fH9vfMJSlzlpu46WPnRMs/fJrjHgQc9yv15oiKJzNCX+p+/6H/9N9+x8Yd3YAP1fydx3NJh43M2IVnlCzsLHy7M4xEUHtXelJr5188FHnr9FPxgGQOZpcqxOH7MbFzNWf1hMgioPh+817CA5g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srXq6-0006yi-9P for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 03:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Sep 2024 07:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73117 X-GNU-PR-Package: emacs Original-Received: via spool by 73117-submit@debbugs.gnu.org id=B73117.172681640326690 (code B ref 73117); Fri, 20 Sep 2024 07:14:02 +0000 Original-Received: (at 73117) by debbugs.gnu.org; 20 Sep 2024 07:13:23 +0000 Original-Received: from localhost ([127.0.0.1]:33926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srXpT-0006wQ-1O for submit@debbugs.gnu.org; Fri, 20 Sep 2024 03:13:23 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:46517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srXpQ-0006w4-Qz for 73117@debbugs.gnu.org; Fri, 20 Sep 2024 03:13:21 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 70C74C0002; Fri, 20 Sep 2024 07:12:53 +0000 (UTC) In-Reply-To: (Troy Brown's message of "Sun, 8 Sep 2024 13:31:36 -0400") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292090 Archived-At: > 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-') 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