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#32850: 27.0.50; window-swap-states doesn't swap window prev/next-buffers Date: Tue, 09 Oct 2018 09:44:33 +0200 Message-ID: <5BBC5C61.4090901@gmx.at> References: <875zyrrhk8.fsf@mail.linkov.net> <5BAD2538.1060609@gmx.at> <871s9e1syw.fsf@mail.linkov.net> <5BB082A6.6040709@gmx.at> <87o9cepxfv.fsf@mail.linkov.net> <5BB1DC5D.2070903@gmx.at> <87ftxgqcx0.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 1539070989 2102 195.159.176.226 (9 Oct 2018 07:43:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2018 07:43:09 +0000 (UTC) Cc: 32850@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 09 09:43:05 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 1g9mfY-0000Q8-ER for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Oct 2018 09:43:04 +0200 Original-Received: from localhost ([::1]:50044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9mhe-0008VV-Ti for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Oct 2018 03:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9mhU-0008Tw-8O for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 03:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9mhT-0007ZU-By for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 03:45:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36886) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9mhT-0007ZO-7v for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 03:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g9mhT-0000jQ-5R for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 03:45:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Oct 2018 07:45:03 +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.15390710882748 (code B ref 32850); Tue, 09 Oct 2018 07:45:03 +0000 Original-Received: (at 32850) by debbugs.gnu.org; 9 Oct 2018 07:44:48 +0000 Original-Received: from localhost ([127.0.0.1]:41139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9mhE-0000iG-1A for submit@debbugs.gnu.org; Tue, 09 Oct 2018 03:44:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:46605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9mhC-0000i4-Sc for 32850@debbugs.gnu.org; Tue, 09 Oct 2018 03:44:47 -0400 Original-Received: from [192.168.1.101] ([46.125.250.96]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LcmN9-1fRgQr3xSB-00k70n; Tue, 09 Oct 2018 09:44:39 +0200 Original-Received: from [192.168.1.101] ([46.125.250.96]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LcmN9-1fRgQr3xSB-00k70n; Tue, 09 Oct 2018 09:44:39 +0200 In-Reply-To: <87ftxgqcx0.fsf@mail.linkov.net> X-Provags-ID: V03:K1:Ei7PD5l0fYOXRn8tYfu2KmDdqt7na8NJzNH+/+PSRU7udi6KuNM yZYhiWQaENUtQVG9pcHYx7I6baFg/fraxUB2SKU+bTVe+MHRpdzcMKSO8kORaj0cBJhj+l7 c99zc2o9MWLJSa7FdXRNKOoos0lTTvcA5UEQ/9efgoFeS8wJVIsD9g2Ch1aVbrzoFtfxtqp DYOqflbcDDCvq8zcqM6Uw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Fu+wpK8Vrg0=:IYkmW6RSDaShyJgoQT9HxJ 9e4Yw292aPOAJm+sHUIYvVSLB0+YbbO3BA9zAeZ7Gha+EDLquNF9FA8YjJQRuQpghyNt5Azl7 rvHzv7eHsVOLzOEpvBed/OP8dxcvn/mryYdC90o0ZfpKU2/eH1cPJ9Y2Bv2LGqte2ooR1tQYl Zb6YVRHnL26uX395F+Cxw0bhbc4OFr8Ir8n4KgoDat352P972aRmS4ziDdd+HkshwxIaEDe3M gSkKR7MbBHO1GvG5ifs2vl1/fGKsvNGjIl9ZNngdxwWQXhSwdxKYxSpoPZQGj1P/wPf9YGys4 7JSPEmgKCvozaj8+6vFSPLNDUhyw/zqPnaH21aAtK1HPg3J3KnTUwQ/2LS2yOxa1hc9lDsi/1 RF7ke2UPxZgQfYFt+SY+aJ8UzG0Mz2FKgnenTaacf59VFzDn85LybYOdQxPT2LROp3In+CF/X tsIll/b/r/gi4J4DQkZHH7nvCoekAFnrB0uEpN1v6h0uaMbdqtiTuhOHDLFTBVuJUC60POmCG ilIXgHvPCILJfqHGvZ777Jgt/t+Xvrton8FctLD4JrdUx57Gd6uJ3XJ5C284zg+hBVzL51Bof 4HGqQSUKMDR87ahyEw9ILG0RBDa20B9t6NorjF5FfmJm2vBzJsM58FuneCWUmMkEHKdAhwRK6 DUwTJ3dPMuwl/i/o+xYmC1uv+LKMYbDh8zEoGvLoH4RVYhfPi/EjPg0mtTddvXNj5ufvwyW5/ lEkQFKOIUDq2f6UQtTZF1cxk0FizECxJucKakE3t1en0d9BxhU3JPfbo1xkqDdgAICxFovbb 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:151038 Archived-At: > The root of the problem is not in window-swap-states, it's in > window-state-get that it it relies upon. For a long time I have > been using a package that keeps a list of window-configurations > and switches between them in the same frame. But the problem > is that we have no serialization for window-configurations, so > no way to save in the desktop file and restore in another session. > > With the invention of window-state-get I tried to replace all calls > of current-window-configuration with window-state-get (and > set-window-configuration with window-state-put), and it worked > perfectly (saved and restored serialized window-configurations > in the desktop file), but still the problem that prevents its use > is that it doesn't store prev/next-buffers that is a very important > feature. Please provide a patch that makes the behavior you want optional. I could try to come up with a patch myself but since you already have coded such a thing why duplicate the efforts? IIUC we also have to decide whether and how to expand your code to desktop saving and how to handle buffers that got killed in between saving and restoring. Later we can decide whether to install it as default. Thanks, martin