From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.bugs Subject: bug#58431: 29.0.50; [Eglot] Add "breadcrumb.el" feature based, on imenu.el/project.el services Date: Wed, 19 Apr 2023 23:27:45 -0500 Message-ID: <338356f2-dc7f-d05c-0914-f0b3aa3eaf5b@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Cc: Eli Zaretskii , 58431@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 20 06:28:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ppLu0-000605-I2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Apr 2023 06:28:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppLtt-0002BC-Ht; Thu, 20 Apr 2023 00:28:05 -0400 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 1ppLtr-0002Ak-Ca for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 00:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppLtq-0005zK-S8 for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 00:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppLtq-0003FY-6p for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 00:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Apr 2023 04:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58431 X-GNU-PR-Package: emacs Original-Received: via spool by 58431-submit@debbugs.gnu.org id=B58431.168196486712472 (code B ref 58431); Thu, 20 Apr 2023 04:28:02 +0000 Original-Received: (at 58431) by debbugs.gnu.org; 20 Apr 2023 04:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:36247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppLtb-0003F5-B0 for submit@debbugs.gnu.org; Thu, 20 Apr 2023 00:27:47 -0400 Original-Received: from olivedrab.birch.relay.mailchannels.net ([23.83.209.135]:45037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppLtW-0003Et-5I for 58431@debbugs.gnu.org; Thu, 20 Apr 2023 00:27:46 -0400 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id BA8CE100806; Thu, 20 Apr 2023 04:27:40 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a296.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3CCFD10013D; Thu, 20 Apr 2023 04:27:40 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1681964860; a=rsa-sha256; cv=none; b=o+qYUZL0TvZD0Exbc+GJkGR32zakFK94yqPtFPFz/j8cV+1jUdDeTiYYkO73LIPHiW9R/o qlni5K7ZQJhTRuzHsUqhjwAC/3PJTPYKw509kmZROqlhWbAgP7mO6B1iL4XewR/ONijc6S dsjvxhe0UZSy4hX6AXrXxgPbwdhJh6VE7bNmzbNH3YzHIfnicVlcfhEmdDcfYvEBnygI7X yrBSJ9+plo2VniPR5ZYcXQoZEdvbZNLExxLKIVLWCm3U9OSQSpc7Nc9Nny1z40cjtrHq28 OMBty/rnzbKjZeAb4ZXUULDeHMkSoYVMoZLn8fT4GyiMJhmB+VE24L0Z0QibQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1681964860; h=from:from: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:dkim-signature; bh=nBCZak8UQdu/I2no9EPjyfQcQlGtbtDD9zn4cqQvKyI=; b=OaOsvh8nN+lkgOAvNtDgJtZpmcBFZfei5ieWbg2sM1UqSfXbgoF6jIDJ3ZUuosr8gHq+Hi VmhVIZhhcRwTS2Uij7uLO8Pa7ojKcxJrKgso0wXhql8vQIQmR23VyFozpW4+fcky0heE24 fcR3CBEDrCNv5ogFmPGTLIaNbacA88nQMHRRn8GEhhpZmXPqsxx1kY/uQhDc7zexlQEIGW I53aVzxbCUIheEj4ucorQcWSU9QzlubDawdqAZUVz5TVddG3RVN2xtVTcw7onlfle5JlQI C97ocjEhe+m9zqsGe5IMvQTDKwEiJOdWrtEzSEXs/QVUPWd7xkXkfMcnxncIBA== ARC-Authentication-Results: i=1; rspamd-7f66b7b68c-td2xh; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Lyrical-Thread: 5a289a140005f8c0_1681964860494_1588352475 X-MC-Loop-Signature: 1681964860494:3303084262 X-MC-Ingress-Time: 1681964860493 Original-Received: from pdx1-sub0-mail-a296.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.101.8.65 (trex/6.7.2); Thu, 20 Apr 2023 04:27:40 +0000 Original-Received: from [10.60.2.14] (unknown [193.56.117.222]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a296.dreamhost.com (Postfix) with ESMTPSA id 4Q24Q34nC3z4h; Wed, 19 Apr 2023 21:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1681964860; bh=nBCZak8UQdu/I2no9EPjyfQcQlGtbtDD9zn4cqQvKyI=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=WLUyn7GeVDSM8hmall0IpSejlk52cPSt7rB+UkH55WwM2jG2d9gPnPgdt3t5qLxx4 GzcHDD1qPiVmsMzttQIVF4qW31LLeyxKm56GrHgAO1ZmvNbi98nUbxahXtHDuBT3FL EWLAFvrptlHYCrkyMazEMyMd0okY9i2UfSNrcAuDRMQNFpzs1SVxoaqdP25xiE+3KH G9buU9D4rJ7hrrNfOWWqeKOL52GaIFdOhGb0p/LPXgAswHE5K3QGvwydxe7K96XyG5 IfS/TInFFwzRh/wbgpkrRrzYgpzkgZq8Vjj36tTP5JTHnVNjgNWUp36JYiDZ23ZOsi PCKT+mllG/79A== Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260304 Archived-At: Hi João, On 4/18/23 13:26, João Távora wrote: > On Tue, Apr 18, 2023 at 7:10 PM Adam Porter wrote: > >> FWIW, this sounds similar to the topsy.el library I published on MELPA a >> couple of years ago. It aims to provide similar (or better) >> functionality than semantic-stickyfunc-mode without using Semantic. > > Had a look, but doesn't seem to work with Imenu directly. That's a goal > here, because it makes this work for Eglot and also any other non-Eglot > client that already defines an imenu. Yes, it doesn't use any Imenu functions currently. It's an interesting idea, though. > Also seems to have a slightly different goal. The goal here, is for > the headerline to show the current position in terms of the intervals > it intersects in the imenu tree, which may be a deep hierarchical > tree in some languages. For most modes, that's true. For buffers using `magit-section-mode', the `topsy--magit-section' function does return a breadcrumbs-style list that shows the hierarchy of sections. Also, my other package that's just for Org, org-sticky-header, does show a breadcrumbs-style list of ancestor headings. > Here's what I've come up with: it's fresh out of the oven :-) > > (meaning probably buggy, but hopefully hot) Thanks. I tried it, and I'm not sure if it's doing what you intend, but it doesn't seem to do what I need; that is, it doesn't show the beginning of the top-level form that encloses the line at the top of the window.