From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32790: 27.0.50; point jumps unexpectedly after delete-window Date: Thu, 27 Sep 2018 02:05:17 +0300 Organization: LINKOV.NET Message-ID: <87h8ibvrs2.fsf@mail.linkov.net> References: <87efdnsp2k.fsf@mail.linkov.net> <5BA490EA.4000502@gmx.at> <87bm8pxjcb.fsf@mail.linkov.net> <5BA74E75.8000405@gmx.at> <87zhw8nd8g.fsf@mail.linkov.net> <5BA8A143.9040604@gmx.at> <87sh1ybyo6.fsf@mail.linkov.net> <5BA9E390.8030506@gmx.at> <87pnx1h1op.fsf@mail.linkov.net> <5BAB489E.5090002@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538006594 30943 195.159.176.226 (27 Sep 2018 00:03:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2018 00:03:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 32790@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 27 02:03:10 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 1g5Jlt-0007vg-LF for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Sep 2018 02:03:09 +0200 Original-Received: from localhost ([::1]:33037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5Jnz-0006TF-Qc for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Sep 2018 20:05:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5Jnr-0006TA-Kz for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 20:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5Jnl-0004NI-PP for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 20:05:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5Jni-0004M4-IJ for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 20:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g5Jnh-0005nm-Ry for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 20:05: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: Thu, 27 Sep 2018 00:05: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.153800669822284 (code B ref 32790); Thu, 27 Sep 2018 00:05:01 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 27 Sep 2018 00:04:58 +0000 Original-Received: from localhost ([127.0.0.1]:55772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5Jnd-0005nL-MS for submit@debbugs.gnu.org; Wed, 26 Sep 2018 20:04:57 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:46232 helo=pdx1-sub0-mail-a31.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5Jnb-0005nD-6R for 32790@debbugs.gnu.org; Wed, 26 Sep 2018 20:04:55 -0400 Original-Received: from pdx1-sub0-mail-a31.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a31.g.dreamhost.com (Postfix) with ESMTP id 608AA7F977; Wed, 26 Sep 2018 17:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=gNI28R8ob+kk1lD0HrBJc5rkJkc=; b= zX4ahcZLOD1EJkRk+4PS2j6IBVoPbLG6ZdI+MqkdRifUFtBnn2gIkM/JBVRiXcuP 5l5WxDY+g9WtvlffRT8RQVFg6NGy83Hkk6xFieLI9QUKjN9GAKct6Uq2JZwDYgiY bhus8h3xvJvCY0ZhV9SW8+seIOPH1y7JEU7sIXB4+wQ= Original-Received: from localhost.linkov.net (m91-129-111-128.cust.tele2.ee [91.129.111.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a31.g.dreamhost.com (Postfix) with ESMTPSA id 889B97F29D; Wed, 26 Sep 2018 17:04:51 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a31 X-DH-BACKEND: pdx1-sub0-mail-a31 In-Reply-To: <5BAB489E.5090002@gmx.at> (martin rudalics's message of "Wed, 26 Sep 2018 10:51:42 +0200") 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:150691 Archived-At: > Make a complete list with the desired names, please. I think we need exactly the same customization as we created for compare-windows-get-window-function, but instead of finding a window to compare, we need to find a window to select after deleting the selected window. (defcustom compare-windows-get-window-function 'compare-windows-get-recent-window "Function that provides the window to compare with." :type '(choice (function-item :tag "Most recently used window" compare-windows-get-recent-window) (function-item :tag "Next window" compare-windows-get-next-window) (function :tag "Your function")) :group 'compare-windows :version "25.1") I suppose that for the option "Next window" the window next to the deleted window is its sibling that will get its space after deletion, right? >> If the values are 'sibling, 'mru, and possibly a user-defined function, >> then a suitable name could be say, after-delete-window-select, or if this >> name looks like a hook name, then simply delete-window-select. > > Let's reconsider after you made the list with the value names ("sibling" > is probably too internal, IIRC even you used "parent" instead). Regarding the name, what about select-window-after-delete-function?