From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32790: 27.0.50; point jumps unexpectedly after delete-window Date: Sun, 23 Sep 2018 10:27:33 +0200 Message-ID: <5BA74E75.8000405@gmx.at> References: <87efdnsp2k.fsf@mail.linkov.net> <5BA490EA.4000502@gmx.at> <87bm8pxjcb.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1537691636 24805 195.159.176.226 (23 Sep 2018 08:33:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2018 08:33:56 +0000 (UTC) Cc: 32790@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 23 10:33:52 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3zps-0006Iz-RT for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2018 10:33:48 +0200 Original-Received: from localhost ([::1]:39801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3zrz-0006WF-Ci for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2018 04:35:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3zrm-0006GO-9F for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2018 04:35:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3zkI-0004Q8-7w for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2018 04:28:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3zkI-0004Q3-45 for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2018 04:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g3zkI-0000bz-0S for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2018 04:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Sep 2018 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32790 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32790-submit@debbugs.gnu.org id=B32790.15376912682325 (code B ref 32790); Sun, 23 Sep 2018 08:28:01 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 23 Sep 2018 08:27:48 +0000 Original-Received: from localhost ([127.0.0.1]:50284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3zk4-0000bR-1i for submit@debbugs.gnu.org; Sun, 23 Sep 2018 04:27:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:35765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3zk2-0000bD-8p for 32790@debbugs.gnu.org; Sun, 23 Sep 2018 04:27:46 -0400 Original-Received: from [192.168.1.101] ([212.95.5.115]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M9b03-1fvUTn3LSh-00Cxvr; Sun, 23 Sep 2018 10:27:36 +0200 In-Reply-To: <87bm8pxjcb.fsf@mail.linkov.net> X-Provags-ID: V03:K1:DyMOQaBdEdQ5i8V7DioJCkr5R24PjVy6ddWSgi65zbc8j5FGzbx 7bXxYGHugAef5xo/YCCYZrfTV0QY+/j95nN42A1Xeezoz3tzAUhObMVkdfc8OeC7Y/5Jmjl gqVJWAAtuDq4ffkkmlz6hNJvNrhxKt3bM66T6HjKqwoORFyMuds+RGdwBZn++Q78eco2NLX b94tjjNu5/AXchON+bw9w== X-UI-Out-Filterresults: notjunk:1;V01:K0:XHquWZHZWbU=:8C0mqXchd8krKRByEgeAv+ 0Pyq9FyxbK/lq6otirTz/sljXjpm8K3o4xvSPQ1EAqo6TCuqA+mlvAk9QtWNZX5GIbQIAtNfu bsVQzBcSxSPZh2rZBlHbQ6uF0AB8ubgxn2IRcvYUP3wP8eduLpEfONkMOqm9FYAkiboS5h3Mk TR9SOYJE0y7KfasBQwyy7h2j+90RcPAM1pYaT6olsX9oS6tgzNL1bH5VPQI2gNNz8TNKIY40x QTRWgG4ztui+WIzH3R37v2uX9pExo/jWV5vd3B7e5dKeWlcA+wLZSwZBLf4/EU9AhMQqy0WtK llBc//Wi/OKa7u4cnQI3rzjmhf3t+wVrob3gHy5cNmviqFpQmYBRDj26Eerzkj2eZbVws4I18 yF1kuj7sflXod2XakDrUok35NCuoABjtO/HQCQnzUUHEhj3dbKO1Oliqe8WC9RBPs1djAUQyH rr1FrPmUZ+r+J30Hw023Tey2Mc7YQrD1yMLO49yYCz1wxEdnOVK/xgitO98GOOkmbkUMJhQ+b 6KVk8O5aPmVjiaRIQT8XVuMla7vhLC3s2DDhzzjD2VXyAN4vUjHoRSzpZ8K5uQb4GWndwKJbQ fQgg7n53ZYXtUAu7p+V29iQkmZPJ+cShuOI7bygLrgLqr+nZfjRcVlT10sV0G3Mv2CoWda/z3 8Z5nOo1guCI3oOmyIQo25O5p5rU5wpUZvfDmoG0k9+Qt7tBSyZhG737kR+c9qWP2MSLb/bIhl CmUN6FS68PH4jaD0pZo7BaKuljwNnjtJxNkfvP6rMYrND8E8JFGUaVyBJwjkKKgnP37eZfv5 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: 208.118.235.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:150567 Archived-At: > I believe Emacs could try to select the window that takes screen space > of the deleted window. By default Emacs tries to select the most recently used window. Only if that fails, it uses the first live window on the frame as fallback. > I wonder is it possible to define a simple rule in terms of the > window tree, e.g. maybe it is the parent window of the deleted window > that should be selected? A parent window is internal and cannot be selected. You probably mean one of the former siblings of the deleted window. If we did that, we should make it customizable somehow. > Or it's not guaranteed that the parent > window takes the screen space of the deleted subwindow in the same > window combination? When the window to be deleted has only one sibling, then that sibling will get the space of the deleted window. If that sibling is a parent window, all its children will get the space proportionally. Otherwise, when the window do be deleted has a left sibling, that one will usualy get the space for historical reasons. If the window has no left sibling, the right one gets the space. In either cae, if 'window-combination-resize' is non-nil, all windows in the same combination may get the space proportionally. martin