From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Thu, 30 Jan 2020 20:42:40 +0300 Message-ID: <82b70174-48fe-d768-15f5-3a1e636234a3@yandex.ru> References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <7dd69fe5-4ef4-782c-2fba-031d475f6406@yandex.ru> <32fb4915-be55-f753-5f6c-423a09030fd6@gmx.at> <8b252ea4-5902-d21e-a0d7-cdb3ddbb4e08@yandex.ru> <44e78be7-be8b-3756-805b-e1455516ef2c@gmx.at> <7f0ebc82.7f9.16fcf69ab7e.Coremail.tumashu@163.com> <7237c15a-8e6c-316d-8d0f-cf15a6c58d14@gmx.at> <619a81b3-d89e-dde0-0cbf-a42c45fcde03@yandex.ru> <93b0c6f4-74e5-854d-3bad-a0b994f83e89@yandex.ru> <8f8f03e2-39d3-af46-361d-2d5060d15217@gmx.at> <56e8b49f-bdb8-d97c-11ca-01612b5c7e5c@yandex.ru> <52546096-e66e-7851-d256-255f8374f3a6@gmx.at> <9badd57f-5f63-7ee6-7ade-9ac473391527@yandex.ru> <28a49043-c99e-3c12-354e-5ebd524ac760@gmx.at> <282ee9bc-d623-8bfd-16a9-9b1068553205@yandex.ru> <8c4c37c2-bf98-ff74-2b71-c87f8996bdfe@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="8201"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: "emacs-devel@gnu.org" To: martin rudalics , tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 30 18:43:36 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixDqp-00024B-QU for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Jan 2020 18:43:35 +0100 Original-Received: from localhost ([::1]:37086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixDqo-0000b9-S7 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Jan 2020 12:43:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51794) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixDq2-0007wb-R4 for emacs-devel@gnu.org; Thu, 30 Jan 2020 12:42:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixDq1-0005EY-3t for emacs-devel@gnu.org; Thu, 30 Jan 2020 12:42:46 -0500 Original-Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:41048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixDq0-0005CO-SS for emacs-devel@gnu.org; Thu, 30 Jan 2020 12:42:45 -0500 Original-Received: by mail-lj1-x22f.google.com with SMTP id h23so4282735ljc.8 for ; Thu, 30 Jan 2020 09:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AJPwcjzcOgcRXNczDpPg0zZnFSFeowyUy32fdZBIFoE=; b=A2z3pY7uXKLVUGln158Pt0U1NdOnT366ePA49A0S6JpGSpMVBVWPLe7/dHXA8FDXl6 42l1oUJvyiCc6Hj0Cuc7RYpK9aDlrdhsjVP67VE2ky32VQAKyxD6GlpQd4HCwfd0+vxD URTMZH8NZJEeQvhKh2vVYxxBWiV7b7QZLK2/V3k+xL8khkFYhO2LmkKCtpjcZ0PXNyH0 wbrXO5cGvXpAljVOqOpyMJS1jzWpmq1qO/YxGha4VDAIuHEW+jbEqgRlYOvD5sgKbyKL +mmBK4kidUKpcow2bj8EFTP2zng8g4JSVrf7yTSONdxKXwhyCMzLVcwIdygEF8wnG1QH DDsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AJPwcjzcOgcRXNczDpPg0zZnFSFeowyUy32fdZBIFoE=; b=ZOW67k7L8YPPXRDyQtkMLqCKfSP9wMkzfE5UZCnN9e1sEznIxMOEkCAHvhdrwuOjs4 bM2Xa/Bv8GgMEUZvfZAiend0pAEEPr5A7ZovqaY4u+N4dPLcBhVbaAaOgELrjIPx4uJB YRLmw5L39mje2THkKN9CZB1ox76fKb6lTS42Dy3S4tvxMov8NMUsrvBiGyyqkffbsmed QkQYPH87VfVuq7VFhVhEbNE+cWyc61mBwaOhf6kpJsFtWqIAf7nSOGogBc3i2z4bSHG6 uLP2pXlitmh9O/CGzPBSsk23Q8iA3zCzIEDAZKsfQLoLLEEmoKzx0x54HaP5CHgkutTa fOVg== X-Gm-Message-State: APjAAAUUG5Ny2EKHhgzd8z1Bkm/K/qlSfczn8mt4dnoD6X8t+iQ5BzRn p2LfI3x513DTBi7QxpK22roshrLrTcE= X-Google-Smtp-Source: APXvYqyfe9YQv4keDjpGsVUvBlxKB30IrmDtAtLyENQ631VlixyI3gOre6HvaGFTCG1GsWmrOrIGbA== X-Received: by 2002:a2e:9d3:: with SMTP id 202mr3638317ljj.60.1580406162310; Thu, 30 Jan 2020 09:42:42 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id b20sm3261172ljp.20.2020.01.30.09.42.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jan 2020 09:42:41 -0800 (PST) In-Reply-To: <8c4c37c2-bf98-ff74-2b71-c87f8996bdfe@gmx.at> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244774 Archived-At: On 30.01.2020 12:38, martin rudalics wrote: > If you put > a breakpoint within 'set-frame-height' run the usual 'resize-test' and > when that breakpoint is hit set a breakpoint at > >       f = x_top_window_to_frame (dpyinfo, > configureEvent.xconfigure.window); > > around line 8927 in xterm.c and do "n" after that breakpoint is hit, > what do you get if you do p f now? So. Putting a breakpoint on that line gives me: Thread 1 "emacs" hit Breakpoint 4, handle_one_xevent (dpyinfo=0x555555fc5000, event=0x7fffffffcbb0, finish=0x555555b9df30 , hold_quit=0x7fffffffce30) at xterm.c:8923 8923 f = x_top_window_to_frame (dpyinfo, configureEvent.xconfigure.window); (gdb) p f $1 = (struct frame *) 0x0 (gdb) print $2 = (struct frame *) 0x0 (gdb) xframe $3 = (struct frame *) 0x0 Cannot access memory at address 0x8 but that probably makes sense, since the var has not been assigned yet. Putting a breakpoint at the next statement gives me this: Thread 1 "emacs" hit Breakpoint 5, handle_one_xevent (dpyinfo=0x555555fc5000, event=, finish=0x555555b9df30 , hold_quit=0x7fffffffce30) at xterm.c:8929 8929 block_input (); (gdb) p f $4 = (struct frame *) 0x5555560a5aa0 (gdb) xframe $5 = (struct frame *) 0x5555560a5aa0 "test child-frame"