From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: set-frame-parameter a child-frame's 'parent-frame error on macOS ? Date: Fri, 12 Jan 2018 19:31:00 +0000 Message-ID: <20180112193100.GA18704@breton.holly.idiocy.org> References: <3341a4c3.36ca.160e851bdbd.Coremail.tumashu@163.com> <5A5876A3.10402@gmx.at> <87fu7b6zsj.fsf@163.com> <5A5902D9.9070801@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1515785356 23973 195.159.176.226 (12 Jan 2018 19:29:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 19:29:16 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: Feng Shu , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 20:29:12 2018 Return-path: Envelope-to: ged-emacs-devel@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 1ea50h-0005MI-Qy for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 20:29:03 +0100 Original-Received: from localhost ([::1]:33403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ea52h-0002hW-LZ for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 14:31:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ea52Y-0002dc-2e for emacs-devel@gnu.org; Fri, 12 Jan 2018 14:30:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ea52X-0005ku-6I for emacs-devel@gnu.org; Fri, 12 Jan 2018 14:30:58 -0500 Original-Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:35379) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ea52W-0005jh-UF for emacs-devel@gnu.org; Fri, 12 Jan 2018 14:30:57 -0500 Original-Received: by mail-wr0-x229.google.com with SMTP id g38so3021734wrd.2 for ; Fri, 12 Jan 2018 11:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m45otoWE9m/tyEiq7bcTr7thtF0Y6uNVssgZ70BsDsU=; b=WpJfRqPlqNNRKkw68ewLK8QilYWxs/RJsvkmMx92ING6YRyvS/CmnMaTTt0aHlYMuq 0793U9D29diPMt/JrgISZCuwIPut4SbhoqE3EFeZu6ZLvgx4B3fWNOJsUzqRMKW+P2Jb gFD7ebaxrw2m6t8U6jX/lC9fQexiitY7u+lZ8TfbnniN2G/CgDjnUohV0XityaopMPd8 RncOfDrJrjABpEOxp7Ac9NHGuj+1nY5LZKYFFpwy8InOFPJ7AlCqnxH2i8A85gZi+F5v +iIQgxIqSsS+UyZnXSYfZcHP/vldfqiVppA4TAzslvUQTc0Jdh6gYHNMGBHbCGqNe0qI QsFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=m45otoWE9m/tyEiq7bcTr7thtF0Y6uNVssgZ70BsDsU=; b=Z2/QRbDm0Xi++GucXUSAF0EJpmxezx5lwORV36h3fQVpxb61r6XZxKGO70a5rDFTtm KtHENgA+pXjvmPoaMRJrCbFJzY77Ui95GNUiucM2KSFfwrWmzaVTPE9MG3Ars8B3eFHd mmlCJMAvydPs0pvIozkEjEv4KweKA8CO8LpJdoGs2xtijQRoirg66H8cr4xYbOMeKOCW jFt/P/xY4DKb+Vwd2hlGvCzJVwSBlzhdKhDEMbXRF5tQXVsTdmc72MyGOlrl8DCMf31M 89/yjE9HCLVQew7H3swXHUoESjbWtWDx9/YdswMdEj9V7vOwl/LyA0Y1Gyog4zr0BPUS xatg== X-Gm-Message-State: AKGB3mLjz8KB5R+19iAxOe0eiMw9549qxmIvkTieWVPaS7YF2rCyJ7Jo VB93qWnRTlz7cVwTun9yZxI= X-Google-Smtp-Source: ACJfBovEAeGzcj0eW7hHOzu1KktQTPjQ2orIKdtqD6HTgERQ+TYEx/+bfZ5osIPl6nUWPgYR6kRv3Q== X-Received: by 10.223.160.139 with SMTP id m11mr23790781wrm.119.1515785455640; Fri, 12 Jan 2018 11:30:55 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-0c9f-d078-0073-e913.holly.idiocy.org. [2001:8b0:3f8:8129:c9f:d078:73:e913]) by smtp.gmail.com with ESMTPSA id i65sm10285734wme.20.2018.01.12.11.30.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 11:30:54 -0800 (PST) Content-Disposition: inline In-Reply-To: <5A5902D9.9070801@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221901 Archived-At: On Fri, Jan 12, 2018 at 07:47:53PM +0100, martin rudalics wrote: > >>> (let ((test (let ((after-make-frame-functions nil)) > >>> (make-frame > >>> `((parent-frame . ,(window-frame)) > >>> (width . 10) > >>> (height . 10)))))) > >>> (set-frame-parameter test 'parent-frame (window-frame))) > >>> ---------- > >> > >> I'm not sure what this code is supposed to do. First you make a new > >> child frame named 'test' with the selected frame as its parent. Then > >> you want to set the parent frame of 'test' to the selected frame. > >> > > > > The above just a example to show bug. > > OK. But setting the parent frame two times for the same frame makes > it difficult to say which instance causes the bug. Anyway, can you > try the trivial patch to nsterm.m below? The patch gets rid of the error message for me. Perhaps it will also fix bug#30019. -- Alan Third