From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74361: [PATCH] New option xref-navigation-display-window-action Date: Fri, 6 Dec 2024 09:31:28 +0100 Message-ID: <0e432e8e-c17c-4408-8f0d-1236b60e4879@gmx.at> References: <1d08c589-2d0e-4f10-8c2e-e21c206ac118@gmx.at> <78a96965-31c1-4688-b808-2de09d1832c4@gmx.at> <878qt9pz4w.fsf@mail.linkov.net> <05452bef-dd2e-4e93-abdd-6eb391027197@gmx.at> <87y118cyyk.fsf@mail.linkov.net> <871pyzp6br.fsf@mail.linkov.net> <25443bb1-788a-4f06-9350-5d2c666f6795@gmx.at> <32b8cc56-afa1-40f6-933f-6de0df2b9f63@gutov.dev> <688d5119-0900-46a4-86c7-32a9b06cc349@gmx.at> <87ed2v1aec.fsf@mail.linkov.net> <19124901-e749-4daa-bf47-27e12ea619aa@gutov.dev> <87mshbj4lk.fsf@mail.linkov.net> <4a81429a-ef9e-473c-989f-cff1314f5633@gmx.at> <8734j3l69p.fsf@mail.linkov.net> <87o71qghzf.fsf@mail.linkov.net> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Dmitry Gutov , 74361@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 06 09:32:35 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 1tJTlL-0007oK-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Dec 2024 09:32:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJTku-00066m-8h; Fri, 06 Dec 2024 03:32:08 -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 1tJTkp-00066C-BA for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 03:32:05 -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 1tJTkp-0006bL-2T for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 03:32: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=ppuVrTpFTBmmUcz4Q1QTPtB7UdizCxqIRdVy9pLqjLU=; b=Crj4ETP7hQHGQl95mECgWR7tFv6fk4CIYeaAhtc08pv6N0xJZHe990yaHynIfQg4V9SedKek29F2Fhz5KzE7KD73z+LBPz5bxFsACKKzSlJLvukGqeMYZeVrAHhvzDNfFRjM0ADRoPPwjFBL65dw7D5xchQACpdRIMzjYLo8KwqYj0qKQhcf0/P9HNqJgJRJbtY2S47pJ1Kd/uHbRCGinDOfrHKkoIkS7jBp8uwCkY/gJN+6bU2TclDlcs8BjrNF3TBCMZ0yvEahqqGX5d1R7BHZOaM2MZ9Bv7u2VfaCAae5fGzN7vp+XNFNfOo9djF6j6OK3vcNR7oJiikjdEAIQQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJTko-0003DO-G4 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 03:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2024 08:32:02 +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.173347390512316 (code B ref 74361); Fri, 06 Dec 2024 08:32:02 +0000 Original-Received: (at 74361) by debbugs.gnu.org; 6 Dec 2024 08:31:45 +0000 Original-Received: from localhost ([127.0.0.1]:41923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJTkW-0003Ca-Ql for submit@debbugs.gnu.org; Fri, 06 Dec 2024 03:31:45 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:35917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJTkR-0003C6-TS for 74361@debbugs.gnu.org; Fri, 06 Dec 2024 03:31:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1733473891; x=1734078691; i=rudalics@gmx.at; bh=ppuVrTpFTBmmUcz4Q1QTPtB7UdizCxqIRdVy9pLqjLU=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=S+8S6wpkllTSAkSQswm1e6DAvGbTmIubS2QEak70ZgrVLxMsxsjiCS1s0Yx0oxs9 7zwwElOLP4MMKX4jc+gUnnHUAp2YN99XtDTxXPDr2licdzfAQuxMFX2o59e+nSPE8 pEIWDyIXRumNXY8XCJWhkdt4SU9BZvqdDGXyhmZ0J1qoFah29jOxCMm/cyEezNOwO wBL84D9mi/s7/2WP+aIO5I5bybGaSod2N2n8RY/ek665PCaZGVn+Mer5mbtExy/VA HpFay7NtWUZcYx5x2AaSZ+yiGJRMBOVFc4cn0r+/Ja6vOM893M5CsmYPbWZbMkCfX MiYu4bE4Fbvraf/ibQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.96.233]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M6Ue3-1tHXwZ3H7x-00GnWq; Fri, 06 Dec 2024 09:31:30 +0100 Content-Language: en-US In-Reply-To: <87o71qghzf.fsf@mail.linkov.net> X-Provags-ID: V03:K1:sEO6F4VPLFajr4bCp438t703blXAzqoa2KfF2bF41qBRSj4qZyg Qb+/nSiWJYUYWI9UrzR4XCz7k/ZbtpToM5aUFSaHJPISU0IPuoLCxpX59dv7QdI5eyXszCD s8Bks8/oZoEuEd9MQ1Wy1S2mA/piLZ8b7rRcweEwB7GRiZ8Tpml+XP5qj8WmWocwdOnFdGa u5G5bHd2NuMC6l8ZyI/uw== UI-OutboundReport: notjunk:1;M01:P0:EENPbJqk2vc=;dwgFEErBJEmFIX63B1JNohsi2pt 5hF66VVNmf9kJbtmH82lTgiTKJrPiZTkb4iHmLxCQeAB2HFTPjgikf7pF91BPJDs1/OEMoyw0 khY9n+44ctvID4wjMb0x5EUhFtVh/rCaLLyPinDJHtlTPqx9sWM3iN1f0S1FLRDqKESIcjVwb GgcCfJgHNq8HrvfyqZwhOsBVRfUk2SLjcDAi9hnsIwjAanMvc9j4/cIXqp52o+tom++c4NuhP uZi44L8qECeMBNLVoYeAAV2QsRvD/pTEbnAoKYLDGEx2fFRbLKP8YdjKqrABy4qQPC4qm3c7E lTxRQfriYljHNQjakl73oD/RPE0GexXfzdTGjXfynGzAceX8JmKoSPSd7CSjRYoLEzVWqUjEX FE860KL6dK/07MltEskaz0gXnLALXtEgN59Y7QHtw3AW6VXNfm3dzEX4kksyzI9qzi6/sYZLF Vsw8gzyeX1MHz8QkA3hku8rdrVAU1DfMS3N3yoJcE0+O7SF0z4gt4jCBRmabkblCTeA6aHShm 4QbegDIDH4z0I9m4KefmEnSRCQWJnZxFiZUjnMOkFBkfOyhqwURUHgE/bRMlUq2+eWsLW9z3L iEE7e8aJgoocPoFJWAjKTWcG9bNxY4jNey21p7UE2yOt7PE+cz6Hslp4Rcjg5ESUl3AErM0V3 QJUbT14WYwTniiUwyOTOfM/X5qJ5RWM+RceCIGoPg2km63Jhv/KOhWfTDK+8n0etq3vTBjN4s S6XPc8av1f//i+pza0nVM7eC24KhOaFIPeNHWabeMln+nViNcJt+jHloSb7ip4eUiyLgymoj 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:296493 Archived-At: >>> (with-current-buffer buffer >>> (setq-local display-buffer-previous-window (selected-window))))) >> >> This relies on 'ofun' selecting a window and would not work for plain >> 'display-buffer'. Right? > > It should work for plain 'display-buffer' because of using 'with-current-buffer'. 'display-buffer' per se doesn't care about the current buffer. The assumption that the selected window also holds the current buffer is nowhere guaranteed. Just think of 'display-buffer' running from a timer. martin