From unknown Wed Jun 18 23:11:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16793 <16793@debbugs.gnu.org> To: bug#16793 <16793@debbugs.gnu.org> Subject: Status: window-state-put needs a live window Reply-To: bug#16793 <16793@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:20 +0000 retitle 16793 window-state-put needs a live window reassign 16793 emacs submitter 16793 Juanma Barranquero severity 16793 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 11:20:57 2014 Received: (at submit) by debbugs.gnu.org; 18 Feb 2014 16:20:57 +0000 Received: from localhost ([127.0.0.1]:58606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFnPk-0004H3-SM for submit@debbugs.gnu.org; Tue, 18 Feb 2014 11:20:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35374) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFnPj-0004Gl-1K for submit@debbugs.gnu.org; Tue, 18 Feb 2014 11:20:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFnPd-0000WF-2D for submit@debbugs.gnu.org; Tue, 18 Feb 2014 11:20:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FREEMAIL_REPLY,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFnPd-0000WB-07 for submit@debbugs.gnu.org; Tue, 18 Feb 2014 11:20:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFnPb-0003Fx-Se for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 11:20:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFnPa-0000Vb-Mz for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 11:20:47 -0500 Received: from mail-yk0-x230.google.com ([2607:f8b0:4002:c07::230]:57818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFnPa-0000VQ-C6 for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 11:20:46 -0500 Received: by mail-yk0-f176.google.com with SMTP id 19so33999792ykq.7 for ; Tue, 18 Feb 2014 08:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=IfWVx2oc7yiGtWr01cv20rMnJD8DtaYh17X+wU/YswA=; b=UUpIkjrSZI+TC4MIVRG3Hm7Himv1s1kdW/DnxGGLWsZ54lWznLIvs5pAMRe2T5jCUe Eoq1itoGUOVwemvH1Eg5r7gJPckIRIKhoYhqWsX7ZE8ZQzbuR3LgMFEbYj4oL1Dhipij mIseHLUW5U17yk9EREQU9VW7lrRYO/n0NoSox+Q8x7ZBRJ0yC3CbI4k+oelF+kQlLAcN Y5kkeCQmFpwxhOMK8TaljGT57aZOIsLoCfzXhuDVl0uWvXRm4l0dSO+1kSwgTRGDSyb7 ep07kzd9GBfbEqpAnAL2wqwUTsaM/2VyVJqT8Uugym37IULPATgs4D9oKxkMwfvM4q+/ WHsA== X-Received: by 10.236.101.18 with SMTP id a18mr12573959yhg.65.1392740445680; Tue, 18 Feb 2014 08:20:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Tue, 18 Feb 2014 08:20:04 -0800 (PST) From: Juanma Barranquero Date: Tue, 18 Feb 2014 17:20:04 +0100 Message-ID: Subject: window-state-put needs a live window To: Bug-Gnu-Emacs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Package: emacs Version: 24.3.50 X-Debbugs-Cc: rudalics@gmx.at There's a problem when restoring a frameset where "put"ing a window state into the root window of a frame fails for some windows if the frame is split (which is common enough). It's easy to see the problem with emacs -Q C-x 2 C-x r f a C-x r j a => "Error (frameset): # is not a live window" or emacs -Q ;; eval this in *scratch* (let (ws frw) (split-window) (setq frw (frame-root-window)) (setq ws (window-state-get frw)) (window-state-put ws frw)) => "Lisp error: (error "# is not a live window")" Strictly speaking It's not a bug, because the docstring of `window-state-put' says "Optional argument WINDOW must specify a live window". But as the examples above show, it is less than useful to be able to get the state of a window and not being able to put it again into the same window. In framesets, the problem arises because it's often the case that the preferred frame to restore a window-state is the very same one the window-state was saved from, particularly for saving/restoring in the same session (as it happens with frameset-to-register / jump-to-register). That minimizes flicker and simplifies dealing with non-reused frames. Martin suggests that frameset--restore should check that the root window of the matching frame found is alive, and if not, discard that frame and create a new one. That's doable, but it seems less than optimal, from both a coding and UI perspective. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 12:10:11 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 17:10:11 +0000 Received: from localhost ([127.0.0.1]:58670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoBO-0005in-Az for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:10:10 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:49272) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoBK-0005iZ-QL for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 12:10:07 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 3244584CED; Tue, 18 Feb 2014 12:10:06 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id ECCE31E5913; Tue, 18 Feb 2014 12:09:42 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id C805EB40FE; Tue, 18 Feb 2014 12:09:42 -0500 (EST) From: Stefan Monnier To: Juanma Barranquero Subject: Re: bug#16793: window-state-put needs a live window Message-ID: References: Date: Tue, 18 Feb 2014 12:09:42 -0500 In-Reply-To: (Juanma Barranquero's message of "Tue, 18 Feb 2014 17:20:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16793 Cc: rudalics@gmx.at, 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > Package: emacs > Version: 24.3.50 > X-Debbugs-Cc: rudalics@gmx.at [ The X-Debbugs-Cc should be in the email header, not in the here pseudo-header. Welcome to Debbugs ;-) ] > Martin suggests that frameset--restore should check that the root > window of the matching frame found is alive, and if not, discard that > frame and create a new one. That's doable, but it seems less than > optimal, from both a coding and UI perspective. I don't understand what this means. Why would the frame's root window not be alive? Is it because it's an "internal" window (because of a split)? deleting a frame and creating a new one is definitely not a good idea, since it can have all kinds of unintended side-effects, depending on the window manager. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 12:20:36 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 17:20:36 +0000 Received: from localhost ([127.0.0.1]:58690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoLT-00061M-5F for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:20:35 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:36946 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoLQ-00061E-TQ for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 12:20:33 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WFoLP-0007mv-CU; Tue, 18 Feb 2014 12:20:31 -0500 From: Glenn Morris To: Stefan Monnier Subject: Re: bug#16793: window-state-put needs a live window References: X-Spook: monarchist Elvis Firefly Audiotel Jiang Zemin advisors X-Ran: pI|JrVZ>._;z>uf}=hu[GgshZ9yVb/:$Uq~6^H$TYU"lW/*H},gD?y~#;.b"u-C^o@,~Rm X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 18 Feb 2014 12:20:31 -0500 In-Reply-To: (Stefan Monnier's message of "Tue, 18 Feb 2014 12:09:42 -0500") Message-ID: <24y5182v8g.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 16793 Cc: Juanma Barranquero , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Stefan Monnier wrote: >> X-Debbugs-Cc: rudalics@gmx.at > > [ The X-Debbugs-Cc should be in the email header, not in the here > pseudo-header. Welcome to Debbugs ;-) ] Either works. Welcome to debbugs.gnu.org... From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 12:24:22 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 17:24:22 +0000 Received: from localhost ([127.0.0.1]:58694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoP8-00068D-DO for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:24:22 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:37031 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoP6-000683-4N for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 12:24:20 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WFoP5-00086j-MP; Tue, 18 Feb 2014 12:24:19 -0500 From: Glenn Morris To: 16793@debbugs.gnu.org Subject: Re: bug#16793: window-state-put needs a live window References: <24y5182v8g.fsf@fencepost.gnu.org> X-Spook: JFK S Key FBI UMTS Audiotel genetic supercomputer ICE X-Ran: mJ\2Yw8]q^l32cB8@9D&ItzTsgR3VpV*jqm-uxU_a,Cw5qqa>lLC{4jz;_EWAEFoZoVIP% X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 18 Feb 2014 12:24:19 -0500 In-Reply-To: <24y5182v8g.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 18 Feb 2014 12:20:31 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 16793 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Glenn Morris wrote: >> [ The X-Debbugs-Cc should be in the email header, not in the here >> pseudo-header. Welcome to Debbugs ;-) ] > > Either works. Welcome to debbugs.gnu.org... Actually, that's a standard Debian debbugs feature. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 12:37:12 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 17:37:12 +0000 Received: from localhost ([127.0.0.1]:58738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFobY-0006Y2-0b for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:37:12 -0500 Received: from mail-yh0-f52.google.com ([209.85.213.52]:55780) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFobV-0006Wk-FL for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 12:37:10 -0500 Received: by mail-yh0-f52.google.com with SMTP id a41so15642757yho.39 for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 09:37: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=vsDsrZ2hP5s+iSTZiiY0rjEniUXNqCI6zlFvWUjNKMw=; b=O4blKrdqvLk47R0nBWqE7BhwpEWGHqHUqtzPFBDmq/fZrLY+okseUymVj17ofeO5cm vGuYkE6bhMbRsoFtT8OIjssHhWNRpu4vnbu2CctDAudW+2dzElbqJsYFFosPo2SrQV60 5fNGcEAvM0YBtme8qDwHu1U6b6lIRc0b5Ii9PBBoyPxGXngRkIQdq/xzenu54uoevf7+ 9f2SRTIj7DJrJOCDfSyYR8gNwrPQI/D8lJX6jIkFR8AdVlydtY7l4v7hATDrMe98UxrA 6qz53ad54Mt3W7EI6ZgYFdt1BYqdUc2B9Riu+0NPdR9GqF0NgVKH8o9AubkV6BEgZUGx 34fw== X-Received: by 10.236.149.2 with SMTP id w2mr5236193yhj.114.1392745023567; Tue, 18 Feb 2014 09:37:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Tue, 18 Feb 2014 09:36:22 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Tue, 18 Feb 2014 18:36:22 +0100 Message-ID: Subject: Re: bug#16793: window-state-put needs a live window To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16793 Cc: martin rudalics , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Tue, Feb 18, 2014 at 6:09 PM, Stefan Monnier wrote: > [ The X-Debbugs-Cc should be in the email header, not in the here > pseudo-header. Welcome to Debbugs ;-) ] [ It works here too. At least it worked all other times I've used it ;-) ] > I don't understand what this means. Why would the frame's root window > not be alive? Is it because it's an "internal" window (because of > a split)? Yes. > deleting a frame and creating a new one is definitely not > a good idea, since it can have all kinds of unintended side-effects, > depending on the window manager. I just committed a workaround for this issue: deleting all windows except the first one in the relevant frame if its root window isn't alive. 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 13:29:25 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 18:29:25 +0000 Received: from localhost ([127.0.0.1]:58850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpQ5-0008Do-KU for submit@debbugs.gnu.org; Tue, 18 Feb 2014 13:29:25 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:39053) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpQ3-0008Dg-WE for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 13:29:24 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 8547984DAD; Tue, 18 Feb 2014 13:29:23 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 4B7A61E5913; Tue, 18 Feb 2014 13:28:59 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 2B25EB40FE; Tue, 18 Feb 2014 13:28:59 -0500 (EST) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#16793: window-state-put needs a live window Message-ID: References: <24y5182v8g.fsf@fencepost.gnu.org> Date: Tue, 18 Feb 2014 13:28:59 -0500 In-Reply-To: (Glenn Morris's message of "Tue, 18 Feb 2014 12:24:19 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16793 Cc: 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) >>> [ The X-Debbugs-Cc should be in the email header, not in the here >>> pseudo-header. Welcome to Debbugs ;-) ] >> Either works. Welcome to debbugs.gnu.org... > Actually, that's a standard Debian debbugs feature. Hmm... should debbugs turn it into a "Cc:" (when it allocates a bug-number to the email), then? Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 13:30:12 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 18:30:12 +0000 Received: from localhost ([127.0.0.1]:58856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpQp-0008NA-VW for submit@debbugs.gnu.org; Tue, 18 Feb 2014 13:30:12 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:39073) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpQn-0008KE-Ru for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 13:30:10 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9283284DAE; Tue, 18 Feb 2014 13:30:09 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 434861E5913; Tue, 18 Feb 2014 13:29:45 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 34131B40FE; Tue, 18 Feb 2014 13:29:45 -0500 (EST) From: Stefan Monnier To: Juanma Barranquero Subject: Re: bug#16793: window-state-put needs a live window Message-ID: References: Date: Tue, 18 Feb 2014 13:29:45 -0500 In-Reply-To: (Juanma Barranquero's message of "Tue, 18 Feb 2014 18:36:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16793 Cc: martin rudalics , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > 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, Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 13:37:37 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 18:37:37 +0000 Received: from localhost ([127.0.0.1]:58864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpY1-0001Cx-Ae for submit@debbugs.gnu.org; Tue, 18 Feb 2014 13:37:37 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:39249 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpXz-0001Cn-7g for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 13:37:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WFpXy-0004ul-7Y; Tue, 18 Feb 2014 13:37:34 -0500 From: Glenn Morris To: Stefan Monnier Subject: Re: bug#16793: window-state-put needs a live window References: <24y5182v8g.fsf@fencepost.gnu.org> X-Spook: eternity server Waco, Texas Uzbekistan JFK Telex CISU X-Ran: D`g)J#"XHHzoJ\<(pJL{n55IZ.:2tlYo]%l"~L$qf6}e7%H (Stefan Monnier's message of "Tue, 18 Feb 2014 13:28:59 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 16793 Cc: 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Stefan Monnier wrote: > Hmm... should debbugs turn it into a "Cc:" (when it allocates > a bug-number to the email), then? IIRC, it does, but Martin is subscribed to bug-gnu-emacs with duplication suppression enabled, so bug-gnu-emacs Mailman strips out the cc in the version of the mail it sends out to the list. http://debbugs.gnu.org/cgi/bugreport.cgi?msg=2;bug=16793 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 14:04:30 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 19:04:30 +0000 Received: from localhost ([127.0.0.1]:58880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpy1-0003CE-Jb for submit@debbugs.gnu.org; Tue, 18 Feb 2014 14:04:30 -0500 Received: from mout.gmx.net ([212.227.17.21]:55510) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpxy-0003Bu-TV for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 14:04:27 -0500 Received: from [62.47.59.252] ([62.47.59.252]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MKqOW-1WFpxs0W6C-0001G0 for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 20:04:20 +0100 Message-ID: <5303AEAC.1030006@gmx.at> Date: Tue, 18 Feb 2014 20:04:12 +0100 From: martin rudalics MIME-Version: 1.0 To: Juanma Barranquero Subject: Re: bug#16793: window-state-put needs a live window References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:mka8r09nSAmCUB+TRJUgW8px2PqGbieAe7LaPfCwCR2E0r4OGdX 0VBKBwVLLXfs3LOLmAPGj7Xb7tBLrdf0d0kWXSHkcG9qgvOkoEbkmNrOQrIOaSFcIYFzwdz 09Gba1HIFCVnhxYSSd84Pur91f9Brlkcoacy5pl4OvLjmqRP3IY/HElXrIM844hHG2tKSmL 6feOWkcIsbWax7Ei5mB9A== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16793 Cc: 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Martin suggests that frameset--restore should check that the root > window of the matching frame found is alive, and if not, discard that > frame and create a new one. That's doable, but it seems less than > optimal, from both a coding and UI perspective. That was a misunderstanding. Your initial scenario was emacs -Q --eval "(setq debug-on-error t)" C-x 2 C-x r f a C-x 5 2 C-u C-x r j a so I thought you wanted to create a new frame anyway ;-) martin From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 14:04:45 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 19:04:45 +0000 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 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 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 Message-ID: <5303AEBC.6020509@gmx.at> Date: Tue, 18 Feb 2014 20:04:28 +0100 From: martin rudalics MIME-Version: 1.0 To: Juanma Barranquero Subject: Re: bug#16793: window-state-put needs a live window References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------040306020006010305090202" X-Provags-ID: V03:K0:zZk2QBj6R3AJlEbg2UErsP+xiQys0E+dr52Yj0iu4aj2tl7w+F4 lME2DKDhTr94+jYq9NksAQgAuktBc9SBE3GQ9lC+pZwL6Avzc0fXbwQLzzoQ2qGgC2MbMtT mVaxQhpmj+jr+tT9ZaSFDAxihggbFq7ULnkM3fMIdN05sH7aUN7gLpJqBPvAaFLwsybQ70q /s8qhTkVS+3Grrp1+eAtw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16793 Cc: Stefan Monnier , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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 LXNwZWNpZnkgYSBsaXZlIHdpbmRvdyBhbmQgZGVmYXVsdHMgdG8gdGhlIHNlbGVjdGVkIG9u ZS4NCitzcGVjaWZ5IGEgdmFsaWQgd2luZG93IGFuZCBkZWZhdWx0cyB0byB0aGUgc2VsZWN0 ZWQgb25lLiAgSWYNCitXSU5ET1cgaXMgbm90IGxpdmUsIGRlbGV0ZSBhbGwgY2hpbGQgd2lu ZG93cyBvZiBXSU5ET1cgYmVmb3JlDQorcHV0dGluZyBTVEFURS4NCg0KIE9wdGlvbmFsIGFy Z3VtZW50IElHTk9SRSBub24tbmlsIG1lYW5zIGlnbm9yZSBtaW5pbXVtIHdpbmRvdw0KIHNp emVzIGFuZCBmaXhlZCBzaXplIHJlc3RyaWN0aW9ucy4gIElHTk9SRSBlcXVhbCBgc2FmZScg bWVhbnMNCiB3aW5kb3dzIGNhbiBnZXQgYXMgc21hbGwgYXMgYHdpbmRvdy1zYWZlLW1pbi1o ZWlnaHQnIGFuZA0KIGB3aW5kb3ctc2FmZS1taW4td2lkdGgnLiINCiAgIChzZXRxIHdpbmRv dy1zdGF0ZS1wdXQtc3RhbGUtd2luZG93cyBuaWwpDQotICAoc2V0cSB3aW5kb3cgKHdpbmRv dy1ub3JtYWxpemUtd2luZG93IHdpbmRvdyB0KSkNCisgIChzZXRxIHdpbmRvdyAod2luZG93 LW5vcm1hbGl6ZS13aW5kb3cgd2luZG93KSkNCisNCisgICh1bmxlc3MgKHdpbmRvdy1saXZl LXAgd2luZG93KQ0KKyAgICAobGV0ICgocm9vdCAoZnJhbWUtcm9vdC13aW5kb3cpKSkNCisg ICAgICAoaWYgKGVxIHdpbmRvdyByb290KQ0KKwkgIChzZXRxIHdpbmRvdyAoZnJhbWUtZmly c3Qtd2luZG93IHJvb3QpKQ0KKwkoc2V0cSByb290IHdpbmRvdykNCisJKHNldHEgd2luZG93 IChjYXRjaCAnbGl2ZQ0KKwkJICAgICAgICh3YWxrLXdpbmRvdy1zdWJ0cmVlDQorCQkJKGxh bWJkYSAod2luZG93KQ0KKwkJCSAgKHdoZW4gKHdpbmRvdy1saXZlLXAgd2luZG93KSkpDQor CQkJcm9vdCkpKSkNCisgICAgICAoZGVsZXRlLW90aGVyLXdpbmRvd3MtaW50ZXJuYWwgd2lu ZG93IHJvb3QpKSkNCisNCiAgIChsZXQqICgoZnJhbWUgKHdpbmRvdy1mcmFtZSB3aW5kb3cp KQ0KIAkgKGhlYWQgKGNhciBzdGF0ZSkpDQogCSA7OyBXZSBjaGVjayBoZXJlICgxKSB3aGV0 aGVyIHRoZSB0b3RhbCBzaXplcyBvZiByb290IHdpbmRvdyBvZg0KDQoNCg== --------------040306020006010305090202-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 14:09:23 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 19:09:23 +0000 Received: from localhost ([127.0.0.1]:58889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFq2k-0003N0-TR for submit@debbugs.gnu.org; Tue, 18 Feb 2014 14:09:23 -0500 Received: from mail-yh0-f45.google.com ([209.85.213.45]:59405) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFq2i-0003Mf-Dj for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 14:09:20 -0500 Received: by mail-yh0-f45.google.com with SMTP id i57so15699315yha.4 for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 11:09:14 -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=qOGbud3Rea9fKUGndd41/RiitJ/HYb17tmzbGDJnrCQ=; b=h/AIZCefHqJ9MS9FTe2MMwLwP9wpI4CUSZ+QF5iLsB6TT4SKdSoG82+YQZqIyJ+pm3 ObZWVz7Rl2ptEfAtxRGmNRI+8sFeZ58urXAfAV05gnUzx+tJAbYPuo3hy1Gh5XpkAtfI dmGL1kEHS8KA+BPZD6jebK1wEYF1+oRNiGt+yJEWRfB2eu5FMlpCXQeFx5wyS4V46g/l YN47/hHJhs1E5fNXXKk5rFrgMwAIIKYNtAYS1ZpeYiei2C2geY6372RL53KBNfz0LuSL dYUKgATLI1+G2CWC39YYEdHhmWefu2y/L4sKaPnmyBYITkF6Qqrc/P1WbDjubZSblush WSAQ== X-Received: by 10.236.47.162 with SMTP id t22mr5878932yhb.123.1392750554575; Tue, 18 Feb 2014 11:09:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Tue, 18 Feb 2014 11:08:34 -0800 (PST) In-Reply-To: <5303AEAC.1030006@gmx.at> References: <5303AEAC.1030006@gmx.at> From: Juanma Barranquero Date: Tue, 18 Feb 2014 20:08:34 +0100 Message-ID: Subject: Re: bug#16793: window-state-put needs a live window To: martin rudalics Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16793 Cc: 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Tue, Feb 18, 2014 at 8:04 PM, martin rudalics wrote: > That was a misunderstanding. Oh, glad to hear it. > Your initial scenario was > > emacs -Q --eval "(setq debug-on-error t)" > > C-x 2 > C-x r f a > C-x 5 2 > C-u C-x r j a > > so I thought you wanted to create a new frame anyway ;-) With or without C-x 5 2, "C-x r f a" followed a time later by "C-x r j a" is intended to reuse frames if possible, not create new ones. But I suppose I could've been clearer. Sorry about that. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 15:46:05 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 20:46:05 +0000 Received: from localhost ([127.0.0.1]:58947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFrYK-0007Pz-QI for submit@debbugs.gnu.org; Tue, 18 Feb 2014 15:46:04 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:60804) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFrYI-0007Po-Gx for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 15:46:03 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 11F6284DAD; Tue, 18 Feb 2014 15:46:02 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 2A72D1E5913; Tue, 18 Feb 2014 15:45:38 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id EFDE8B40FE; Tue, 18 Feb 2014 15:45:37 -0500 (EST) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#16793: window-state-put needs a live window Message-ID: References: <24y5182v8g.fsf@fencepost.gnu.org> Date: Tue, 18 Feb 2014 15:45:37 -0500 In-Reply-To: (Glenn Morris's message of "Tue, 18 Feb 2014 13:37:34 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16793 Cc: 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > IIRC, it does, but Martin is subscribed to bug-gnu-emacs with > duplication suppression enabled, so bug-gnu-emacs Mailman strips out the > cc in the version of the mail it sends out to the list. Aha! Live and learn! I still don't consider that I know what "duplication suppression" really means in a mailing-list-manager, but at least I finally saw it in action for the first time. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 16:19:13 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 21:19:13 +0000 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 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 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) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Tue, 18 Feb 2014 13:18:22 -0800 (PST) In-Reply-To: <5303AEBC.6020509@gmx.at> References: <5303AEBC.6020509@gmx.at> From: Juanma Barranquero Date: Tue, 18 Feb 2014 22:18:22 +0100 Message-ID: Subject: Re: bug#16793: window-state-put needs a live window To: martin rudalics Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16793 Cc: Stefan Monnier , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 16:27:12 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 21:27:12 +0000 Received: from localhost ([127.0.0.1]:59004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFsC7-00008v-Mj for submit@debbugs.gnu.org; Tue, 18 Feb 2014 16:27:11 -0500 Received: from mout.gmx.net ([212.227.15.15]:51062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFsC5-00008e-JL for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 16:27:10 -0500 Received: from [62.47.38.199] ([62.47.38.199]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Mcxtm-1WWr6y23kY-00IEnP for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 22:27:02 +0100 Message-ID: <5303D01E.3040804@gmx.at> Date: Tue, 18 Feb 2014 22:26:54 +0100 From: martin rudalics MIME-Version: 1.0 To: Juanma Barranquero Subject: Re: bug#16793: window-state-put needs a live window References: <5303AEBC.6020509@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:gvPuYGQ9vayAhW8W9t9FYsAg04Ei4DpfHH1PW5RjAiWP8NyViau uf5OFdu2hXqHonRgvnowQ8gqs9FbOk+NJQg81WIEJRK2BYVPZTJHIbRCDl38ZynwhKaVqbb 5ryUX5vKLLx6LR7V2Mysf6Zg/ytZO8Jo5VteeEDiXD1sLU8IN5y8tkJRMvJC/a9mdZYKN6S Rz0zrp5VDR9R48uV1REbA== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16793 Cc: Stefan Monnier , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > 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? You suppose correctly. martin From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 16:52:13 2014 Received: (at 16793) by debbugs.gnu.org; 18 Feb 2014 21:52:13 +0000 Received: from localhost ([127.0.0.1]:59017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFsaL-0000tJ-95 for submit@debbugs.gnu.org; Tue, 18 Feb 2014 16:52:13 -0500 Received: from mail-yh0-f48.google.com ([209.85.213.48]:40873) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFsaI-0000t1-OF for 16793@debbugs.gnu.org; Tue, 18 Feb 2014 16:52:11 -0500 Received: by mail-yh0-f48.google.com with SMTP id f10so16152693yha.35 for <16793@debbugs.gnu.org>; Tue, 18 Feb 2014 13:52:04 -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=tLOWyasUiqzWsaWWjJFr+VVV/5UVQHijn1HXHNXHlR0=; b=nuM99O/t36viu8QI0kfHhq0AA7XScx/tS1BACZIwEmZyCksbZG2zeHx+9Xb6DUy6pG w5lSkoxZx4pXnAIaM8efNeKqTIDKsa6Yr09EXxpuQd5MtEd9eb/gL6M+/dOTxDl5Oxwf pHvGqEbILVeAJEkDn8VJ9o6z6+lpSQQ1xPiFnoggF9vBRtWHjWyPP5tveqKz40Fj41zG WYMtsNCfHiRqVHmxK9kjhLHZ4CIQ7t/SpMn5gNcBhAGDPXkJK3gHhVMMtl8ZG8sQn4Fa Nzq5KyYHRSiOB2i/vs9CFA2XqIWvQdpV5zSiw70c0Wn6XpadhLRJcmiQcT2wJQEuZlYy LTSg== X-Received: by 10.236.0.40 with SMTP id 28mr35986098yha.24.1392760324810; Tue, 18 Feb 2014 13:52:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Tue, 18 Feb 2014 13:51:24 -0800 (PST) In-Reply-To: <5303D01E.3040804@gmx.at> References: <5303AEBC.6020509@gmx.at> <5303D01E.3040804@gmx.at> From: Juanma Barranquero Date: Tue, 18 Feb 2014 22:51:24 +0100 Message-ID: Subject: Re: bug#16793: window-state-put needs a live window To: martin rudalics Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16793 Cc: Stefan Monnier , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Tue, Feb 18, 2014 at 10:26 PM, martin rudalics wrote: > You suppose correctly. It works correctly ;-) J From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 19 05:02:49 2014 Received: (at 16793) by debbugs.gnu.org; 19 Feb 2014 10:02:49 +0000 Received: from localhost ([127.0.0.1]:59498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WG3zN-00060h-4K for submit@debbugs.gnu.org; Wed, 19 Feb 2014 05:02:49 -0500 Received: from mout.gmx.net ([212.227.15.19]:54946) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WG3zK-00060N-Pb for 16793@debbugs.gnu.org; Wed, 19 Feb 2014 05:02:47 -0500 Received: from [62.47.41.228] ([62.47.41.228]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M4Wwq-1XCJyu0zSW-00yfwV for <16793@debbugs.gnu.org>; Wed, 19 Feb 2014 11:02:40 +0100 Message-ID: <53048136.9010904@gmx.at> Date: Wed, 19 Feb 2014 11:02:30 +0100 From: martin rudalics MIME-Version: 1.0 To: Juanma Barranquero Subject: Re: bug#16793: window-state-put needs a live window References: <5303AEBC.6020509@gmx.at> <5303D01E.3040804@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Jhig64a+VUTwx4WP+PL2pEJlSJsoI9SqATJWp1OjceUKDg5kj0h uxgHr2b0W3tWVyRJsqZeujo4oVs2LzEnL6C/hLlYrt52ZQHT4GKIaGINJT+y3eZBztRut2Z Pnts0TJKRl5KuR2VH3MuOpmyk72d59jliceuhOXWL+GPeLJE8UO+mtjrPOcr5lPIU8sC10a 303ZEB5MfzjKmKvXnHF6Q== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16793 Cc: Stefan Monnier , 16793@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > It works correctly ;-) Installed (with the throw) in revision 116477. You should be able to remove your workaround now. martin From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 19 06:10:13 2014 Received: (at 16793-done) by debbugs.gnu.org; 19 Feb 2014 11:10:13 +0000 Received: from localhost ([127.0.0.1]:59546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WG52a-0007tE-Nb for submit@debbugs.gnu.org; Wed, 19 Feb 2014 06:10:12 -0500 Received: from mail-yh0-f44.google.com ([209.85.213.44]:62596) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WG52Y-0007sz-N2 for 16793-done@debbugs.gnu.org; Wed, 19 Feb 2014 06:10:11 -0500 Received: by mail-yh0-f44.google.com with SMTP id f73so194244yha.3 for <16793-done@debbugs.gnu.org>; Wed, 19 Feb 2014 03:10:05 -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=v8qzGGNnMP+VKy4x3yOye7kqsz6hd1zbWJeInKcKfhc=; b=j/l/RGgVNznLpBxICAHxOC/zCcz14byW3uOHD5DQKudVYye5Gim1QaPqm0NMgje4UT 6WQPm70rxWUt+tAAEBebRy5JLiK22/Em2Xs8BOp+aTI0beqmIwcUGthdUecpcBtpfg44 HRi3ilPQbTwjKZwJi16pY3fm0Yk5wxIxVAZXUj/s4EPwrRidk6mjPPMYa+VRxLLwz4le dtdnUdUcG6b1KDoyYaxvbr1tmXKY7UmDwalxvStC868zgV68h7zCv571d+CtXIHLTg43 vJXN3s9/hFLFjsVQGeU1xu3jNb2j6NE70EsOCQJ0K282TaBNRd9YfzHg8DcwxJbWp/ci lCAw== X-Received: by 10.236.180.33 with SMTP id i21mr24264516yhm.101.1392808204910; Wed, 19 Feb 2014 03:10:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Wed, 19 Feb 2014 03:09:24 -0800 (PST) In-Reply-To: <53048136.9010904@gmx.at> References: <5303AEBC.6020509@gmx.at> <5303D01E.3040804@gmx.at> <53048136.9010904@gmx.at> From: Juanma Barranquero Date: Wed, 19 Feb 2014 12:09:24 +0100 Message-ID: Subject: Re: bug#16793: window-state-put needs a live window To: martin rudalics Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16793-done Cc: 16793-done@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Installed (with the throw) in revision 116477. You should be able to > remove your workaround now. Done. Thanks. From unknown Wed Jun 18 23:11:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 19 Mar 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator