From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74750: clone-frame and make-frame pixelwise issues Date: Mon, 16 Dec 2024 10:23:13 +0100 Message-ID: References: <861pyfd8pe.fsf@gnu.org> <4d057282-8ec2-4ddb-ac0f-23e65af6e5a1@gmx.at> <7404039b-e71e-44e5-a446-70fa07889528@gmx.at> <1ed054fc-4b82-47cf-8d89-4768b56b88a7@gmx.at> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29028"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 74750@debbugs.gnu.org To: Ship Mints Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 10:24:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tN7Kp-0007Qt-0j for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 10:24:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tN7Ki-0003oP-0K; Mon, 16 Dec 2024 04:24:08 -0500 Original-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 ) id 1tN7Ke-0003o8-BL for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 04:24:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tN7Ke-0001t8-2Y for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 04:24:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=nmg0IBRc+mPxyAeOOH1+Hgxx+eyDEjdEtdlRvEqE8IA=; b=UNx0UOKXkJOGdSlbxXihexu6AvA7mnGk9Eh/bh/RuzJjgXiETavvuJbFQ4XZcYPhvODnQze0edyCtft+8o1VwOyUMOqN5beZdrJ7mRgd8kSGygBQTjBmVQ8ujsu7jSDQvYMfRu19aO5VSYdXLIXZm2Zli9T8r8KX81J7aRDSlpoQklCLDURGljA1kTp6Lws0L2RdvtPrCX+vd6NW9L+uiGqQGUR9Z5WmSwfPgiiPhpf5UyYhOK5fn1scbsPUy53HJgMjZXmoM6cwomjZ5Dj8WySCgRyV0gQXtzT3kqtPQ89uDqA/vG1aKmk/S15VXd40P905JiNrUzNE+n4sG/2N0A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tN7Kc-0005RX-CN for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 04:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 09:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74750 X-GNU-PR-Package: emacs Original-Received: via spool by 74750-submit@debbugs.gnu.org id=B74750.173434100620866 (code B ref 74750); Mon, 16 Dec 2024 09:24:02 +0000 Original-Received: (at 74750) by debbugs.gnu.org; 16 Dec 2024 09:23:26 +0000 Original-Received: from localhost ([127.0.0.1]:53507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tN7K2-0005QU-0Q for submit@debbugs.gnu.org; Mon, 16 Dec 2024 04:23:26 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:46777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tN7K0-0005QF-IE for 74750@debbugs.gnu.org; Mon, 16 Dec 2024 04:23:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1734340997; x=1734945797; i=rudalics@gmx.at; bh=nmg0IBRc+mPxyAeOOH1+Hgxx+eyDEjdEtdlRvEqE8IA=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=nSHE/LecZlqM57gAXYiE0g9FWpVksd9DTJSeWRt5o/dumNTRK3XSgbnS8F/IFTav 0q7YH0aMu9DYo16Ruosa6ClvgEIsHwTbxyVHBAJRYxjBD5K/QCg3RXNeqZST4zXu3 ok78eKtPlrhZhJvAfndA1ll4BwY9wS/BKFhACAMPF2mOG+NM9WnSLewSu9Fv6kOcc qnywnbZf3zTIndkKenOnCe6npn0ngWXcsLQKZroSBeRgPg5+OdHBNTIhBRJhOwm2s SdBz/LUXU59Qy0FCiH9uRK1XeykMrG2WhLnwaBtUlz3DzbiBdPuIh/2d6Nvclg8lv k7kzEhOKlQjhorpMbA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.96.247]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwQXH-1td8bJ3UQP-0105kj; Mon, 16 Dec 2024 10:23:17 +0100 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:2qUgeq2sh9qd/XkFjLWOAhJiMq9vSdlR3r3w3T0jCxmAHppcfkK J/9KIU7jg6MRti2xG8grR0mK+3pjZ3JJvGhSwIEYqwEC2dr0lBrDznVifYodWoW30YMHToO KJboBns9I+94l4kQ3Cxvdptue3j6KEE/ZrZh99itrOfcwuPXfr1too/Lk6n4D/3lAGnQKfh OpfneAgHhmDS6aogH1OIw== UI-OutboundReport: notjunk:1;M01:P0:sI0cGIPAphM=;ZktvMJyxD+AxQcVRTsfOd0SQUO/ Qyxpl1VoM6kx0MWysRwvWJp5wzbqhRQSgjDHD7vqsCjFydk7jWawlqqa14OfClwA5BO7nwNO6 9wWtRBjjhfT+5VZbfFBiko6kC0tpqdLyEUa7+SUxiDENfM5StU6O+fCFibAXKClmExM2cOO6g JvDD00TJLryv/wTIhPyJz4WtnKRDHbCHO+TVTckK4TDd6eB0v/Ks7r/JST/vYpbxUH+60H2ze CV1VP60Wt8lRPJ1HxyLbvkhxsPSHQaayf0GdBsVJq34eehs4qvl8ly3fBpJbUu8XPAw/Y7O9E p071DCDDFrIeBigBJsnVDGESypzLC67i4AzKDn7mdApW3eXY49DAlFRMP+ImLopWUNo7jXfls IB1+jVu2E1JGDE9nWKlnVpptF5mPSyqegYJvlppvAlZZNicaYKSFTa71Xj8q42hhjHU/At014 N05EZyIXxjyQHP1HkTWFlD8yzGfJelihbXOSDX+i3Inhu/Z/4IVgGgl2E0vXWw9sszLh6qXe8 6cJRtu2BMsJlPD5MJKMPFugZajn1ohf/vNMi/ABCUFGA1ZMgekp0wn2Phz1Qv06UaVtDxh6y8 4uWyyWQAFFwglk66PMfCzd0g4ANl+8O+1UnB6GlJHYj29hxorWp4dc/iI/fa6AFIO7w4NP1sa jzZ+cRsqAx43YZcu3VUfRuEZaEv80z5EeiCBzi+4LFfMp1RVpJraj0hrSbSSWB/KlW4uL9/nX ZY6y87EajLFy3gWG5973loiqAwXfsipVgITZzOvO8vpPzpIGMkozKK8C9wpL27eukoCDfMif X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297158 Archived-At: > Now, about clone-frame. Are there any objections to the below > implementation that uses text-pixels? ... > When > PIXELWISE is non-nil or if `frame-resize-pixelwise' is non-nil, and frame > is not text-only, clone the originating frame's pixel size. I'd write that as If PIXELWISE or `frame-resize-pixelwise' is non-nil and FRAME's terminal is not text-only, use the pixel size of FRAME for the cloned frame. Otherwise, use the number of columns and lines of FRAME for the cloned frame. The behavior of the 'fullscreen' parameter might be queer if 'frame-resize-pixelwise' is nil and PIXELWISE is non-nil but that's to be expected. > I may be able to test on GTK early this week, but I think you have GNU > Linux/GTK on your end? I've tried here with a GTK-3 and a Motif build and have seen no problems. What I've seen is a slight misbehavior in setting up the 'fullscreen' parameter on the GTK build (so it's not related to your function). With (setq frame-resize-pixelwise t) (setq frame-inhibit-implied-resize t) setting it to 'maximized' works as expected but setting it to 'fullheight' leaves a gap at the bottom. Surprisingly, cloning a 'fullheight' frame with your function removes the gap. The Motif frames do not have the problem so it might be tool bar related but that should affect the maximized frame as well. I'll look into this later but would be interested if you see the same with a GTK build: To test: (setq frame-resize-pixelwise t) (setq frame-inhibit-implied-resize t) (set-frame-parameter nil 'fullscreen 'fullheight) martin