From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.bugs Subject: bug#74750: clone-frame and make-frame pixelwise issues Date: Wed, 8 Jan 2025 12:50:53 -0500 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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007dbf59062b358591" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 74750@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 08 18:53:29 2025 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 1tVaFE-0009T0-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2025 18:53:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVaEr-0000gm-2a; Wed, 08 Jan 2025 12:53:05 -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 1tVaEo-0000gT-DM for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 12:53:02 -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 1tVaEo-00077F-3q for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 12:53:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=brJx9iMMlYIHclUCLSKjqTa58KItli6eJTcWcZjCWOQ=; b=f6nmVqk9EkzYLaXFlXB75A7fUw9nPelO1SZ9b8aQLpruUwZWJJXEIHR22o0AJOy8fmORZVhIzeXs5b3+gIVneGc1kPbRpIZDeA874dK45Pjkvf5k83BYN2F2k8UrwOZ8XLwxg7i8xNjZOKCu0EPAkdYTTDG/Q2khk1PuxqwH1AnatWSDBSQXvr0eF8QvdAv62AABnYrA2O5KDkZLYzmXFJZPjOX7SIpu0uj4KEF0wfC/W3h9XTRePfhWAEy3ZQXBEG+3Yi+2qmV63qlJHvX5Ygouk2XUlsaciDMsQgiKvDCcRUKDtiv7H++ADW4XFz2EnxLcZ64eoU6rtWnmsTl99Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVaEn-0000a2-U1 for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 12:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jan 2025 17:53:01 +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.17363587502179 (code B ref 74750); Wed, 08 Jan 2025 17:53:01 +0000 Original-Received: (at 74750) by debbugs.gnu.org; 8 Jan 2025 17:52:30 +0000 Original-Received: from localhost ([127.0.0.1]:48888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVaEH-0000Z4-6j for submit@debbugs.gnu.org; Wed, 08 Jan 2025 12:52:29 -0500 Original-Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:54502) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tVaE8-0000Ye-2r for 74750@debbugs.gnu.org; Wed, 08 Jan 2025 12:52:26 -0500 Original-Received: by mail-ua1-x92f.google.com with SMTP id a1e0cc1a2514c-85c662ebbc3so21422241.0 for <74750@debbugs.gnu.org>; Wed, 08 Jan 2025 09:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736358733; x=1736963533; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=brJx9iMMlYIHclUCLSKjqTa58KItli6eJTcWcZjCWOQ=; b=j0Y2/gYhIPNQcqdtUY7FMFjlUn6MwcWWsw0GES/2lpa+Po+2s9aClsvfH5SiKEg0SZ 8xNiiWDNcHCo4abOVSIeiCyK83HVcRII9cBReIrmmeLo8dtfPBHx/fQElFqU74sLm95J cOUjvRFD6Erx6d5W0CS4onD6J2VaRg2H/iFmWQnoY21j+Nn3wvH1IGRmYz4JYISNoq+l Ro+/plUNsu1Wo3jHUCeZxmuG3IFqs8uWxqp60PVyoEP/TSCubELkY0HyA17WfIdmtn4b QYIE6C0qmUKXhcyE9DoMlhd1dvRWMX6Kt8KE647j0Hfbk083qRLkpTPldVYPeuoXiHEm 2Fwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736358733; x=1736963533; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=brJx9iMMlYIHclUCLSKjqTa58KItli6eJTcWcZjCWOQ=; b=aIy7ABr+rVeaVudTW5eaTNNe1JcocNVmbBdoW6enPbN3gPvdKZ8AliYIl36YJGPoab 0hYbBxssgWPuxQnqWjMlbE+QKtJch40imutwXYRtZoKvoSIbHT5TOeoPQA0UNPh0QBBe dwWTW71xCeIgEI8GleOQ23skMposRItjvEBCRo3Wm0x/SmqUr7chrc2SvNRNgcU4jx1/ cvyStlQdx2ZWtYrIDCYI3SLqribKQvL6Ni1LXwPIbW0DEGY/gMggLMeXx7GKZqg5DuoX acKsdGjfo1KdvxGnjWTU7A5ErRJ3eTy1jVATLKpKiC4JwL/AFyjK2kHwWQ2Lk+veuEZ5 842g== X-Forwarded-Encrypted: i=1; AJvYcCW4OhC9SroDexbxVK9Kj3+jKirdQcNeBJIMGy36BGjLZafh7QbIzM+v6zYcMjD8rMPMuLvNXg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyZYL6WypP/Bz8F7f3cGvQPNmzFoSC2Y+Snpv0/XAZuZdDmdpfy hokqUtSHUV1fJsqT88hOOkzatqDd2sis9AYOl4/Pok5bdDWUmWhk+TfyMaEBgYleK9/ZIBaz7w7 eDoXEZZrkkx6kN4k71dlZDCbBRi8= X-Gm-Gg: ASbGnctPi2HsI+WbEpMVNrELxlZ18L4INiWmVEiganWpytmjIrLDzPEhZ26QWCbvF6j tOwyVpzSers6U2yXCQQlOSL+1SZh3Rmq0P3wnRQ== X-Google-Smtp-Source: AGHT+IEfLJufBWy9yTnTxZxjiT6i3zZUByxTZuhd5zC2baBzPgH6/276JKTEtGTaz3SDWPEOAJ18LUTX50kxTE0m/R0= X-Received: by 2002:a05:6102:3709:b0:4b1:1b33:eb0f with SMTP id ada2fe7eead31-4b3d0eb5f76mr3322478137.24.1736358733133; Wed, 08 Jan 2025 09:52:13 -0800 (PST) In-Reply-To: X-Gm-Features: AbW1kvaSY_o0M6rtjL6gxbzCSh5MTI9Uv744_z9eozFBuwGwQwqKgOvFEqbFKko 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:298790 Archived-At: --0000000000007dbf59062b358591 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Martin, Just got around to testing fullheight on GTK. Under emacs -Q, I do not see a gap either on 29.4 or master from a week ago. This is on Debian 12 with GTK 3. -Stephane On Mon, Dec 16, 2024 at 4:23=E2=80=AFAM martin rudalics w= rote: > > 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 termin= al > 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 > --0000000000007dbf59062b358591 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Martin,

Just got around to testing fullheight on GTK. Under emacs -Q, I do not se= e a gap either on 29.4 or master from a week ago. This is on Debian 12 with= GTK 3.
<= br>
-Step= hane

On Mon, Dec 16, 2024 at 4:23=E2=80=AFAM mar= tin rudalics <rudalics@gmx.at>= wrote:
=C2=A0&g= t; Now, about clone-frame. Are there any objections to the below
=C2=A0> implementation that uses text-pixels?
...
=C2=A0> When
=C2=A0> PIXELWISE is non-nil or if `frame-resize-pixelwise' is non-n= il, and frame
=C2=A0> is not text-only, clone the originating frame's pixel size.<= br>
I'd write that as

=C2=A0 =C2=A0If PIXELWISE or `frame-resize-pixelwise' is non-nil and FR= AME's terminal
=C2=A0 =C2=A0is not text-only, use the pixel size of FRAME for the cloned f= rame.
=C2=A0 =C2=A0Otherwise, use the number of columns and lines of FRAME for th= e cloned
=C2=A0 =C2=A0frame.

The behavior of the 'fullscreen' parameter might be queer if
'frame-resize-pixelwise' is nil and PIXELWISE is non-nil but that&#= 39;s to
be expected.

=C2=A0> I may be able to test on GTK early this week, but I think you ha= ve GNU
=C2=A0> 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 'fullscree= n'
parameter on the GTK build (so it's not related to your function).=C2= =A0 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.=C2=A0 Surprisingly, clonin= g a
'fullheight' frame with your function removes the gap.=C2=A0 The Mo= tif frames
do not have the problem so it might be tool bar related but that should
affect the maximized frame as well.=C2=A0 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
--0000000000007dbf59062b358591--