From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: My usage of imenu is broken. Date: Tue, 28 May 2024 22:38:33 -0700 Message-ID: <091346E5-6803-4F31-84B1-95F6E88C48A9@gmail.com> References: <86r0dmtbk2.fsf@gnu.org> <86h6ehu6w8.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 29 07:39:47 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sCC2K-0003OW-NW for ged-emacs-devel@m.gmane-mx.org; Wed, 29 May 2024 07:39:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCC1U-000898-TX; Wed, 29 May 2024 01:38:52 -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 1sCC1T-00088l-Jy for emacs-devel@gnu.org; Wed, 29 May 2024 01:38:51 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCC1Q-0007tk-MU; Wed, 29 May 2024 01:38:51 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1f44b42d1caso12702595ad.0; Tue, 28 May 2024 22:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716961126; x=1717565926; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5dywY5XqG+WIapawhO9TQ0Zb2qT2lidGz/kjAjNsKvE=; b=YEO5lDrvY6Y9NwXYY+aFmpwXPfSoPRsQvArmuD5fZeNNid21ZO0w/qIK9ryq4VCosn XUcoPPxcPWBuzu4eWqe9PDwvV5Jy+hQPAF06uSa8U3I/MPugTUxCMACVQfFN2KWK2Q99 HkNLKV99sWU+XoNrmaGAl2RBRyAXbd2NYvwq6fgTZAj6iEe3t603E9S/FZ9fJLZQNGyk /56E49bPxYEElan8nP4+Q9Voj+HVGddZQAO1XCA+rEPTiXMYPmHRyhKuC0+7ca6YdEQi JCrja4iZg+vDKcmaXIB1FnP3jxR9nFyyvuxBeNdyk+PMyocO/OpFk7sQTlhxrNlSfaW9 C0CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716961126; x=1717565926; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5dywY5XqG+WIapawhO9TQ0Zb2qT2lidGz/kjAjNsKvE=; b=Xbd0QmDGTOIb1Ckzcg6aVzM95cl5eEhT54GiaPBLLlO8i8DhKvxJyrhJgehFqvL/s6 9O15pUq8AAH/cWT1so5AOpoPU8B9m8otns8BmGXMEIjldxOrkPPCRNYC7LkSQd+kStzB wWiRfnOva1H5HxGJQo2V82KwPVxqsGe1GIdVLzK7zW04JUGDkNj+nUu/BAWPuM6dqKqS Z+mFWklHFRclQh2PPyCZTdrtVQ6MOe7tmGMdKR8C7SZFBT2W45C/93a0cGt0xz+22Mh1 8oyWBsMLJpoy/onbcp8wpjBcD/zFKQ41vGHTaq1I33VPuje7LD3cwlUKCDPJ1oYaIs/U 2O+w== X-Forwarded-Encrypted: i=1; AJvYcCVoW4/kG4Qhm3fpG3uR1Ae5hQ/Tmls31GzxZ23AtihXPd4dYGV/0bb8Q3glHCzQ/oS7uYzMIkS3q8Bo642hcwLNB3Pn X-Gm-Message-State: AOJu0YzfMh4ovWZw1apR+BaB4A77QD4te2pnNRDhQwXuBtb11NEn7RRb 4twb1xAno9K6VbbvokBRZe9rpWA3G3FXZRTjhH5g/jNkQL/aNgKQ+8O5oQ== X-Google-Smtp-Source: AGHT+IEBfmQ/CoQJ2kgGOlh5k+pXWDNmPu1RMmBmP8e1fQO0ymwnDqJ0EuyiognggSdtQKEPxZSPzw== X-Received: by 2002:a17:902:ecd0:b0:1f4:7bf1:71dc with SMTP id d9443c01a7336-1f47bf17583mr110115805ad.39.1716961126061; Tue, 28 May 2024 22:38:46 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:641:300:4910:13e:d5cf:5baa:e78a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c7b0b9fsm89989615ad.89.2024.05.28.22.38.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2024 22:38:45 -0700 (PDT) In-Reply-To: <86h6ehu6w8.fsf@gnu.org> X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=casouri@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319668 Archived-At: > On May 28, 2024, at 11:29=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> Date: Tue, 28 May 2024 13:57:46 +0000 >> Cc: emacs-devel@gnu.org >> From: Alan Mackenzie >>=20 >> So my problem was being in c-ts-mode, for which all these things I = don't >> like about imenu are apparently normal. It's one more reason for me = to >> carry on using CC Mode. >=20 > I just now tried "M-x imenu" in c-ts-mode, and I don't see such a > catastrophe. True, if you leave imenu-flatten at its default nil > value, you need to choose top-level "kind" of identifiers before you > can type the name. For C, these "kinds" are Function, Variable, and > Struct. Once you do select one of them, Imenu prompts you again, and > then you can type the identifiers, with completion, or type TAB to see > all of the names. >=20 > This is not very different from what you are used to. >=20 > Yuan, why does c-ts-mode' Imenu support behave differently in this > regard from CC Mode? What was the rationale for the different > behavior? Oh, I thought hierarchical is the canonical way to do imenus. But as = Stefan said, imenu should allow users to choose whether to show the menu = flat or nested. In fact, several packages (consult.el, counsel.el) = flattens imenu for years. Yuan=