From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#74361: [PATCH] New option xref-navigation-display-window-action Date: Fri, 15 Nov 2024 02:50:50 +0200 Message-ID: <9e79299a-0afb-462c-9362-987f4bb12e34@gutov.dev> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------Z9fU50jbjwxWhl0wi9GfwtDc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24882"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: juri linkov To: 74361@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 15 01:52:27 2024 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 1tBkZW-0006Ij-1k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Nov 2024 01:52:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBkZB-0005aZ-FJ; Thu, 14 Nov 2024 19:52:05 -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 1tBkZ9-0005aP-4i for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 19:52:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBkZ8-0003MK-S7 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 19:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:From:MIME-Version:Date:To:Subject; bh=3OGP3eNikkMEgmF6kgZJeXuTgimQDB+cexwHIjqM9Rs=; b=UoydksthKoBifgeEDs6vxU5vWK2h77QSjympQYGN5S3sqmQ7v+rxwuCAlbGwcOr0nSV4HIirwLCBFjcFe2Lv+kOtr3xO4jqj0SCS1CrLlNBzOWNq1DwOCjxMtNMxV4HNKCIRtofNcyAzl9N3hhHiIigOj5zNo/k/SgL+62L/XU4MAbwRynQYvBGiO+MwYEkcEU4osk7UDEWwbZt6fStG64notoJCeiqLR+7v3glxI0kHsYtUJiC/VNQcVH3pi3zEQXDmhZpXYXMlk1Ez2IV28KG139SZfaJ0rmhUhG+fHNJszLfDpW2ycMCMi97fc0prYwSalPbVUKeDvxGzA+iNMQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBkZ7-0005UY-Ql for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 19:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Nov 2024 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74361-submit@debbugs.gnu.org id=B74361.173163186721036 (code B ref 74361); Fri, 15 Nov 2024 00:52:01 +0000 Original-Received: (at 74361) by debbugs.gnu.org; 15 Nov 2024 00:51:07 +0000 Original-Received: from localhost ([127.0.0.1]:47822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBkYE-0005TE-Il for submit@debbugs.gnu.org; Thu, 14 Nov 2024 19:51:06 -0500 Original-Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]:52197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBkY9-0005Sd-1U for 74361@debbugs.gnu.org; Thu, 14 Nov 2024 19:51:04 -0500 Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id EC46F1140171; Thu, 14 Nov 2024 19:50:54 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Thu, 14 Nov 2024 19:50:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1731631854; x=1731718254; bh=3OGP3eNikk MEgmF6kgZJeXuTgimQDB+cexwHIjqM9Rs=; b=Naa6UNWt+TEzmGgHnO2dof9K5V ef1QlwnbI/4lIoSCEZi1/uR9aDsY3IKnqAD0Kjut1P+dLgZ3hJdtBqPL7YO0oXfD 3h/ek1JVV8SQz8W64NLFGgPAGfwUhkpPPc2yiE2QKBE7L4lY1K9ioi2QZGkEmObX em488adluTELgHaVJm3MssreJ5p3X+E88b/WxtniWoUy6hEppon1EHA7/GQSH680 rGVPU2+3hxtrli/ZDOVCQUyGMU3zQhGbHb40F5uX+A2b1XJGCBpQ+VEMQWTVAUKu hy+lIQpb3UsF4NI6yppSIZX9wbhIRAYSH6+q62HGfavObVOAatyykb2boM/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731631854; x=1731718254; bh=3OGP3eNikkMEgmF6kgZJeXuTgimQDB+cexw HIjqM9Rs=; b=K305XjvLrVUmjgd5lWCaN5jiHEiLkW5UwQiSWG8xXlF6RLwl8V0 yvFzkvRA/ynCo8Pm90VH97smqGUc+z3EHjzZOhC4PDAVXcPumLEb168aH9WUrlGR clYzmCdZFrBT3fkiS15XBr2B9YFHaiQIx05BQz3NoZngezPC+LOhF7NLaOEz3q9z FvMePXo25A9ks4DZ5GFv0xYBIBPMXXzfWsxqtOH/6ih+B0KK32RYpE98PBWjxzL5 QiewTt6bT5ZgpWHfuzHAv3/9HOwuenm5ZW9Cn0onuPv5lH9IQmuL1HBV0OT3IkAV tzLq1FmTiMhAUDWTEMwH1SWmDMcep12iJqA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvdefgddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpegtkfffgggfuffhvfevfhgjsehmtderredtvdejnecu hfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvh eqnecuggftrfgrthhtvghrnheptddvueegvdetledvgeevgfeutdfgteehgfegffektdek geevieefiedujeeuffffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeejgeefieduseguvggssghughhsrd hgnhhurdhorhhgpdhrtghpthhtohepjhhurhhisehlihhnkhhovhdrnhgvth X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Nov 2024 19:50:53 -0500 (EST) 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:295376 Archived-At: This is a multi-part message in MIME format. --------------Z9fU50jbjwxWhl0wi9GfwtDc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15/11/2024 00:29, Dmitry Gutov wrote: > Comments welcome. Here's a small revision in xref--show-pos-in-buf that allows including ALIST elements as well - just because those are allowed in the structure of ACTION as documented. --------------Z9fU50jbjwxWhl0wi9GfwtDc Content-Type: text/x-patch; charset=UTF-8; name="xref-navigation-display-window-action-v2.diff" Content-Disposition: attachment; filename="xref-navigation-display-window-action-v2.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL3hyZWYuZWwgYi9saXNwL3Byb2dtb2Rlcy94 cmVmLmVsCmluZGV4IGNjMDZlMDZlZjc4Li43ZDI5NjE5MWRhOCAxMDA2NDQKLS0tIGEvbGlz cC9wcm9nbW9kZXMveHJlZi5lbAorKysgYi9saXNwL3Byb2dtb2Rlcy94cmVmLmVsCkBAIC00 MzEsNiArNDMxLDIxIEBAIHhyZWYtYXV0by1qdW1wLXRvLWZpcnN0LXhyZWYKICAgOnZlcnNp b24gIjI4LjEiCiAgIDpwYWNrYWdlLXZlcnNpb24gJyh4cmVmIC4gIjEuMi4wIikpCiAKKyhk ZWZjdXN0b20geHJlZi1uYXZpZ2F0aW9uLWRpc3BsYXktd2luZG93LWFjdGlvbiBuaWwKKyAg IldoZW4gbm9uLW5pbCwgdGhlIGRpc3BsYXkgYWN0aW9uIHRvIHVzZSBmb3IgbmF2aWdhdGlv biBjb21tYW5kcy4KKworVGhlIHZhbHVlIHNob3Vs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y ZAogICAgICAgICAodXNlci1lcnJvciAiQXQgZW5kIG9mIHhyZWYgaGlzdG9yeSIpCiAgICAg ICAobGV0ICgobWFya2VyIChwb3AgKGNkciBoaXN0b3J5KSkpKQogICAgICAgICAoeHJlZi0t cHVzaC1iYWNrd2FyZCAocG9pbnQtbWFya2VyKSkKLSAgICAgICAgKHN3aXRjaC10by1idWZm ZXIgKG9yIChtYXJrZXItYnVmZmVyIG1hcmtlcikKLSAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICh1c2VyLWVycm9yICJUaGUgbWFya2VkIGJ1ZmZlciBoYXMgYmVlbiBkZWxldGVk IikpKQorICAgICAgICAoeHJlZi0tc3dpdGNoLXRvLWJ1ZmZlciAob3IgKG1hcmtlci1idWZm ZXIgbWFya2VyKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHVzZXIt ZXJyb3IgIlRoZSBtYXJrZWQgYnVmZmVyIGhhcyBiZWVuIGRlbGV0ZWQiKSkpCiAgICAgICAg IChnb3RvLWNoYXIgKG1hcmtlci1wb3NpdGlvbiBtYXJrZXIpKQogICAgICAgICAoc2V0LW1h cmtlciBtYXJrZXIgbmlsIG5pbCkKICAgICAgICAgKHJ1bi1ob29rcyAneHJlZi1hZnRlci1y ZXR1cm4taG9vaykpKSkpCkBAIC02MTIsNyArNjMyLDcgQEAgeHJlZi1wb3AtdG8tbG9jYXRp b24KICAgICAgICAgICAgICAgICAgICAoeHJlZi1sb2NhdGlvbi1tYXJrZXIgKHhyZWYtaXRl bS1sb2NhdGlvbiBpdGVtKSkpKQogICAgICAgICAgKGJ1ZiAobWFya2VyLWJ1ZmZlciBtYXJr ZXIpKSkKICAgICAoY2wtZWNhc2UgYWN0aW9uCi0gICAgICAoKG5pbCkgIChzd2l0Y2gtdG8t YnVmZmVyIGJ1ZikpCisgICAgICAoKG5pbCkgICh4cmVmLS1zd2l0Y2gtdG8tYnVmZmVyIGJ1 ZikpCiAgICAgICAod2luZG93IChwb3AtdG8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