From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Imenu and structured documents Date: Sat, 28 Sep 2019 18:16:53 -0400 Message-ID: References: <4011ff51-bb95-9515-e331-094d01195f96@grinta.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151666"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs developers To: Daniele Nicolodi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 29 00:17:09 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEL1Y-000dKw-6A for ged-emacs-devel@m.gmane.org; Sun, 29 Sep 2019 00:17:08 +0200 Original-Received: from localhost ([::1]:35184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEL1W-00075r-8V for ged-emacs-devel@m.gmane.org; Sat, 28 Sep 2019 18:17:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36943) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEL1P-00075c-BJ for emacs-devel@gnu.org; Sat, 28 Sep 2019 18:17:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEL1N-00061q-V0 for emacs-devel@gnu.org; Sat, 28 Sep 2019 18:16:58 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55282) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iEL1N-000612-OF for emacs-devel@gnu.org; Sat, 28 Sep 2019 18:16:57 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 951B4448707; Sat, 28 Sep 2019 18:16:56 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8015E448704; Sat, 28 Sep 2019 18:16:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1569709015; bh=2kb5yQ0f10Z/d16EXtEPtKNypccBcHTyDG44V5vBRY8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=NId4y4uelHJdW7saTZ+j/IbbHWkoHqXyt/ghZ4rLTf/rBCBrx95PKVs8XCRZYoy3E Xef6Pb4y+n0vQ5UQg4EgAA4NRLuD6k1FGid3qJa8XLvMYdWYVRnI5Li/VeGjGxHAyV mPtjfcleKUnICm5cIzKSreLl6pt/zDkc2ubOfb1yFzV2e2nmOWBqx1pIP9Hdp1GMTv 0y/6RiJM5uchP12SD9iy/vPsgZImd/Wngqq4g3OFFg0BxWzZ21HLw/rGU1qcdzANwM BHMX5/rM2rV4GuO3HgMYUtIQzXi8vegMaTFOVwOXzDdirysl9OyneTURHyd9fraHav 7w3tASeCFV9JQ== Original-Received: from pastel (107-179-151-143.cpe.teksavvy.com [107.179.151.143]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3FD55120B31; Sat, 28 Sep 2019 18:16:55 -0400 (EDT) In-Reply-To: <4011ff51-bb95-9515-e331-094d01195f96@grinta.net> (Daniele Nicolodi's message of "Sat, 28 Sep 2019 14:41:53 -0600") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240379 Archived-At: > . 2017 > . . 2017 January > . . 2017 February In Imenu, the submenu structure usually doesn't reflect the document structure, but instead it is just a fixed structure for different *categories* of entries (e.g. functions-vs-classes-vs-variables), so I'd expect all the sections and subsections to just be placed within the same "level". I use Imenu via the minibuffer (with completion) rather than via mouse selection in a GUI menu (or via Speedbar). I'm not sure if it's the more common way to use Imenu, but it's one where this flat structure works fairly well. Stefan