From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [FR] Allow flattened imenu index Date: Mon, 11 Dec 2023 23:07:58 +0000 Message-ID: References: <87plzgbalt.fsf@localhost> <87msujskxg.fsf@localhost> <835y17y5qu.fsf@gnu.org> <874jgrsiyy.fsf@localhost> <86r0jv8efr.fsf@mail.linkov.net> <86zfyg3jgs.fsf@mail.linkov.net> <87o7ew7d05.fsf@localhost> Mime-Version: 1.0 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="17310"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Eli Zaretskii , Morgan.J.Smith@outlook.com, emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 12 00:09:12 2023 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 1rCpOi-0004Kz-LQ for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Dec 2023 00:09:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCpNr-0004y9-I9; Mon, 11 Dec 2023 18:08:21 -0500 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 1rCpNn-0004xm-LG; Mon, 11 Dec 2023 18:08:16 -0500 Original-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 ) id 1rCpNm-0004Da-1q; Mon, 11 Dec 2023 18:08:15 -0500 Original-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) In-Reply-To: <87o7ew7d05.fsf@localhost> 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-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:313714 gmane.emacs.orgmode:158553 Archived-At: On Mon, Dec 11, 2023 at 7:27=E2=80=AFPM Ihor Radchenko 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