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, 11 Dec 2024 17:41:01 -0500 Message-ID: References: <861pyfd8pe.fsf@gnu.org> <4d057282-8ec2-4ddb-ac0f-23e65af6e5a1@gmx.at> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003818580629064da0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27378"; 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 Dec 11 23:43:24 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 1tLVQR-0006yp-5V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 23:43:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLVQC-0007ii-AQ; Wed, 11 Dec 2024 17:43: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 1tLVQ7-0007iL-Er for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 17:43:03 -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 1tLVQ7-00071T-5y for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 17:43:03 -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=lE6O41LCV56zN3gzAGnaq2a2AX++pWgEBrP7asfcy+o=; b=qSa/pYfOj6WabiQA+b8i8v+SMJ5Q9H5jHrT1OW43z068k4SlKbJeFVADLjGbKPikWp0Q7j9/NYUrsmgFcHcGcyKhon26OCQPlaZ7lfn7HNT0oC2FuKq6JVZOseteHgvBA02JEgCWPCEwujoGycFy2GE03kjeEk7fsSeYiU3pWf0ZJae9YSyfLNN7oDwoBpbDezFfjaPSGcuZJ8FOZl0rWSj5DuJ9AVtwzQDmtF7p8kkLolV01/9hjeB2Mlqw+sffUwRZbdqiXefkaObGU6YdQHBmzD4mtfakjXE1rBIUWCEGuWSigokaJDw5jneEULNzh5lsTcnn0bxf3pe1bYKC3Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLVQ6-0006gF-KE for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 17:43:02 -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, 11 Dec 2024 22:43: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.173395697825663 (code B ref 74750); Wed, 11 Dec 2024 22:43:02 +0000 Original-Received: (at 74750) by debbugs.gnu.org; 11 Dec 2024 22:42:58 +0000 Original-Received: from localhost ([127.0.0.1]:36652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLVPx-0006fX-Ll for submit@debbugs.gnu.org; Wed, 11 Dec 2024 17:42:58 -0500 Original-Received: from mail-vk1-f179.google.com ([209.85.221.179]:50219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLVPs-0006fF-1E for 74750@debbugs.gnu.org; Wed, 11 Dec 2024 17:42:52 -0500 Original-Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-5160f1870f3so1484561e0c.0 for <74750@debbugs.gnu.org>; Wed, 11 Dec 2024 14:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733956902; x=1734561702; 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=lE6O41LCV56zN3gzAGnaq2a2AX++pWgEBrP7asfcy+o=; b=X8ORGREZhg2/Clv5ZdTbSoHigaQOuJjWlJy0gNtg7ETiI7GpcsIXbBP6vviRpjE3mM IXWD5IMbjWlPp98k62oxbgOaZRNJIGrgo9oDTKgXR2GFcwfQgvlviQdQesxfKuUHFX71 NdJCP3aiDs+2wDVf+pKl/1YXmAk6pfVNrRuI1GGM3rGCYdb1Nrj7K46Sn1xlmymq4X+W bV46KN9cYob6YVjs3KGOVwiZNV7boIaADCBezEZCuXvmyMSLnopGEpP4iRaaKZBU7LBL u4YquwdB8NFYgkPwVIsKvjbKLN3/MtOjjYG4xDWRr+OwGYrgwf/p9J+lUSbeTnxDfBMC O42g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733956902; x=1734561702; 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=lE6O41LCV56zN3gzAGnaq2a2AX++pWgEBrP7asfcy+o=; b=K/A+k4482owO47aOp9ezs3yGY4kBLJEpPxVlBWaIiWvRCdYhOY59SOz5iLkyXGtgMU UADzFwTFitwz7bwuSf0FpQ3yD+fMyUwewhpn9J39Gn017V+BYXAsCDQwy7GJY66cljyQ MvuOPeZXp61pplgZz5ULQDJ+Z9jX65xBSRt+kvWV546O+4iwEPVxnbC3ugINMKHZot7d 8ABKXhsop4XjHfMYNFKoFIqMKiqx/9PaVLd3+HksRxniD7DVq5uW7iOVp8g/z9KItbnK TPAEGYC+j0z7BV+CzuIyfE/MPH7vGGdEfl7/c68kzNXiRCLNme6MNZwSovtw5wYse/Bz xlxA== X-Forwarded-Encrypted: i=1; AJvYcCVSL8kpXtTOT6U3i7wGW5MlwfNAJR8mWBEc2ukNKu4JlMO8ioviJjhjbSj/rLWXNfcX4woWaw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyeVMippWOLwm/V/R+DbRDlBaYhvpuMRvgcG6KyvQPEteFDClbX yDEAoHt5fmRWQZ0kQt0APp+SU966b3ZcA9y2o95t3CslJyHFBfDV85KR9IrT68diQrtB7cemsTR KNQTxj2nwAZpFSmnZI1FthMtJQlQ= X-Gm-Gg: ASbGncsVHV3mp7FTwCR+irgPIJlWMUOhBDhByzXRbC49BX0Fd1yyU6TG48ff1et8IE+ KchwneYl1FBQq7igJLnA2QqahrzD+1Doq1WE= X-Google-Smtp-Source: AGHT+IHffD1sK/D5RgsTsGNiJ16l6s43oMJDePqc+vnYUunlpvjDJ79imVp42xCdEkSmAueiiNVJ0F4vD4RFKuPtvMQ= X-Received: by 2002:a05:6122:7c6:b0:515:e446:b9f2 with SMTP id 71dfb90a1353d-518b5de31a8mr1471046e0c.12.1733956902326; Wed, 11 Dec 2024 14:41:42 -0800 (PST) In-Reply-To: <4d057282-8ec2-4ddb-ac0f-23e65af6e5a1@gmx.at> 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:296873 Archived-At: --0000000000003818580629064da0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That patch works to address make-frame's respect for text-pixels, at least on NS (the only platform I tested). Now to address the clone-frame implementation to respect pixelwise, and/or as you suggested, perhaps a formal frame parameter resize-pixelwise. If we adopt the change I proposed it could be used in Emacs 30 or 31 since this is a bug (but not a regression). If we go for resize-pixelwise, it'll be 31, right? On Wed, Dec 11, 2024 at 4:38=E2=80=AFAM martin rudalics w= rote: > > Somewhere in the bowels > > of frame.c, et.al., is an issue where text-pixels behaves differently > than > > set-frame-size which is reliable on NS where make-frame using > text-pixels > > is incorrect by the vertical scroll bar width. GTK it's off, too, but = I > > didn't analyze that further. > > If you mean that with > > (progn > (setq frame-resize-pixelwise t) > (make-frame '((width . (text-pixels . 800))))) > > then > > (frame-text-width) > > evaluates to 784, please try the attached patch. > > Thanks, martin --0000000000003818580629064da0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That patch works to address make-frame's respect for text-pixels, at= least on NS (the only platform I tested).

Now to address the clone-frame implementation= to respect pixelwise, and/or as you suggested, perhaps a formal frame para= meter resize-pixelwise. If we adopt the change I proposed it could be used = in Emacs 30 or 31 since this is a bug (but not a regression). If we go for = resize-pixelwise, it'll be 31, right?

On Wed= , Dec 11, 2024 at 4:38=E2=80=AFAM martin rudalics <rudalics@gmx.at> wrote:
=C2=A0> Somewhere in the bowels
=C2=A0> of frame.c, et.al., is an issue where text-pixels behaves differently t= han
=C2=A0> set-frame-size which is reliable on NS where make-frame using te= xt-pixels
=C2=A0> is incorrect by the vertical scroll bar width. GTK it's off,= too, but I
=C2=A0> didn't analyze that further.

If you mean that with

(progn
=C2=A0 =C2=A0(setq frame-resize-pixelwise t)
=C2=A0 =C2=A0(make-frame '((width . (text-pixels . 800)))))

then

(frame-text-width)

evaluates to 784, please try the attached patch.

Thanks, martin
--0000000000003818580629064da0--