From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp1.migadu.com ([2001:41d0:1008:1e59::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id qLoiJZ+Wd2WyUgAAkFu2QA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 12 Dec 2023 00:09:19 +0100
Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1.migadu.com with LMTPS
	id AJ2CIZ+Wd2VZYwEA62LTzQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 12 Dec 2023 00:09:19 +0100
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=kSFuwRcL;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gmail.com
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1702336159;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=HjUQmRLXnoZqXiqU6anTaXrCc7bnequb7nRKwg7g2ko=;
	b=SV8Mv1UEK2gBHMPcSebx91tu34gwF4MDeYzf80zWjTaFqb2l3rr8GWFN7uR+uRCRQuGaWl
	svZJScEf3ZQIu6XTaBj5vcTa8r9VnXPiHB2gVAndGsaAmVdy2Ro+0LQh1yiosvA1PZ0Avt
	i3kyb2dptN85M7dWPCcFNiLyBfesgBitrUV8TdaNLVe0BeQQZchIree+FZcDkx2rUiv5W1
	sa7hOfLLBVUCge/aM5BwauNRzCO+38+sStrZCxMRQD7IcdCCx78vAmhffS2PeZrHfAtH1S
	8KamFRjLKxGToquutweKMLuP0b6l+eD/t6OBUVj8TBCvAerAr2JFerxljFz1vA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=kSFuwRcL;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gmail.com
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702336159; a=rsa-sha256; cv=none;
	b=OqrFBYJM7EQkjMGJOC/asUXH7zkwHMrwXsKaLADqpUL2Eg5+qrl+HZcACzvhTGj7JOaIeT
	uF/H4NkXtXNSRHyvbiQU3ImHRqTQ1xPwp/GdsjrsbhbhMkDgkeKPuuUwOEZa0Mq33tcc65
	VsS+qLP8cSc6F+9oLnAOzjJzZjidHbAYFpGXezAg9ORJj+eFSjYTKirxt1vOfwfTWkDYPD
	dY+3lWEI543OyiZKcLNVrgLY4htHF2nJ0C3fcB4lj6M6wQZ8WkMm65gQF5+XXxiT/420RJ
	/VYfjLCs7ER+TTz9o2MNv5rr1XgijLBkgrHWFVQ4h+NygWeJEU7l0ADw7Q6Q+A==
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id E9ABF56F50
	for <larch@yhetil.org>; Tue, 12 Dec 2023 00:09:18 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1rCpNr-0004yK-IF; Mon, 11 Dec 2023 18:08:22 -0500
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 <joaotavora@gmail.com>)
 id 1rCpNn-0004xm-LG; Mon, 11 Dec 2023 18:08:16 -0500
Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <joaotavora@gmail.com>)
 id 1rCpNm-0004Da-1q; Mon, 11 Dec 2023 18:08:15 -0500
Received: by mail-lj1-x231.google.com with SMTP id
 38308e7fff4ca-2ca2573d132so63690871fa.0; 
 Mon, 11 Dec 2023 15:08:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1702336090; x=1702940890; darn=gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=HjUQmRLXnoZqXiqU6anTaXrCc7bnequb7nRKwg7g2ko=;
 b=kSFuwRcL7owKm6XKTEFcBYvIdQB1zxNR4mMIEvxgT0k1ehPaIZkrabiNp7OzD5jTVF
 rjnD6/Z3qBlWLIIhI/UE+/GE86sz8HRw1ZpUkJBUpEV7NWZKL5WvfXLgwVvN0VMjSXL2
 /ZMTBv0Qf9vrj+3n+4iln3R3gEcOOuHHU4VkCWkVuan+o9yQoashGgbnpJ2VUg9fbIVE
 4eZ63FdWyd3F2H2/pvE+83UoWKTro6gaGMCDdlSrLhPw1igygIOMk+hkU6FJ8TyhVbTN
 iD1U3dGO3kqOa0z/V/RXxVXSR9YB4/QBLsEYBncOq5FlMrouqlVC1G9ps9X1X5Ofr5zN
 rgYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1702336090; x=1702940890;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=HjUQmRLXnoZqXiqU6anTaXrCc7bnequb7nRKwg7g2ko=;
 b=HwIeXN42W7Oivlc54dBC9r+gSA+45ckTaRLYAxAtmF3fKAqc+7CKGEGn4/E2ZdyoWV
 N8O46S85oG7bQ1bUPCnUUuHzIVj7iKdMANc3ZiHXiYiKZVU2tzETiziS9zHjBP48bobm
 lvLfksGDOuO0r0nBvRUZ/mYkws/oHoH2JakLpvJMvfeBFCdNjyzrwigaaZyMCbXP96fv
 xbEsEFqTKMgbOwYmPY+cRpy3vlbcvDsoRVHlD49eDdMqUjOg28+x+s1X1Ik7b+5LqHUJ
 rG6MW0rSxS8nqxZBRn7M7zMrBqemBy52vUh3pUzrUdGEw6GDtl0DYkcaovHxD9TF4Etx
 5JXw==
X-Gm-Message-State: AOJu0YwidhrpCaVOnxuFA6lq7CJNQXuHwdAvVD88HG0I39SXAnuoZ5M+
 Becsr2eqG1nnZ/xaP9SL05+aHfxEXzLWeA65atg=
X-Google-Smtp-Source: AGHT+IH+6vAk0iogKMQwRAX08VdhtF++Q40GzU3xYF0EKFHKyuD1z1pyszbbSp+CobZslHyGqgMZ7Y2eOxW/APsFoqQ=
X-Received: by 2002:a05:6512:3b0a:b0:50b:e056:277e with SMTP id
 f10-20020a0565123b0a00b0050be056277emr3041414lfv.52.1702336089916; Mon, 11
 Dec 2023 15:08:09 -0800 (PST)
MIME-Version: 1.0
References: <CH3PR84MB34240DD3259A46D28C406019C58BA@CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM>
 <87plzgbalt.fsf@localhost>
 <CH3PR84MB3424C475913C9D2A3F9EDD73C589A@CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM>
 <87msujskxg.fsf@localhost> <835y17y5qu.fsf@gnu.org> <874jgrsiyy.fsf@localhost>
 <86r0jv8efr.fsf@mail.linkov.net>
 <CALDnm51j9X6h2ipYamWUUnHW=fQ9oMRhzVBR1pxxRcUGmZuobQ@mail.gmail.com>
 <86zfyg3jgs.fsf@mail.linkov.net> <87o7ew7d05.fsf@localhost>
In-Reply-To: <87o7ew7d05.fsf@localhost>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@gmail.com>
Date: Mon, 11 Dec 2023 23:07:58 +0000
Message-ID: <CALDnm52HqdmQc5pxJ6Njb14Csw6zMx_vY+ti9QBQOK-MH24WGA@mail.gmail.com>
Subject: Re: [FR] Allow flattened imenu index
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Juri Linkov <juri@linkov.net>, Eli Zaretskii <eliz@gnu.org>,
 Morgan.J.Smith@outlook.com, 
 emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::231;
 envelope-from=joaotavora@gmail.com; helo=mail-lj1-x231.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-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Country: US
X-Migadu-Flow: FLOW_IN
X-Migadu-Scanner: mx13.migadu.com
X-Migadu-Spam-Score: -2.61
X-Spam-Score: -2.61
X-Migadu-Queue-Id: E9ABF56F50
X-TUID: 957OAPg7M1Qs

On Mon, Dec 11, 2023 at 7:27=E2=80=AFPM Ihor Radchenko <yantar92@posteo.net=
> wrote:

> > Indeed, it's unfortunate that imenu--make-index-alist and imenu--index-=
alist
> > are named as internal.
>
> Should they be renamed to `imenu-make-index-alist' and `imenu-index-alist=
' then?

Maybe, but it's much more urgent IMO to review the representation
they describe, since it's all over the place.  Ideally do this
before any rename.

Incidentally, I just remembered why breadcrumb-jump uses the
'breadcrumb-region' text property cookie: it's because without it
the current imenu tree structure has no way to for backends to
store locations to non-leaf nodes, which are often among the places
you want to jump to.

text-properties + standard cons trees + "special elements" is a
bit of a ugly mess, but OTOH it works and is backwards compatible
to existing frontends and backends.

So one of the possibilities that whoever conducts this review
may consider is an 'imenu-region' text property similar to
'breadcrumb-region', describe it imenu--index-alist, and
make M-x imenu take advantage of it.

Jo=C3=A3o