From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuuki Harano Newsgroups: gmane.emacs.devel Subject: Re: Proposing changes to adjust_frame_size Date: Thu, 06 May 2021 23:41:38 +0900 (JST) Organization: Ingage Inc. Message-ID: <20210506.234138.2188011124871880561.masm@luna.pink.masm11.me> References: <20210505.230733.1330791046879877132.masm@luna.pink.masm11.me> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33988"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, emacs-devel@gnu.org To: rudalics@gmx.at Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 06 16:43:23 2021 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 1lefDn-0008jL-4d for ged-emacs-devel@m.gmane-mx.org; Thu, 06 May 2021 16:43:23 +0200 Original-Received: from localhost ([::1]:47814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lefDm-00005w-7Q for ged-emacs-devel@m.gmane-mx.org; Thu, 06 May 2021 10:43:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lefCM-0007Z2-Qz for emacs-devel@gnu.org; Thu, 06 May 2021 10:41:55 -0400 Original-Received: from shiro.masm11.me ([150.95.182.25]:57652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lefCJ-00048H-Lk for emacs-devel@gnu.org; Thu, 06 May 2021 10:41:54 -0400 Original-Received: from luna.pink.masm11.me (KD106180014051.au-net.ne.jp [106.180.14.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by shiro.masm11.me (Postfix) with ESMTPSA id 751B7C00D1; Thu, 6 May 2021 23:41:44 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=masm11.me; s=202002; t=1620312104; bh=Z3oDJqZX9vtrO9aoww67fPTUnTwPWNt/QUvgKYK2emU=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=UO1gdZi0Ea+NsdykB1RUjwMiYNN9P2ril9yOc2F7t7kXso94ORZBPFzZIfaixOtpD +0NvuuK2dvWve9CBNdEl3q1Zi3oVF2qOwvlLhHpBOJtj4mQSakd389knA/Bv8EUrGE HorKGTpWAMNRN/2/OT0DzC04iszQzeRpSoXqpBDU= In-Reply-To: X-Mailer: Mew version 6.8 on Emacs 28.0 Received-SPF: pass client-ip=150.95.182.25; envelope-from=masm@masm11.me; helo=shiro.masm11.me 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268968 Archived-At: On Wed, 5 May 2021 18:45:16 +0200, martin rudalics wrote: >> Start Emacs with the iconic switch on like >> >> emacs -Q -iconic --load foo.el >> >> where foo.el contains >> >> (set-frame-height nil 20) >> (set-frame-width nil 90) >> (set-frame-parameter nil 'toolbar-lines 0) >> >> After that deiconify the frame. What are the frame's height and >> width >> now - 20 and 90? I tested on GNOME(Xorg) before merging master. (frame-width) 86 (frame-height) 20 > And after fixing my latest thinko in Fframe_parameters as in commit > e9baa733b8cac00e008cb834abc8712c8c00beed please try with > > emacs -Q > > in *scratch* evaluate first > > (setq frame (make-frame '((width . 60) (height . 20) > (tool-bar-lines . 0) (visibility . nil)))) > > then > > (make-frame-visible frame) > > and tell me what > > (frame-width) and (frame-height) give for that frame. I tested on GNOME(Xorg) after merging master. (frame-width frame) 56 (frame-height frame) 20 Note: I tested on Xorg because pgtk didn't start with iconified state even if I specify -iconic on Wayland. Also, make-frame worked but make-frame-visible didn't work. So I executed frame-width and frame-height on the first frame while the second was invisible. I'm going to debug those issues. -- Yuuki Harano