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: Sun, 8 Dec 2024 17:55:39 +0100 Message-ID: <4c0f97ff-1ca4-4a4c-a46c-10b7b300eafe@gmx.at> References: <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> <0e432e8e-c17c-4408-8f0d-1236b60e4879@gmx.at> <877c8bwhd9.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="30547"; 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 Sun Dec 08 17:56:20 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 1tKKZv-0007iY-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Dec 2024 17:56:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKKZh-0002Ce-Ez; Sun, 08 Dec 2024 11:56: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 1tKKZf-0002Br-5t for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:56: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 1tKKZe-0003f5-Ta for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:56: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:From:References:MIME-Version:Date:To:Subject; bh=en2no8wkcLzw0LSKwbgiLMW+UAS7Ps8YeId9BqIoLLM=; b=vSuhuo+13gHCBOkO4dOqDfVMYJ//1fg/BylCkoGLbHwMBJeOezNGNTSWh7ATZxf+BRAc8E1ofTer/m+KtyGzSD4W5dLP2u3HG7yVJbmjVQP/sAVyB3EBGHrca8BHAOSqy7lXhsINUlkUgDGpnXhXGutAqqZLb4roiqQVAVdGZIgbEUJvrtq7tdlPJDROqCoaFQuavWQEc+dfLsMlQBfXIJEgAXhzLNEKkCr6tg9BNrVnBbfkYdMIn2Pq7fkKPnq3dKLUGuv5gJArw8AM3WJL+eyLA0hIxT4XsPBKRlidrKuvd7TKKjZpDYFiJMXHrPQvSFZWEHEeskaYI1QjsQFb1g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKKZe-0003IO-FM for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:56: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: Sun, 08 Dec 2024 16:56: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.173367695112640 (code B ref 74361); Sun, 08 Dec 2024 16:56:02 +0000 Original-Received: (at 74361) by debbugs.gnu.org; 8 Dec 2024 16:55:51 +0000 Original-Received: from localhost ([127.0.0.1]:51524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKKZT-0003Ho-2J for submit@debbugs.gnu.org; Sun, 08 Dec 2024 11:55:51 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:48357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKKZR-0003HS-AZ for 74361@debbugs.gnu.org; Sun, 08 Dec 2024 11:55:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1733676940; x=1734281740; i=rudalics@gmx.at; bh=en2no8wkcLzw0LSKwbgiLMW+UAS7Ps8YeId9BqIoLLM=; 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=RGyi6w0vA71+2liJS9IMrvAY8MOyQ+MhQAUEQ2/RrJA0xG2N2GctvZZ0gJxOVQbb jpkHC4dt+YsQvw6XSpJkY9QY9Im/UNCgcDa2McU+sagorpXlEHC9Vk5Z6N487+CAb fcKQIRtA9rH1OUYSjcetE+/NNRc5prfsXFe7UNrtgeeZSbmsgDoSF0H8qKeWYanBs 1L1DQEtaP0pJcDeUlLVVXdibN4GGDFl4kqLd5DvyxtJl9d1OXotX7+Jdjl+T8YnC8 yd+f+cmebfSLDkJibGvjBANwD1XZ7F4OhH8/WMaYq3CLkywlFV+8C6q2utJsamVtn qS77mJ7cG19MKtc+fA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.71]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpUUm-1tyvei2GZI-00eVfJ; Sun, 08 Dec 2024 17:55:40 +0100 Content-Language: en-US In-Reply-To: <877c8bwhd9.fsf@mail.linkov.net> X-Provags-ID: V03:K1:DJJzf1f4ged6s1PwrR2tuBfagukINjS7i5EPisbtBRZZHqFFJEK lSEZHXPqVt0MZVdc5Kftibr0qmqESrfKoGLh7mrJMgDTh4q36extTqLjMBYCwzE7i7wXR7I ESjgSXlO5e7Fu8WgLr+7Jf82g/KUpvU9SWFZWi3BgFyECdmqMuUYqxCVw9dI1vgnrEOpbSN uh6JXpHs1Ylo8Ms+V8qhg== UI-OutboundReport: notjunk:1;M01:P0:VAb1mOk399Y=;LmBFRITgvL7rXJhiImiikIHTp+R 8sa9Pq0eBkdS9ncu09EwmQyUDox7pxes9gJFfR71QdLeW01n4rQlkzk8CxnDlQ7TK3c7Sa/sz zjtrcl5Ryt4OoelBWkiKHPZ0qUcZZXqmj1d7d/43MKowXA2DZfKBEdqyCtbvdgCkywmd1xlIF 3Fn5uVNPaDDAcGrs1oSRZ28x2pC6e9G45baeiA7L9yWdJdxa59vGynVZWpssCCHLldafcl3/Z 6SFs/9HVCgsnrttgFIPKVBZC5LhfXruqRCJWa8Kd48Yip42qGVP0Nxk59vc3sgbl403NAJoWy VlMf7g99rnIDmx29iygE0iUb6res6AEOhM40LL2/yr07clnGKVSIJSC/IH/ZLc+m9F1819h4J 2SfGcU0SKSQE2sK9aC1Ay+h6vA3A4zI142fMocDS2Irb419iVAWmAcVxiJENpsJL5YQLIrVcW mF9LMDYErvwJTy5/qiRd6JhQtwggIFIbNqaz8sz/yAzgvoskaU/pz9xaQ47+5NjUkRykRWciD CnM7ByVhgFDw2yI1zUYItZSUjpKV4m2y78fFNi6F/BfDif7i5C+ak1xIVmSskHugpHDKP72mv H83Fjo2bH87SByFuPjl9Brh7fbzEQYb6S7u6E9DJFuee3f1fjt8U4H937z9Tod/LfFLe7sGRI MCIZ7ilrvaJeermAqbROkvoasTmwjmcuY1Pb4RXEJBpbI8p6v66MwDIhtCcYF58fWPOIAq5I6 JNP4CXewzRdbo3PT0DBk6Mn7AxyggiWZiDn6OrT7XImK5MNHVQvxLZ/gzDjy0UAGx7/L9kmy 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:296649 Archived-At: >> '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. > > I meant the buffer that was current at the beginning of the command: > (window-buffer (old-selected-window)). The doc-string of 'old-selected-window' says The return value is the window selected the last time window change functions were run. One and the same command may encompass an arbitrary number of redisplays (think of a command reading the minibuffer) which all may affect the return value of that function. So there is no guarantee that 'old-selected-window' will get you what you expect. martin