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: Tue, 11 May 2021 00:41:39 +0900 (JST) Organization: Ingage Inc. Message-ID: <20210511.004139.756918158998511747.masm@luna.pink.masm11.me> References: <20210510.221830.1116279060678993295.masm@luna.pink.masm11.me> <1e89f9a8-49cf-7ec2-9030-c2d90c3e409f@gmx.at> 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="14543"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: rudalics@gmx.at Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 10 17:42:25 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 1lg835-0003fN-RP for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 17:42:24 +0200 Original-Received: from localhost ([::1]:36932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lg834-0005im-Aw for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 11:42:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg82Y-000538-9b for emacs-devel@gnu.org; Mon, 10 May 2021 11:41:50 -0400 Original-Received: from shiro.masm11.me ([150.95.182.25]:59164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg82V-0006tr-2G for emacs-devel@gnu.org; Mon, 10 May 2021 11:41:49 -0400 Original-Received: from luna.pink.masm11.me (KD106180014075.au-net.ne.jp [106.180.14.75]) (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 32B67C00C3; Tue, 11 May 2021 00:41:42 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=masm11.me; s=202002; t=1620661302; bh=iI+/JE2Y8IEAzC94wOq/H7PamrNSlFJiIjDIKPecTzM=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=cOGdW88u/gwrLXk1gtxk5KXeD+bcnRv+fdmy4uJA72KTQ8hiKlqwV9PlQGOQ8qs+l 3BEzX73hcnU1HS7trYxS/c/0aL+nC5WFzNHPXLIGCEiISOnA7CpAeDySYetDzKoW4C JT32lAUf6SVCXx4c3C8hflOHe2S26ydOJpmf2fTE= In-Reply-To: <1e89f9a8-49cf-7ec2-9030-c2d90c3e409f@gmx.at> 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:269122 Archived-At: On Mon, 10 May 2021 16:16:27 +0200, martin rudalics wrote: > Please try (if those work on your system) with Thanks for the hints. I fixed the bug. I was passing text size to xg_frame_set_char_size(). It should be pixel size. Now, I tested with fringes/scrollbar/toolbar on/off and toggling them like: ---- (setq frame (make-frame '((width . 60) (height . 20) (left-fringe . 0) (right-fringe . 0) ))) (modify-frame-parameters frame '((left-fringe . 8))) ---- and (frame-width) and (frame-height) were always 60 and 20. -- Yuuki Harano