X-Loop: help-debbugs@HIDDEN Subject: bug#77079: 31.0.50; Re-parenting tty child frame leaves two instances on display Resent-From: martin rudalics <rudalics@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 17 Mar 2025 18:53:05 +0000 Resent-Message-ID: <handler.77079.B.174223757831936 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 77079 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 77079 <at> debbugs.gnu.org Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> X-Debbugs-Original-To: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.174223757831936 (code B ref -1); Mon, 17 Mar 2025 18:53:05 +0000 Received: (at submit) by debbugs.gnu.org; 17 Mar 2025 18:52:58 +0000 Received: from localhost ([127.0.0.1]:60898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tuFa5-0008J2-Qb for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 14:52:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:52038) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1tuFa3-0008Hp-DP for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 14:52:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <rudalics@HIDDEN>) id 1tuFZu-0005r0-UZ for bug-gnu-emacs@HIDDEN; Mon, 17 Mar 2025 14:52:47 -0400 Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <rudalics@HIDDEN>) id 1tuFZs-0001QN-Re for bug-gnu-emacs@HIDDEN; Mon, 17 Mar 2025 14:52:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1742237562; x=1742842362; i=rudalics@HIDDEN; bh=CGKakckEm//9urMLfLV9CuaSafJRdYTf+JLcBTH6IA0=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:From: Subject:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=QodBTDk9ywXp8FtcgOny4dx/R8fJnTh0fs4JkVHLj+uNe95u4H1vBFl622O4wbye eg/GYDn/LWwb7VfWvnpXr8VA9gvmOXiSmcA1dNZojbOKbqRhGVfn0GnclCdrhfOOs JHsM9BkR5bdJMldmn5gbY5iX6lVN6SkzavyUcOTXVco7M+VRFQNGTdZ+Chm98UCGI vjF/eS+gYn67y9VAe46+aIRC6Sdw9xUqiEY22E3x7GHdyT6Vua/HquzWuorJl3/TI jGywjvrd+2amhQ6t0w1sEMFUiYFddnqRVqdV0vaCI+ERFMV+Hj2CWNLWHzoQK4iZU i7LupCmL2mgKUMYvZA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([212.95.5.102]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmlT2-1tVbC80gCM-00qF36; Mon, 17 Mar 2025 19:52:42 +0100 Message-ID: <d72b2adb-8ad2-4bbb-93bb-31f90bb047ca@HIDDEN> Date: Mon, 17 Mar 2025 19:52:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:gx+gyIdYlk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zMkCP/Pm/+ vr67LlIvyd5geu1bOR7mrSCsffuXrVZp41L8HtpriGgcperJF+eKrY+6G3UDpl8Kb8QZEiOg+ Map0SRjakMfpxa2q0viAer6ufKMhpEHB+8SJoShyFCuffBa/Bo35q5dxe0uD+0vC2BX6PhRNZ 8EOzHJ/SsB1wIccxGcY4a7FyH0A8Jqw4AYw5SUncb6i1EbUZLY7AUvdC/Lj+KDjCinfN/3Q1e jTEE7qHCRJysHHnTUkBXmb77LFa3/A9WZC/iTnBgTTKzid0EyGCEQ7y0FrT9f67vg9ZPzxWbs jxOCRjRIJaWoRwmA+FoDgxoa46ffLYEPi5LR7f/hixhOM5oey+iws4mtgXiFpact9mzFTVrmd h3sbFhfs32sAijHRMBCIebPpEw4bBJxnI64Dlr9qIdOXNMOv/M9ySYq79EOEyDMMHglQwgOKt Tw920RwIfnwkTBrP2AbQmIgmsw/ORrG80PWdiHPkPw6el/b8YxC1ydr8PEU/UPuRWuFCwz8r8 3VtiC+O74l4DJaNGHqlW6RHJBVZJ4Xl8f44sqMhYKbe1WqpzHcdXQ/X8GMSQoQjgQi5LDELSQ 82GkxnZOymathwzHLWd3Db1Y2SeNdG0Y/QKXXm0p7ihs7hjj806ps3n8kiibHtuZED1f6E+pv Ch+FXDNb3awsb0rEQNXdT2231Kd0= Received-SPF: pass client-ip=212.227.15.18; envelope-from=rudalics@HIDDEN; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I think we need the following change diff --git a/src/frame.c b/src/frame.c index c1ef26e5dd4..9a4ca7d0682 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3706,6 +3706,7 @@ store_frame_param (struct frame *f, Lisp_Object prop, Lisp_Object val) if (NILP (f->parent_frame) != NILP (val)) error ("Making a root frame a child or vice versa is not supported"); f->parent_frame = val; + SET_FRAME_GARBAGED (root_frame (f)); } /* The tty color needed to be set before the frame's parameter since otherwise re-parenting a child frame, for example, using (set-frame-parameter tty-3 'parent-frame tty-1) from my earlier tty-child-frames.el leaves one with two instances of the child frame on display. martin
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: martin rudalics <rudalics@HIDDEN> Subject: bug#77079: Acknowledgement (31.0.50; Re-parenting tty child frame leaves two instances on display) Message-ID: <handler.77079.B.174223757831936.ack <at> debbugs.gnu.org> References: <d72b2adb-8ad2-4bbb-93bb-31f90bb047ca@HIDDEN> X-Gnu-PR-Message: ack 77079 X-Gnu-PR-Package: emacs Reply-To: 77079 <at> debbugs.gnu.org Date: Mon, 17 Mar 2025 18:53:06 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 77079 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 77079: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77079 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#77079: 31.0.50; Re-parenting tty child frame leaves two instances on display Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 17 Mar 2025 19:52:02 +0000 Resent-Message-ID: <handler.77079.B.174224110117560 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77079 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics <rudalics@HIDDEN> Cc: 77079 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.174224110117560 (code B ref -1); Mon, 17 Mar 2025 19:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Mar 2025 19:51:41 +0000 Received: from localhost ([127.0.0.1]:32836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tuGUs-0004Yo-3E for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 15:51:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57340) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1tuGUo-0004W7-Vk for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 15:51:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>) id 1tuGUI-0003oh-56 for bug-gnu-emacs@HIDDEN; Mon, 17 Mar 2025 15:51:05 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>) id 1tuGUD-0004qH-SM for bug-gnu-emacs@HIDDEN; Mon, 17 Mar 2025 15:51:00 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43cf06eabdaso25049255e9.2 for <bug-gnu-emacs@HIDDEN>; Mon, 17 Mar 2025 12:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742241054; x=1742845854; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0DrBlkqSBkLZKvjTC+z5SG2iHgP7yhNbpXM48Ka29lg=; b=IIehv9MGoe8/8t8eGMM+Hr4Tl2YxfysbqkYKp09L6z7Hn2kMrkXJJgJ2VbWVYoYUPq c7EXmQ8EM313rO5tF7ULjjDdZ1zrX0rrGL8K+iMsIQuWuftDmznCQt/WCOo6z/rf9d2t l0jwenNKIL5hafDtbhHsfQ8XnkBdoXI97tVQvOSGlLLI1OkjCSYq7xYr2w4XBDYOm22E 6o3pBSeXUxr7WNX0nKwGMHG14hScsVgTLevu8LZSe8yroT0tJY1ocTwe/duuhitX/TK2 /blQZs4Ky+tDXl2bOfpYdfe+YkDFWFC34JKNz+C2jdns05zfl+KMwmNK/lSWT3Ohws1q q81A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742241054; x=1742845854; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0DrBlkqSBkLZKvjTC+z5SG2iHgP7yhNbpXM48Ka29lg=; b=IY6B1gzfUr4VcPwqbP0NO2de5hR5DGkN2ugNl4GkeE4DwVSqzX6whE5lZxdC2eYLHz aVSrVMarbsEXD53v1lvJGBWIALcmRDYmEUXpZmqbfbotMLcVdj48qUB8KZMWocecx6rR +Uh2FeN1AiAjL6vwmazP+r55sCh5uOK6LObeEDWVVPv6J/4nDc/JzEw2moZ7Sa7q18yu V2KUyvGFZNBNJt2Bzk7n6J6MQpJ8P/Pe0Bj7Ik+681p/Kz9QaDQYvJVEVbEMt4mY6NuP 9NBsVugsJRFtbdL+DA5/ZggKlbOkeA2eQfTXYZaeMR/09kWvfUCV/qMADclSexJlmYqM WxDw== X-Gm-Message-State: AOJu0YyAaY1wQQVtZ8xhXZNIymdER7tyBiHQNB69ULEwixKdjHk2xr+K vIFprxL1e1FsXIHO21SVE3GXxZSrgemFQ3AmLrzBbGOr9DE862gPM7TDjw== X-Gm-Gg: ASbGncsuyrWhWSVFCXkHFD4fKJ77a1DP/w89rCphQsKGvhoH+U9joTfQxcMs4cTdtI7 i8N6wsqDzcCwoXh0T5BSYaeV85qGzP6EEdLsv46r4swdJAw9jUFAvRqrd7lWH40vM/JFLvrsfCZ kHvQhTvKyDaCihoEGIkLegsTFJ5KTZoiOsLwg3rM0+Sm2mBCrehByA8PCbcP4Jx1dbprTiszhCm BLidcsqs7grYr6He1niKf5JIRWdqRTan27yz2+a+/i+90Pm5zMAR0kzrwCmCW82wh9UB0DPjiFp 9zu96VltxwU6XCS4NlhOe7YUlh/i5YnPzSnPzC8J4zfyzK/gJHdKE8UVTS1JSozr8HIJuKS+C4X +zRfmYxXmE3oWuJJ9cis4ls+OtiTs4IL5FH/RP6u9kIND4KYG/Wx8xw== X-Google-Smtp-Source: AGHT+IF6SdqzBMdLrDfH3B4zWgi8oUH61fs3ipC9lOljWI/fShtqTRqG2eN9PiTgG0SPSeGNzKrAmg== X-Received: by 2002:a05:600c:1ca7:b0:43c:ec28:d31b with SMTP id 5b1f17b1804b1-43d1ec835c5mr157705445e9.10.1742241054045; Mon, 17 Mar 2025 12:50:54 -0700 (PDT) Received: from pro2 (p200300e0b7339900f02e35205d296d31.dip0.t-ipconnect.de. [2003:e0:b733:9900:f02e:3520:5d29:6d31]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d1fe65977sm115492895e9.36.2025.03.17.12.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Mar 2025 12:50:53 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> In-Reply-To: <d72b2adb-8ad2-4bbb-93bb-31f90bb047ca@HIDDEN> References: <d72b2adb-8ad2-4bbb-93bb-31f90bb047ca@HIDDEN> Date: Mon, 17 Mar 2025 20:50:52 +0100 Message-ID: <m21puvsag3.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=gerd.moellmann@HIDDEN; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) martin rudalics <rudalics@HIDDEN> writes: > I think we need the following change > > diff --git a/src/frame.c b/src/frame.c > index c1ef26e5dd4..9a4ca7d0682 100644 > --- a/src/frame.c > +++ b/src/frame.c > @@ -3706,6 +3706,7 @@ store_frame_param (struct frame *f, Lisp_Object prop, Lisp_Object val) > if (NILP (f->parent_frame) != NILP (val)) > error ("Making a root frame a child or vice versa is not supported"); > f->parent_frame = val; > + SET_FRAME_GARBAGED (root_frame (f)); > } > > /* The tty color needed to be set before the frame's parameter > > since otherwise re-parenting a child frame, for example, using > > (set-frame-parameter tty-3 'parent-frame tty-1) > > from my earlier tty-child-frames.el leaves one with two instances of the > child frame on display. > > martin Yep, for sure.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.