From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#36161: 27.0.50; display-buffer-in-previous-window might choose not to use PREVIOUS-WINDOW Date: Wed, 19 Jun 2019 11:15:13 +0200 Message-ID: <45889b62-ccc6-c9ae-bb56-68124973dc0e@gmx.at> References: <4f4fc867-7b6c-161f-68e9-6f5516e8b580@yandex.ru> <78fc4891-dffb-e828-baca-118a5a300c9a@gmx.at> <1f4197c2-05b0-7ab6-41be-605eaf918200@yandex.ru> <3415bbc7-54fd-111e-a18b-0a927d93a7b2@yandex.ru> <1bf87542-fc41-98ab-c4b4-3dd0074573c1@yandex.ru> <85473004-8bbb-56ef-967e-0d3f8acf79ae@gmx.at> <3bf7a2d5-128e-724b-694e-908366915d3f@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114692"; mail-complaints-to="usenet@blaine.gmane.org" To: Dmitry Gutov , 36161@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 11:23:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdWoQ-000ThY-Co for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 11:23:26 +0200 Original-Received: from localhost ([::1]:36080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdWoP-0008Bm-BY for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 05:23:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34281) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdWm7-0005JG-5n for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdWm6-0008EC-5S for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdWm5-0008CS-SF for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hdWm5-0003As-LC for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jun 2019 09:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36161 X-GNU-PR-Package: emacs Original-Received: via spool by 36161-submit@debbugs.gnu.org id=B36161.156093602912152 (code B ref 36161); Wed, 19 Jun 2019 09:21:01 +0000 Original-Received: (at 36161) by debbugs.gnu.org; 19 Jun 2019 09:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:46020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdWlY-00039w-Ox for submit@debbugs.gnu.org; Wed, 19 Jun 2019 05:20:29 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:38449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdWlW-00039h-8h for 36161@debbugs.gnu.org; Wed, 19 Jun 2019 05:20:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560936020; bh=89gqdoOoReJoEIqfzWnXLS8Hq2w2CO1euaePsk8oFt0=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=UNgJa8dQZTYmPlRt8dvimDvnjb+2QhfoMgQ1PoRUcaA/lNq/CzLXHSP8fZeQjM4Fz NF1Hcxhdrzpo71n7RB/U9K2O3G9as2YJAphS3ms9Nah3XteKeDlNwhrjSaMlKHXY43 JIvMZpwG/zErUk9FQdJvpQ5ECwfjp09GTPJ8TMLQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.75]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MTRQq-1i2i0C36tQ-00Tmhf; Wed, 19 Jun 2019 11:15:12 +0200 In-Reply-To: <3bf7a2d5-128e-724b-694e-908366915d3f@yandex.ru> Content-Language: de-DE X-Provags-ID: V03:K1:r8KOuu9uWHWKlQA/OI/bqAY1HweAxvsW4odTuVxpDJVxdX4IHbk forFhVb+4YkrrDjY4DEkVL5pIjk6GJI/ICC55i37m2/15g54+jkWzJhSRG5vciPtjHUinBC sIJ6QDFO9fEh7zfU8WwYZIIfzVb3Z3JnTKyk6j0hLQOx1MeTOx1/rBL6/+uE118vZXFceyh ufghacKpsxd7yhOCJjUIw== X-UI-Out-Filterresults: notjunk:1;V03:K0:PiljjFoaP3w=:CDYzeL7zBFyAjiPk4E2x7N bf1eIOhzUEvQ0X353hVdoYkP25pXcWZWssn/SfmHQy78+VBdkghPz57zIdpGrBrsPoAmAJTvt dnTbGHVlNCQawq7R55bUk+Bh7bfyaRUwn5eC0iVfAjbJN/swmdYP9rq/j7yiE6HFBFSJNLTp1 FeA46fJQ/FaOH0iJpuyb8o4BzKK5zVUiItFQC/C+CuUc9g9OTT2r0JXmOCn3QvVukSMp/aJ2q MkO6iILbVpEQfICAOvWkJgCtMASzK7gHWoKBRNGQfzdrT3nwAOhIjYxMRxtzEPKG0oM1HgaBN 6h77suRqk8NqLOp/gejXEtngHqItK+mAY18u+96HJ3p0qL/Inw5uyOaZ3gBWnTuTT2xHWbCzc T/vGqIebKnluaCGRSg/7aMEaHsVzGQ3L+miRAO0DeDk1nhsqchWKQmfpKYne55gTm6L1W1f/2 BKCJsacRQILbC5E/7uZDigApnC8jRbfDby5tpBo+nbFdecbw8/Y8EGgE+GzJY7eq/lmzMRf/3 NlzQC19zYjsnEL+xJ5R5viMNqIcY/zh2dVuqoPshuJyJ0N9wSqmFO8U6KMOKq/k+xph9Xl9Tn VT1z4L9WftWdAWiweGLqXKyeR8bknXM52FeuhB0bAQzx7HpGWtJR5WJ9Rb+8Niocb19ru4LYh 8DZG0ECCOrNLOoRy7n/3VdoiejmouDPXZzf64pSRq4NEJe12TqFlJfmcPAC675+l+owX4R1Vu LHrNafZZq/MpOuaqSQHYc2dGU1oY91qicVTA2Z9vE7S6S3nvlrQJ8hDO+YWG6S7GiVuyPaLu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160833 Archived-At: > OK, let's try again. The recipe is: > > 1. emacs -Q > 2. Split the frame into 4 windows, so that new display-buffer calls don't pop any new windows. > 3. Select the top-left window (for instance). > 4. Call M-x project-find-regexp, input "Xref", press RET. The result is an *xref* buffer shown in one of the windows. > 5. Press q. > 6. Try 4. again. > 7. Repeat 5,6 as many times as you like. The *xref* buffer will be displayed in all three available windows in turn. Sorry, step 4 does not work here so I cannot try that. The behavior you see might be caused by the rotation of windows in 'window-list-1'. But also some other buffer display action might be responsible. So the first question is whether you are sure that the window is produced by 'display-buffer-in-previous-window' in all these cases. >> > So about that main use case (the Debugger), can it just exclude the selected window using inhibit-same-window? That would obviate the need for special logic in this case. >> >> An 'inhibit-same-window' entry is the canonical way to "exclude" the >> selected window. A 'previous-window' entry is just a hint to "prefer" >> some other window. > > I'm not sure if you're trying to say "no" in response to my question. But if so, I suppose this bug report can be closed (and we can conclude that this function is definitely not suitable for xref). Thanks for updating the docstring. I've been trying to say "yes" to the question "can it just exclude the selected window using inhibit-same-window". martin