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#32850: 27.0.50; window-swap-states doesn't swap window prev/next-buffers Date: Fri, 28 Sep 2018 01:52:15 +0300 Organization: LINKOV.NET Message-ID: <871s9e1syw.fsf@mail.linkov.net> References: <875zyrrhk8.fsf@mail.linkov.net> <5BAD2538.1060609@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538089875 11807 195.159.176.226 (27 Sep 2018 23:11:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2018 23:11:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 32850@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 01:11:11 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 1g5fR8-0002zB-Nf for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 01:11:10 +0200 Original-Received: from localhost ([::1]:40233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5fTF-0001iy-2b for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Sep 2018 19:13:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5fT1-0001hI-KJ for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2018 19:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5fT0-0007oR-GF for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2018 19:13:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5fSw-0007mP-HR for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2018 19:13:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g5fSw-0006YI-BJ for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2018 19:13: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 23:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32850 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32850-submit@debbugs.gnu.org id=B32850.153808992525101 (code B ref 32850); Thu, 27 Sep 2018 23:13:02 +0000 Original-Received: (at 32850) by debbugs.gnu.org; 27 Sep 2018 23:12:05 +0000 Original-Received: from localhost ([127.0.0.1]:57061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5fS1-0006Wn-Ae for submit@debbugs.gnu.org; Thu, 27 Sep 2018 19:12:05 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:38424 helo=pdx1-sub0-mail-a9.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5fS0-0006We-1W for 32850@debbugs.gnu.org; Thu, 27 Sep 2018 19:12:04 -0400 Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTP id 7F46480B75; Thu, 27 Sep 2018 16:12:02 -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=oe8iouSdgBJwAQ4+b3Z7kLQwovc=; b= wjVcY8iC+EVr3q36FPmMWzA5nWPbuCvxnUWh51P5AG+9Z3myTBadeR7k5nXTEd4B pkDD6Zc3yIaeK438Rh371Oc4xE2lVnJ20dCEeM/u7s3k0NJeOcqVDAdpyxQeIAcE FFHh+adPC/oFQI4hbiUt2YUelqiPo29+5Qq1ZTAOS58= Original-Received: from localhost.linkov.net (m91-129-107-184.cust.tele2.ee [91.129.107.184]) (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-a9.g.dreamhost.com (Postfix) with ESMTPSA id 87E8B7E426; Thu, 27 Sep 2018 16:12:01 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a9 X-DH-BACKEND: pdx1-sub0-mail-a9 In-Reply-To: <5BAD2538.1060609@gmx.at> (martin rudalics's message of "Thu, 27 Sep 2018 20:45:12 +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:150727 Archived-At: >> I see that window-swap-states breaks the order of window buffers >> for 'C-x ' (previous-buffer) and 'C-x ' (next-buffer) >> because it doesn't swap window-prev-buffers and window-next-buffers. >> >> Shouldn't window-swap-states also swap prev/next buffers? > > So you want to change the course of history. Could you provide some > rationale for such a change? Actually not to change the course of history, but keep it together with its window, or rather an imaginary window - when using window-swap-states, it looks like windows are swapped: since window's buffer is moved to a new location, the feeling is that the whole window is moved to a new place, because what defines a window is its state more than a location on the screen, so to not break the history of buffers in the window, prev/next buffers should be swapped as well, to keep the chain of buffers: prev-buffers - current buffer - next-buffer, so 'C-x ' (previous-buffer) and 'C-x ' (next-buffer) will navigate in the preserved history in the same order it navigated in the old window location.