From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniele Nicolodi Newsgroups: gmane.emacs.devel Subject: Re: Imenu and structured documents Date: Sat, 28 Sep 2019 16:50:33 -0600 Message-ID: <24ae143c-245a-679d-686d-01fe83250db9@grinta.net> References: <4011ff51-bb95-9515-e331-094d01195f96@grinta.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14258"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 29 00:51:06 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 1iELYO-0003aU-Qo for ged-emacs-devel@m.gmane.org; Sun, 29 Sep 2019 00:51:04 +0200 Original-Received: from localhost ([::1]:35300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iELYN-0007oB-NL for ged-emacs-devel@m.gmane.org; Sat, 28 Sep 2019 18:51:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41979) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iELY2-0007kw-K5 for emacs-devel@gnu.org; Sat, 28 Sep 2019 18:50:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iELY0-0005hp-8V for emacs-devel@gnu.org; Sat, 28 Sep 2019 18:50:42 -0400 Original-Received: from zed.grinta.net ([109.74.203.128]:54504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iELXz-0005WX-Km for emacs-devel@gnu.org; Sat, 28 Sep 2019 18:50:40 -0400 Original-Received: from black.local (c-73-229-170-236.hsd1.co.comcast.net [73.229.170.236]) (Authenticated sender: daniele) by zed.grinta.net (Postfix) with ESMTPSA id 4D9AFE0DC4; Sat, 28 Sep 2019 22:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=mail; t=1569711037; bh=vs1pG4r2sfxrwB/2o1MRaWFNN7aSJPHuPM4kyHwfE44=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hNy1qFnfx3ZtZc0RAvJp89g+vdo7RiNJf+4UsYbax96Io8giNmLUVnevUY9sw+Twq 3WhBeFarvP4FwZ4zXh0yQbiWE6aVbFYJS2V+NdEoXZdIIRPXHG9NUrRjqWYuF2vTs/ XDovqMN9OZd/SjSSm0Oo/nqD7LiFOZ1PZlxBZrNw= Openpgp: preference=signencrypt In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 109.74.203.128 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:240380 Archived-At: On 28/09/2019 16:16, Stefan Monnier wrote: >> . 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. Thanks Stefan, this is useful information. Do you use imenu with latex-mode? From the description of your use case I think you do not use it with org-mode. Is prefixing sublevels with an indicator that represent the hierarchy as done in latex-mode something desirable? I may imagine that it can be annoying is the goal is completion in the minibuffer. Thank you. Cheers, Dan