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: Wed, 20 Nov 2024 21:08:33 +0200 Message-ID: References: <87msi1ueb0.fsf@mail.linkov.net> <4256f446-e11b-450c-b455-131cb75acab0@gutov.dev> <871pzbj8mq.fsf@mail.linkov.net> <87sernhxoa.fsf@mail.linkov.net> <1d08c589-2d0e-4f10-8c2e-e21c206ac118@gmx.at> 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="14153"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74361@debbugs.gnu.org To: martin rudalics , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 20 20:09:23 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 1tDq4o-0003Wr-Oa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Nov 2024 20:09:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDq4W-0005Q1-Ov; Wed, 20 Nov 2024 14:09:04 -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 1tDq4V-0005Pq-A8 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 14:09: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 1tDq4V-0003NO-02 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 14:09:03 -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:From:References:MIME-Version:Date:To:Subject; bh=dTPgBgCIqKkWzizGOBnBh8vqT8SZOpicP9nm3LkNJ34=; b=AsJvFYh25ZOpklEbx28M8ra9A4SgspA2JX9u5xxZNgPh357Wy3MCWBWjL+qUymdMFCXooOQN525TR9E5W8IxZMbmU5naUMuTYamhkPmLunUb1j5qTuNZkOc6Gc9NIdGHa1GQyeuLJa8Lri8I3iQJ1jcWgIz/StDjYlYsslPFpgr/CTBk41yTOLRFcvfWOtI0y7+izUzNMdj59eDrWEtWHTJkAILaU7w1UeWo/bdoRc0DlTUOknUxJ2ye76kqZT1sc3hnEl6m86kHVosEKWgh0kKIpr5mc/NKKRvytKuGBQ0pMaa2T1B9Kmu2WiIYmQsw13bTo+s8SwDDqsSoQNiIBw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDq4T-0003Id-Qe for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 14:09: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: Wed, 20 Nov 2024 19:09: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.173212972612659 (code B ref 74361); Wed, 20 Nov 2024 19:09:01 +0000 Original-Received: (at 74361) by debbugs.gnu.org; 20 Nov 2024 19:08:46 +0000 Original-Received: from localhost ([127.0.0.1]:47780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDq4E-0003I6-0P for submit@debbugs.gnu.org; Wed, 20 Nov 2024 14:08:46 -0500 Original-Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]:53947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDq4A-0003Hr-CX for 74361@debbugs.gnu.org; Wed, 20 Nov 2024 14:08:44 -0500 Original-Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id BBCEC1140191; Wed, 20 Nov 2024 14:08:36 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Wed, 20 Nov 2024 14:08:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding: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=1732129716; x=1732216116; bh=dTPgBgCIqKkWzizGOBnBh8vqT8SZOpicP9nm3LkNJ34=; b= uF5N3w7ajhwhBwqnVCJmG7sLtI4ajFXa3tkSeETeimU2nU7g6hLO23GraiiPfkSD vAmU/BqmQgceBkCMDhi3deOlncISunOrw8aMOhH2JV3igkJCUcK/JBlpqNfEY/Kr FQ2GOLny/2ZkVyXNQuL/WRQ4+G7K7oeKw2LA4Er9MEPGEycDoIv1B/amw0wFYzbd grXfjx5PlTHg+hwF9LsLC6yeXfBlwsbWBQm3pt78aqAqEeg10nXqKedPNLp0Hu4a tnds2FY6D13Tw0eINsWa4hGTyctEIlclhCJqgn/rZd08cqk74T0N52D3PoJYOptS KA23A8R7qmARoP/i2dPBiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm1; t=1732129716; x= 1732216116; bh=dTPgBgCIqKkWzizGOBnBh8vqT8SZOpicP9nm3LkNJ34=; b=4 KgAm+uk0SuqssgEZVHZ7+/Cufm5p/W4rvXrV0PpXXSoXpiisIwpHcvLRYb/M5VlJ ijjGppO2zqtU+wD2h02ABOiPU7XwOUiDURNNiRBANxdihMIFB4IC0xMwyiosPdik wccef3tRDL9qpJcY/PKdI/1oHT8Sfc/dpgtDVpYatGxh2lYRpkJObmIUp1/rcBG8 u/dzM6QFzQAkTCrBlPzCUXAKBqCzTB83zFGgO7sB8PMYyReMwjgGYqVv4/UuwxgV HvvQMCkKWsep8hdn243iGPrBKrb2RaHGO134vTyq4t8XOF3qdNBM6NxQXjSjwmtF feVHAQDpr1Pn5BIMTFqDA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeggdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveeg tedthefhudekteehffeukeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehruhgurghlihgtshesghhmgi drrghtpdhrtghpthhtohepjhhurhhisehlihhnkhhovhdrnhgvthdprhgtphhtthhopeej geefieduseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Nov 2024 14:08:35 -0500 (EST) Content-Language: en-US In-Reply-To: <1d08c589-2d0e-4f10-8c2e-e21c206ac118@gmx.at> 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:295693 Archived-At: On 20/11/2024 10:37, martin rudalics wrote: > > The function ultimately used by both is 'set-window-buffer'.  One basic > feature of 'switch-to-buffer' not shared by 'display-buffer-same-window' > is 'switch-to-buffer-preserve-window-point'.  And obviously > 'switch-to-buffer-obey-display-actions' gives the user the opportunity > to override the behavior of 'switch-to-buffer' in an arbitrary way while > 'display-buffer-reuse-window' per se cannot be overridden.  OTOH the > behavior of the latter can be controlled via alist entries. I guess the main possible concern is somebody's display-buffer-alist customizations that don't use a category, but are just non-specific enough to trigger by the new code. There's not much that could be done, though. > > Yep, even the 'mru' strategy doesn't choose the currently selected > > window, so this should also work well, selecting "some window" in a > > stable fashion (whereas 'lru' - the default - uses a different window > > each time). > > I think that the most important improvement of "category" should be to > override "lru". The customization capability, you mean? Nice to have indeed.