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: Mon, 24 Sep 2018 21:53:04 +0300 Organization: LINKOV.NET Message-ID: <87tvmeaikf.fsf@mail.linkov.net> References: <87efdnsp2k.fsf@mail.linkov.net> <83zhwbcpau.fsf@gnu.org> <87mus9upoc.fsf@mail.linkov.net> <83y3bsbhyx.fsf@gnu.org> <878t3srn5q.fsf@mail.linkov.net> <5BA89F0F.7000904@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537816430 7378 195.159.176.226 (24 Sep 2018 19:13:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 19:13:50 +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 Mon Sep 24 21:13:46 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 1g4WIj-0001oe-A5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 21:13:45 +0200 Original-Received: from localhost ([::1]:46609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4WKp-000784-Qj for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 15:15:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4WK2-0006c8-8X for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4WK1-0000ku-Hn for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:15:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48103) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4WK1-0000ki-Cm for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:15:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4WK1-0005Xz-70 for bug-gnu-emacs@gnu.org; Mon, 24 Sep 2018 15:15:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Sep 2018 19:15:05 +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.153781646821177 (code B ref 32790); Mon, 24 Sep 2018 19:15:05 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 24 Sep 2018 19:14:28 +0000 Original-Received: from localhost ([127.0.0.1]:52348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4WJQ-0005VV-BV for submit@debbugs.gnu.org; Mon, 24 Sep 2018 15:14:28 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:38722 helo=pdx1-sub0-mail-a31.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4WJN-0005VN-SK for 32790@debbugs.gnu.org; Mon, 24 Sep 2018 15:14:26 -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 2A9997F71F; Mon, 24 Sep 2018 12:14:25 -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=/7eiMudUdHOWHtDGOrzT0iyUmkY=; b= O35BCZFqnG02TW7Kz5OFzrAmdDmD0vRuhetdRWsjnMmXFQpkDFG7N+oEQjlXsalB csWV27QI+s2KtjGQzPVMIqopxCWtVQiCfpntmakkIpw8DraN9I71NvA/Ssrd5MEU ST+1DtS+gO7CCSkgxsfGS5jDT/fro2MucGvRRixZA2o= 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 E3E7F7F6EC; Mon, 24 Sep 2018 12:14:23 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a31 X-DH-BACKEND: pdx1-sub0-mail-a31 In-Reply-To: <5BA89F0F.7000904@gmx.at> (martin rudalics's message of "Mon, 24 Sep 2018 10:23:43 +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:150617 Archived-At: >> Now I understand that it jumps to the most recently selected window, >> but this logic is not obvious. Then why not to the most recently >> displayed window? > > The idea to automatically select a window that has never been selected > before is not overly intuitive IMHO. OTOH, the fact that the user not yet used that window could mean that it's time to use it now, i.e. not less intuitive. > The most recently displayed window might be the window that gets > deleted and so we would have to either modify the semantics of > 'window-use-time' (to optionally include the case that the window has > been created without being selected) or add a new slot to the window > structure and have 'delete-window' act accordingly if set. Like we have buffer-display-time, maybe window-display-time is also needed in addition to window-use-time.