From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#36161: 27.0.50; display-buffer-in-previous-window might choose not to use PREVIOUS-WINDOW Date: Sun, 16 Jun 2019 03:47:42 +0300 Message-ID: <1bf87542-fc41-98ab-c4b4-3dd0074573c1@yandex.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186652"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 To: martin rudalics , 36161@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 02:48:24 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 1hcJLK-000mKX-QA for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 02:48:22 +0200 Original-Received: from localhost ([::1]:37130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcJLJ-0005p8-9B for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2019 20:48:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50174) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcJL5-0005oy-VH for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:48:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcJL3-00056w-FI for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:48:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcJL0-00052a-Ev for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcJL0-00039t-B1 for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 20:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 00:48:02 +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.156064607212118 (code B ref 36161); Sun, 16 Jun 2019 00:48:02 +0000 Original-Received: (at 36161) by debbugs.gnu.org; 16 Jun 2019 00:47:52 +0000 Original-Received: from localhost ([127.0.0.1]:39446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcJKq-00039O-GG for submit@debbugs.gnu.org; Sat, 15 Jun 2019 20:47:52 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:53687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcJKo-000399-Iz for 36161@debbugs.gnu.org; Sat, 15 Jun 2019 20:47:51 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id x15so5807150wmj.3 for <36161@debbugs.gnu.org>; Sat, 15 Jun 2019 17:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dRwDqClJ1rBFWP11QF55jA+3zPnO7c4A4pglGI/9iD8=; b=p+MPaqrERo3YUbqf+W5cJuN4NZPxmUsZ2OSaYtOkdA0voaiUPexRu21e/N7m2TnOZZ h8G6+ebgwxIGIulyX2AzK0E6/9plxZ6erp8P3fTmzkY8xudCzf5v12OXDeNT5JyFQIaP 9OTmbPt/gR1FvcSIvHy5F26PSMhH0h83nSS10L2dmgII59gKboZ4nw1GgqmHivUd5A1q FnXuF8Grz1+BN5Aes38VGjuLEylO5ZASMGiA/VdBd7RkHNM+RSGdoenXz1vVDMRd1cDs /naI4vb76OxCmJZH9czOd45COov28hOygFl11gPlEP2UOcO/kPPB2GeGJYao6cAyGZ16 MJ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dRwDqClJ1rBFWP11QF55jA+3zPnO7c4A4pglGI/9iD8=; b=LzAX5Ly4WGpV/aTHip1yk1ZMg85Vs4wGSYtPlJ7Y5/YI2te7wI9qXtxDsARL44pj+o GKPdUAUPIJOQuj8E1JhwwCJfDj92eE3OcyMkdW32kbfy7i0XiAAqR2aeILggOFTwWdEs Ah4oDOv1loAOVx03DrJn0pppaQlFjx2XyyKgZq3VRlvj5ZHAR+9tNjEly+rAYKWW7gEn sj1RICAnP47do5EgIdRqHT4mp2GR9vYv8T+Six+qStbTWpNlLeoT6bJSR5HoCrqdnOM7 NCcLQ9UGwjDv0LHrQhtVpuXUOlxsTZp9o2zg97LvI6H0/dLr+FcYSS/Rjwif+wOOQEmS Hn3Q== X-Gm-Message-State: APjAAAU09KJh3dmGhxwF08y0FQ/Cp6zlygNH8uPA5YAPr+gfDOJ0uevn GATvY5KfqFUya5IZSygnuUnHVwd/phY= X-Google-Smtp-Source: APXvYqzFsoQ3It0c2/L3Ie4T7tY1GCSB7meXdayevf6AN4i8n2ssDE0HcFolpKbf4m7c8JEA04cR9A== X-Received: by 2002:a1c:f918:: with SMTP id x24mr6940057wmh.132.1560646064480; Sat, 15 Jun 2019 17:47:44 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id v24sm5691894wmj.26.2019.06.15.17.47.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jun 2019 17:47:43 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:160643 Archived-At: On 13.06.2019 11:43, martin rudalics wrote: > Hence it's more suitable for buffers popping up in special occasions > (like, for example, when a bug occurred and the debugger should be > entered) and less suitable for buffer editing. I have also noticed it's not always good for special buffers either, e.g. if I run xref-find-definitions, press q, and run it again, different windows will be used for the two times. > A 'previous-window' ALIST entry should continue to support the > principle of least surprise by allowing to choose a non-selected > window that never showed the buffer before.  The selected window, > however, should be always either chosen or excluded from choice by > special means - either via 'display-buffer-same-window' or using an > 'inhibit-same-window' entry. 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.