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: Sat, 10 Nov 2018 23:37:22 +0200 Organization: LINKOV.NET Message-ID: <87k1lkllud.fsf@mail.linkov.net> References: <87efdnsp2k.fsf@mail.linkov.net> <87ftwrgwp2.fsf@mail.linkov.net> <5BD57A8D.8080408@gmx.at> <875zxmx95h.fsf@mail.linkov.net> <5BD70F14.8080509@gmx.at> <87lg6g750v.fsf@mail.linkov.net> <5BD81D97.2000000@gmx.at> <87bm7bru1c.fsf@mail.linkov.net> <5BD963C8.9090905@gmx.at> <87h8h195ki.fsf@mail.linkov.net> <5BDAC159.1060008@gmx.at> <87muqsh11q.fsf@mail.linkov.net> <5BDC0E81.1050806@gmx.at> <87tvkwh4bp.fsf@mail.linkov.net> <5BE00F12.5000703@gmx.at> <87d0rjuq8c.fsf@mail.linkov.net> <5BE15552.4040507@gmx.at> <87y3a5rgm2.fsf@mail.linkov.net> <5BE2AF28.2020505@gmx.at> <87bm6zme24.fsf@mail.linkov.net> <5BE54FA1.2030004@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541887100 10170 195.159.176.226 (10 Nov 2018 21:58:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2018 21:58:20 +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 Sat Nov 10 22:58:16 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 1gLbGh-0002X6-SI for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Nov 2018 22:58:16 +0100 Original-Received: from localhost ([::1]:40110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLbIo-0007Sc-4z for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Nov 2018 17:00:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLbIW-0007NL-Te for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:00:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLbIR-0006Wp-UJ for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:00:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLbIR-0006Wj-QH for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLbIR-0004tj-NE for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Nov 2018 22:00:03 +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.154188715718689 (code B ref 32790); Sat, 10 Nov 2018 22:00:03 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 10 Nov 2018 21:59:17 +0000 Original-Received: from localhost ([127.0.0.1]:45108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLbHg-0004rM-CL for submit@debbugs.gnu.org; Sat, 10 Nov 2018 16:59:17 -0500 Original-Received: from palegreen.birch.relay.mailchannels.net ([23.83.209.140]:14818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLbHe-0004rD-Az for 32790@debbugs.gnu.org; Sat, 10 Nov 2018 16:59:14 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 670B6282C15; Sat, 10 Nov 2018 21:59:13 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (unknown [100.96.29.126]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 31D79282BE5; Sat, 10 Nov 2018 21:59:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sat, 10 Nov 2018 21:59:13 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cure-Tart: 3f807bc81a75b178_1541887153290_2854339760 X-MC-Loop-Signature: 1541887153290:3776824686 X-MC-Ingress-Time: 1541887153290 Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTP id 0043C8091E; Sat, 10 Nov 2018 13:59:13 -0800 (PST) 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:content-transfer-encoding; s=linkov.net; bh=9zwJVm kH6dBlLbx6G/sTrDlfZb4=; b=Rm3i1kgeb5ZCKGsFkV/h5tojYvhw8ONA/hQS89 JXKFoKPDAz6AWthvKOLrKaUloIpZ1Cl+LdpZfvJVZTCJx639hkIY/KX2NBAAvGLy hgLM6zQLdc53yYibkyef8zlkHlGQLLJbgR7LKP8QNEb8KWnkzuhBlXztXLM/J+HY FgQ6c= Original-Received: from mail.jurta.org (m91-129-107-244.cust.tele2.ee [91.129.107.244]) (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-a77.g.dreamhost.com (Postfix) with ESMTPSA id 9D43E7F44E; Sat, 10 Nov 2018 13:59:11 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a77 In-Reply-To: <5BE54FA1.2030004@gmx.at> (martin rudalics's message of "Fri, 09 Nov 2018 10:13:05 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrkeehgdduheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrvdeggeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddvgeegpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedu 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:152277 Archived-At: > Shouldn't (selected-window) be actually (minibuffer-selected-window) > in these cases anyway? Otherwise, we probably should invent two > scenarios where either of the above would be preferable so we can make > a decision. Probably you meant (or (minibuffer-selected-window) (selected-window)) >> + "Display the next buffer in the window at direction DIR. >> +Create a new window if there is no window in that direction. >> +If prefix ARG is `C-u' or `M--', restore the previously selected wind= ow. >> +With no prefix ARG, or with prefix ARG equal to zero, a displayed win= dow is >> +relative to the position of point in the selected window; otherwise i= t is >> +relative to the first edge (for positive ARG or `C-u') or the last ed= ge >> +(for negative ARG or `M--') of the selected window." > > What does "otherwise" stand for here? (I'm afraid your prefix > arguments are slowly getting over my head.) This summarizes the prefix keys where 'default' is the default window selection behavior, and 'window-noselect' restores a previously selected window: default window-noselect relative to the position of point no prefix M-0 relative to the first edge M-1 C-u relative to the last edge M-- 1 M-- But maybe also another choice 'window-select' should be added to force window selection? I mean that some commands don't select the displayed window by default, e.g. help commands like 'C-h e', 'C-h f', 'C-h v', 'C-h k' after their invocation don't select the window with the *Help* buffer. Or maybe a prefix key should invert the default behavior, e.g. 'S-M-right C-x v =3D' by default selects the displayed window, so =E2=80=98C-u S-M-right C-x v =3D=E2=80=99 will not select the window. 'S-M-right C-h e' by default doesn't select the window, so =E2=80=98C-u S-M-right C-h e=E2=80=99 will select the window.