From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#47300: delete-window to select window with same position Date: Tue, 18 May 2021 23:17:37 +0300 Organization: LINKOV.NET Message-ID: <87fsyk0w92.fsf@mail.linkov.net> References: <87a6qw43gg.fsf@mail.linkov.net> <87pmxodrmq.fsf@gnus.org> <7f870f9b-95ad-6b5d-82aa-1bcfe5cc880a@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38559"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 47300@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 22:37:41 2021 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 1lj6TE-0009py-V2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 22:37:40 +0200 Original-Received: from localhost ([::1]:44790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj6TD-0001mZ-TU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 16:37:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj6Ju-00039J-Ka for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 16:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj6Ju-0007gE-Cy for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 16:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lj6Ju-0000NB-9w for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 16:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2021 20:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47300-submit@debbugs.gnu.org id=B47300.16213696511376 (code B ref 47300); Tue, 18 May 2021 20:28:02 +0000 Original-Received: (at 47300) by debbugs.gnu.org; 18 May 2021 20:27:31 +0000 Original-Received: from localhost ([127.0.0.1]:57403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj6JP-0000M8-Ie for submit@debbugs.gnu.org; Tue, 18 May 2021 16:27:31 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:57291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj6JN-0000Lh-5P for 47300@debbugs.gnu.org; Tue, 18 May 2021 16:27:30 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 77B6DFF802; Tue, 18 May 2021 20:27:20 +0000 (UTC) In-Reply-To: <7f870f9b-95ad-6b5d-82aa-1bcfe5cc880a@gmx.at> (martin rudalics's message of "Tue, 18 May 2021 18:00:40 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:206839 Archived-At: > By design it's the most recently used window (`get-mru-window') on the > same frame after the deleted window has been removed from its window > tree. I can't find where `get-mru-window' is called during window deletion. > Personally I don't care but people used to the current behavior might > get confused. So an option should be the provided and could be "ON" by > default. Maybe a new option e.g. `delete-window-select' with type not boolean, but a predicate with the default value `get-mru-window', and another choice `delete-window-select-underlying' to select the "merged" window.