From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy Brown Newsgroups: gmane.emacs.bugs Subject: bug#73117: 30.0.90; Imenu missing entries when flattening by group Date: Sat, 7 Sep 2024 21:41:43 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33958"; mail-complaints-to="usenet@ciao.gmane.io" To: 73117@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 08 03:43:20 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 1sn6xT-0008hS-7e for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Sep 2024 03:43:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sn6xC-0006lX-Qj; Sat, 07 Sep 2024 21:43:03 -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 1sn6xA-0006lJ-V6 for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 21:43:01 -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 1sn6xA-00015i-Ly for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 21:43:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=vvlqv8hIc5w4XG3Wp/+4110at40iqM3kLhFM58A9M/8=; b=bcRX7yz4FJytzL7xpQr1J+TPrGH2xELeEUzEVeB4y4/o3Db4Z3VHEsAXqaX78vC7XQRILr2qCLcVOsfbosCpesPrYKYCivuOUUJaPRUVZ5lbfjTf0SEZEbooow07+Ssx6KUI8JWMXLaT1VZ1ptpJbfptR9EDV5PThdSutBTBCq8pCfkhVq+wxcA10YQ+z5C/Se+3GlH0rHnDH4yMHYqWmM9ul8yoXpl/D6IpafdvmX4NWmTBIeo+Wp0w07Hi6EamqWnMxEK4M1TgQ1eJP6GeCqKwPchinHmE7y6nmEKdzcbhpTJx0jAxf0PPe0FsYxnMGS5FZfVXRE3uWn2T4bJbIA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sn6xB-0001cT-Qz for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 21:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Troy Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Sep 2024 01:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73117 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17257597276143 (code B ref -1); Sun, 08 Sep 2024 01:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Sep 2024 01:42:07 +0000 Original-Received: from localhost ([127.0.0.1]:57785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sn6wJ-0001b0-BG for submit@debbugs.gnu.org; Sat, 07 Sep 2024 21:42:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sn6wE-0001ao-Re for submit@debbugs.gnu.org; Sat, 07 Sep 2024 21:42:05 -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 1sn6wD-0006d4-0b for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 21:42:01 -0400 Original-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 ) id 1sn6wB-00012O-3B for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 21:42:00 -0400 Original-Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-53661ac5ba1so579168e87.2 for ; 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) Original-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 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Sep 2024 18:41:54 -0700 (PDT) Original-Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5c3c30e6649so4017874a12.2 for ; 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) X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=209.85.167.49; envelope-from=troy.s.brown@gmail.com; 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-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:291413 Archived-At: 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-" 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-" 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 ```