From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16793: window-state-put needs a live window Date: Tue, 18 Feb 2014 20:04:28 +0100 Message-ID: <5303AEBC.6020509@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040306020006010305090202" X-Trace: ger.gmane.org 1392750334 2489 80.91.229.3 (18 Feb 2014 19:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2014 19:05:34 +0000 (UTC) Cc: 16793@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 18 20:05:41 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WFpzA-000347-SV for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Feb 2014 20:05:41 +0100 Original-Received: from localhost ([::1]:53277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFpzA-0008Dq-Cm for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Feb 2014 14:05:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFpyh-0007rW-22 for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 14:05:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFpyZ-0004sP-Mb for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 14:05:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFpyZ-0004sK-KN for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 14:05:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WFpyZ-0003Di-3X for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 14:05:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2014 19:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16793-submit@debbugs.gnu.org id=B16793.139275028512333 (code B ref 16793); Tue, 18 Feb 2014 19:05:03 +0000 Original-Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 19:04:45 +0000 Original-Received: from localhost ([127.0.0.1]:58883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpyH-0003Cq-4v for submit@debbugs.gnu.org; Tue, 18 Feb 2014 14:04:45 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:65170) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpyF-0003Cb-1G for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 14:04:43 -0500 Original-Received: from [62.47.59.252] ([62.47.59.252]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MgszY-1WbvCG285A-00M55X for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 20:04:36 +0100 In-Reply-To: X-Provags-ID: V03:K0:zZk2QBj6R3AJlEbg2UErsP+xiQys0E+dr52Yj0iu4aj2tl7w+F4 lME2DKDhTr94+jYq9NksAQgAuktBc9SBE3GQ9lC+pZwL6Avzc0fXbwQLzzoQ2qGgC2MbMtT mVaxQhpmj+jr+tT9ZaSFDAxihggbFq7ULnkM3fMIdN05sH7aUN7gLpJqBPvAaFLwsybQ70q /s8qhTkVS+3Grrp1+eAtw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85857 Archived-At: This is a multi-part message in MIME format. --------------040306020006010305090202 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > But I still think that getting a window-state for a window and putting > it again into the same window should always be allowed, unless Martin > has a good reason why that symmetry is a bad idea. I tend to agree with you. But the obvious consequence is that the WINDOW argument of `window-state-put' could then specify an internal window that is not the root window of its frame. In this case plain `delete-other-windows' would be the wrong action. I attach a patch. martin --------------040306020006010305090202 Content-Type: text/plain; name="window-state-put.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="window-state-put.diff" PT09IG1vZGlmaWVkIGZpbGUgJ2xpc3Avd2luZG93LmVsJw0KLS0tIGxpc3Avd2luZG93LmVs CTIwMTQtMDItMTAgMDE6MzQ6MjIgKzAwMDANCisrKyBsaXNwL3dpbmRvdy5lbAkyMDE0LTAy LTE4IDE4OjU5OjE3ICswMDAwDQpAQCAtNTAyNiwxNCArNTAyNiwyOSBAQA0KICAgIlB1dCB3 aW5kb3cgc3RhdGUgU1RBVEUgaW50byBXSU5ET1cuDQogU1RBVEUgc2hvdWxkIGJlIHRoZSBz dGF0ZSBvZiBhIHdpbmRvdyByZXR1cm5lZCBieSBhbiBlYXJsaWVyDQogaW52b2NhdGlvbiBv ZiBgd2luZG93LXN0YXRlLWdldCcuICBPcHRpb25hbCBhcmd1bWVudCBXSU5ET1cgbXVzdA0K LXNwZWNpZnkgYSBsaXZ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0KKwkJCSAgKHdoZW4gKHdpbmRvdy1saXZlLXAgd2luZG93KSkpDQor CQkJcm9vdCkpKSkNCisgICAgICAoZGVsZXRlLW90aGVyLXdpbmRvd3MtaW50ZXJuYWwgd2lu ZG93IHJvb3QpKSkNCisNCiAgIChsZXQqICgoZnJhbWUgKHdpbmRvdy1mcmFtZSB3aW5kb3cp KQ0KIAkgKGhlYWQgKGNhciBzdGF0ZSkpDQogCSA7OyBXZSBjaGVjayBoZXJlICgxKSB3aGV0 aGVyIHRoZSB0b3RhbCBzaXplcyBvZiByb290IHdpbmRvdyBvZg0KDQoNCg== --------------040306020006010305090202--