From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74866: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess Date: Sat, 14 Dec 2024 15:26:18 +0200 Message-ID: <86zfkytmyt.fsf@gnu.org> References: <87msgyzakk.fsf@toomas.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74866@debbugs.gnu.org To: toomas@rosin.ee, martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 14:29:23 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 1tMSCw-00044n-8o for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 14:29:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMSCf-0000hg-Ci; Sat, 14 Dec 2024 08:29: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 1tMSCc-0000hS-VB for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 08:29: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 1tMSCc-0005yG-M8 for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 08:29:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=GD3momTah1EAAlrBcwBef+41RV5GTadxd/h50Fk/2Dc=; b=k1Qu8bw1zV2j7jcmjRGf3pqZKO8vJpESXc0KmnqHYUd0UF5KUZvP5eh9QKlISylVO7+OuHx6z7Tj2OT2cemAFB7Tx9uQPfUpQPFQ9Nsb5jqYFwuCnUr5zmG9zfSy/wQYlkm9s+a678zV0epAoNa5464jSb1JUexBs8UECSl/oU7wd+ErTC7Tw88jZcJaq9eUZgqLB1kyxsCAoj1ox8UIlWIrMtTWG4GwwazHCjVdZt5Du/mlRlYMMBIGWBjp8CzC/efwR1xqcVKqRnwlrFSFr59pC80LpjGJ7lFmPnUsyYDKIUJ/jksKU7tHxFV3toKXozoM6lsu6h74/y/Gu4Aing==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMSCc-0001Dh-GE for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 08:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2024 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74866 X-GNU-PR-Package: emacs Original-Received: via spool by 74866-submit@debbugs.gnu.org id=B74866.17341829314669 (code B ref 74866); Sat, 14 Dec 2024 13:29:02 +0000 Original-Received: (at 74866) by debbugs.gnu.org; 14 Dec 2024 13:28:51 +0000 Original-Received: from localhost ([127.0.0.1]:45942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMSCN-0001D7-Rx for submit@debbugs.gnu.org; Sat, 14 Dec 2024 08:28:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMSCL-0001Cs-EC for 74866@debbugs.gnu.org; Sat, 14 Dec 2024 08:28:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMSA8-0004dO-PV; Sat, 14 Dec 2024 08:26:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GD3momTah1EAAlrBcwBef+41RV5GTadxd/h50Fk/2Dc=; b=V566wu+OQAEz fl1LxojRWmaSNoDiUFlfJFAsEAU7cyNcCfZbF9t5zHn7SSN3l7kW92Td23xHKMrTpaMzqSe97XGz3 uG76pKWHMrdAS5NeHQXtNE4AV8ENsu8wYaDs/ViKuVyJgvACCq9/glNIQyX+st7ceCVtdHc5NkmxG +jISu4YgJdS3YUL1aADia8swqnquj5aXXk2QBJ9ZE0oRQ/FUDfC8+bu9jD0uMBh3XgERVa8Lhptfm t9KtmOlGzg37tlbqWauJp0AhgNxo7Bq9l3xfDLW3yZh7aVFeJJRE9X1sQs1Xtz/T8BzJqf5zuuZRL ftUyXKw3/ZIXY32baw4LLA==; In-Reply-To: <87msgyzakk.fsf@toomas.mail-host-address-is-not-set> 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:297050 Archived-At: > From: toomas@rosin.ee > Date: Sat, 14 Dec 2024 14:57:31 +0200 > > > ----------------8<----------------8<----------------8<---------------- > > In "emacs -Q" under X (I have XFCE), evaluate: > > (defun fit (lin col) > "Fit some text (LIN lines and COL columns) into a newly created frame." > (interactive) > (let ((buf (get-buffer-create "*foo*")) > (frm (make-frame '((z-group . above))))) > (with-current-buffer buf > (erase-buffer) > (setq mode-line-format '("")) > (dotimes (_ lin) (insert (format "%s\n" (make-string col ?x)))) > (goto-char (point-min))) > (with-selected-frame frm > (switch-to-buffer buf) > (fit-frame-to-buffer)))) > ;;; LIN and COL are arbitrary, make them sufficiently small. > (fit 9 23) > > So far, so good. Now evaluate the following: > > (setq-default vertical-scroll-bar nil) > (set-face-attribute 'default nil :height 75) > (fit 9 23) > > On my system, the frame's width is now one character short and the lines > do not fit in the new frame any more. > > ---------------->8---------------->8---------------->8---------------- > > In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, > cairo version 1.18.2) of 2024-12-10 built on localhost > Windowing system distributor 'The X.Org Foundation', version 11.0.12101014 > System Description: Gentoo Linux FWIW, I cannot reproduce this, neither in Emacs 29.2 nor in the current emacs-30 branch (which will soon become Emacs 30.1). Martin, any comments?