From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 yDZGEAdJd2Xj7gAAkFu2QA (envelope-from ) for ; Mon, 11 Dec 2023 18:38:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ENqvCwdJd2UYBAEA62LTzQ (envelope-from ) for ; Mon, 11 Dec 2023 18:38:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="h5/kEqQQ"; 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=1702316294; 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=YaM5DJhdTdYp/o3Zs9IyydAsVyUuRzPzsC6c07mNK2s=; b=MG7VTXdnhpKZ+B4V7ahvpwv2NFsdrWavYZLeiLCvRL2IBXB7DPnAXpvFZ1cnMN2GunBgaN QkhxqgmX+Z9GMKfpBLuQR7ijuf3W0wBIFMpi4Dh7N+Q9batPKLmSgyUJrK2ilqPJySN/xk fqFh+Qsml/mOxdYr7jOxRn+uQ1cAfMNy5zbwFJc2BQiFN+lmbGgUEYjM/32WOQLDy/+l8F jyLbGuxH2MJYkH5G+uQYjiUuPEEYrR0ERBhxCIVEpgORsCceV50Ws26B9+VpIiYpoBd10P d0mDIHSKIdERpt+P3Zq/n6fbSHobOY4z0CyAnFGnr0GZzkTQVZz5RAz2CAUuMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702316294; a=rsa-sha256; cv=none; b=Q94ZM7NbCuQK8xyr/c+m/6BjarLoV6xj1EpGo1Z8Hr2x8pdHfDBuYkPzTfRR58t1WkUc9f vp1jfKK7U1PqMQGT2fKRlOAvT88pbADZaHMhmyO0FBdmDoE+YL+balnI8P+5UQpHj/hZL3 stnAS1aO0sOm59TyuyPgyqSJqES69DrbUTYPx21Y3p6ZAXs9Cys6ITkjyBkHmI8UdeMZ9w HeToNJz7nNOiunTT3cUQRN75yn5imSIIJomecgw2oMJ1K80Tg9+yVZGstPlOL9v1uwApVe ApClXpP1TjmWION9CvGYkwMv4c5AWyU9/L8KrkiNx4npzCe988dv11Q58HfHsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="h5/kEqQQ"; 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 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 61CA23C3A6 for ; Mon, 11 Dec 2023 18:38:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCkDM-00027p-Uf; Mon, 11 Dec 2023 12:37:08 -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 ) id 1rCkDL-00026N-4q; Mon, 11 Dec 2023 12:37:07 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCkDI-0006Ae-Dx; Mon, 11 Dec 2023 12:37:06 -0500 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2c9ea37ac87so65286021fa.3; Mon, 11 Dec 2023 09:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702316221; x=1702921021; 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=YaM5DJhdTdYp/o3Zs9IyydAsVyUuRzPzsC6c07mNK2s=; b=h5/kEqQQio1gXfOSIsb47M/AESE5rD+Cz4Rmf1XF5ncxeEaFXi16DwVP+Hzy5cQb2I uZidepCvbB08Uf5wmoG7s9LfkiYz3I7TejFbqEqvN5fBmZ0wOqny4cWb1Xkd/EErSTZ1 N3M92n/LQDOAkoMp7//R5yk5tVtXVun9bxU3y9nMsoaf3M+VKPLn9q7e2wADcounltQf TLoyDh8K6wNCWul5SpZfv4wY/03rvH5FOfx8037rfgkyDf/Qv6GtHrMTjtDfaJ9AEN4W 1Ap6yWMB3f6hecyAK4+IrbyMIAachzQppQr7pBvn3zGShaXl/SUsnZCrrOLrL2ci87JF DjiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702316221; x=1702921021; 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=YaM5DJhdTdYp/o3Zs9IyydAsVyUuRzPzsC6c07mNK2s=; b=OimLFuCt3PKbfWyoLSIMjLvGsrfUdgnaAs2YFpQgi48hxvTv9HmuoVt8ZcLE/quXZ1 EQMEmXHSb/yYrxdwNDGZ6yPScYzwxgOZaHDChmNT/pwap5GcxwrsPx/A+ROjG8djfapq r0C9VxDZA67Y/JsMIqitpt8LN5FMHhgD9Jj9KkHJJ7rlgiaY/duEZJnnzn55R0CuJnep dE0a4fBIVBLUSXSoTFbBPhblItam1OR45CegbkqfgWhQj+Vuibc7HXuvO80q7Rnm0Bfp q8kH66ScJTUC6UgOsbRO7f7GfNy72gVuV46gwWNlfPgh4w3LjVNr3s7SHTmHSiAkRAq2 So5A== X-Gm-Message-State: AOJu0Yw+o1+ydaUARx3LSjVYwprOEOVE9GznaLRywd/mcrKF7IQznSKe jTwloEnQVI1WxQvLYwY70CoYtzJ8A+/T9HCa4YI= X-Google-Smtp-Source: AGHT+IE3pA7PT+AUPrQPUW1FBjkVDf1wC4/W+cxkQmF7cw/dyy3UX7C14d8OfhoPqvMqxvUlZaUpua/A1MUxXcDIVDQ= X-Received: by 2002:a05:6512:2385:b0:50d:1a7e:ac7d with SMTP id c5-20020a056512238500b0050d1a7eac7dmr2495101lfv.38.1702316220593; Mon, 11 Dec 2023 09:37:00 -0800 (PST) MIME-Version: 1.0 References: <87plzgbalt.fsf@localhost> <87msujskxg.fsf@localhost> <835y17y5qu.fsf@gnu.org> <874jgrsiyy.fsf@localhost> <86r0jv8efr.fsf@mail.linkov.net> <86zfyg3jgs.fsf@mail.linkov.net> In-Reply-To: <86zfyg3jgs.fsf@mail.linkov.net> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Mon, 11 Dec 2023 17:40:07 +0000 Message-ID: Subject: Re: [FR] Allow flattened imenu index To: Juri Linkov Cc: Ihor Radchenko , Eli Zaretskii , 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::234; envelope-from=joaotavora@gmail.com; helo=mail-lj1-x234.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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.61 X-Spam-Score: -2.61 X-Migadu-Queue-Id: 61CA23C3A6 X-Migadu-Scanner: mx11.migadu.com X-TUID: KjY3DLgrqN57 On Mon, Dec 11, 2023 at 5:21=E2=80=AFPM Juri Linkov wrote= : > > By the way, this seems to be exactly what the breadcrumb-jump command > > in my breadcrumb.el package does. Goes reasonably well with a flex/fuz= zy > > completion style. > > It would be great to have some form of breadcrumb-jump in imenu.el > since it's useful on its own even for someone who doesn't use breadcrumbs= . You can copy it over, it doesn't really need breadcrumbs, though, it just needs imenu. The only things I'm seeing in its implementation in a penchant for a particular text property `breadcrumb-region`, which has information that imenu's structure didn't have a good place to place. But it's not required, as you noticed, I suppose it just gives it increased accuracy. > When eglot is enabled then imenu-create-index-function returns a tree. > > What is interesting is that breadcrumb-jump already correctly handles bot= h > a flat list and a tree: Yes, that's the point. Though when using Eglot, the exact tree structure -- of any -- depends on the language server. Jo=C3=A3o