From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#16793: window-state-put needs a live window Date: Tue, 18 Feb 2014 22:18:22 +0100 Message-ID: References: <5303AEBC.6020509@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1392758411 5118 80.91.229.3 (18 Feb 2014 21:20:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2014 21:20:11 +0000 (UTC) Cc: 16793@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 18 22:20:16 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 1WFs5P-0001Ub-Vr for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Feb 2014 22:20:16 +0100 Original-Received: from localhost ([::1]:54095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFs5P-0007gT-9F for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Feb 2014 16:20:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFs5H-0007fB-RE for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 16:20:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFs5D-0006km-2c for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 16:20:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFs5C-0006kb-WD for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 16:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WFs5C-0008Oh-Cb for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 16:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2014 21:20:02 +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.139275835332215 (code B ref 16793); Tue, 18 Feb 2014 21:20:02 +0000 Original-Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 21:19:13 +0000 Original-Received: from localhost ([127.0.0.1]:58998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFs4O-0008NV-F8 for submit@debbugs.gnu.org; Tue, 18 Feb 2014 16:19:12 -0500 Original-Received: from mail-yk0-f169.google.com ([209.85.160.169]:51087) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFs4L-0008N8-Cm for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 16:19:10 -0500 Original-Received: by mail-yk0-f169.google.com with SMTP id 142so34885663ykq.0 for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 13:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=S2VpUsWBkafBZgOfLStyRThVMIacwY/9TPo6YvjhHEU=; b=bE/itRIkejGLB9KFMDwbk7hFtuBRSAi1pMQ188UkzXk/ucrOMuybXkOJMn7B02s1ob DXcgpZZ04usxPrc2pXFPS5gzPD0tErdNHuXYACInyeEDGzDe+/HQ74/av4W/8kEw6aFY s1qSTQ7AdOyerNCCllgaP6E+P+B0aHuG3y1DDhmyHLwUIEnrbicsA3rfneSZgfDqgxaV DZ8wVDhhKUDbAqS7/L4VPcuguNn0Jm/HRaBQEIni/JGwvBsPzcj6L3+meo/8UzLSGrNm q3kcGAAmLLvgRH0NtgBTMt2wjcKy2wdWhijzfnqOmE9QZgFj7wCAiXriR6ZXaa+jOo7e 6KkA== X-Received: by 10.236.181.137 with SMTP id l9mr25925939yhm.97.1392758343825; Tue, 18 Feb 2014 13:19:03 -0800 (PST) Original-Received: by 10.170.197.1 with HTTP; Tue, 18 Feb 2014 13:18:22 -0800 (PST) In-Reply-To: <5303AEBC.6020509@gmx.at> 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:85863 Archived-At: On Tue, Feb 18, 2014 at 8:04 PM, martin rudalics wrote: > 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. Yeah. In my workaround that wasn't important because I specifically got the frame's root. > I attach a patch. Was this: > + (setq window (catch 'live > + (walk-window-subtree > + (lambda (window) > + (when (window-live-p window))) > + root)))) intended to be (setq window (catch 'live (walk-window-subtree (lambda (window) (when (window-live-p window) (throw 'live window))) root)))) I suppose? J