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#74867: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess Date: Sat, 14 Dec 2024 15:29:34 +0200 Message-ID: <86y10itmtd.fsf@gnu.org> References: <87jzc2z9jj.fsf@toomas.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20477"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74867@debbugs.gnu.org To: toomas@rosin.ee Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 14:30:22 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 1tMSDu-00059v-J7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 14:30:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMSDi-0000sb-Ld; Sat, 14 Dec 2024 08:30:10 -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 1tMSDb-0000rx-JU for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 08:30: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 1tMSDb-0006tV-4l for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 08:30:03 -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=BX9bOVsZg0BWu2svzRpBU6OfdAkcixqgGL7IHuVMD7Y=; b=vCD7ntYKLWZ4YgQojVyvE5iNwQnTg9sJy+mVCPw9n2E9kgyjTCp2DHWO2KQRbybhLz6sQQKcxJSOMdjeGDI9Qu/JSBKKJF4czohRbelNq0ddmpUmlqQ+OySZsvGeqVD5s2JcwHvVPMnv94RZ2dyTJ/8GX3Nj2xCwdTm2DSHc2ddODz4jpktX0dQsmg61paOYIcqPhjbEmFLnaOl+2LWFha6rbDzIdBcBgEsPFLwau6/AOGrfSdGgPmnI9aJ2WxxCyIobEbVBcuhQz+Zv01zBaMK7dtLrj5hHGpYMbxpaQv+lNtiKsoliTJaMzNeaYTixaiw2XGi/H8iuc7ql3GF5TQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMSDa-0001GC-G9 for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 08:30: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:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74867 X-GNU-PR-Package: emacs Original-Received: via spool by 74867-submit@debbugs.gnu.org id=B74867.17341829924796 (code B ref 74867); Sat, 14 Dec 2024 13:30:02 +0000 Original-Received: (at 74867) by debbugs.gnu.org; 14 Dec 2024 13:29:52 +0000 Original-Received: from localhost ([127.0.0.1]:45947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMSDO-0001FE-UQ for submit@debbugs.gnu.org; Sat, 14 Dec 2024 08:29:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMSDM-0001Et-9c; Sat, 14 Dec 2024 08:29:49 -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 1tMSDH-0006af-1g; Sat, 14 Dec 2024 08:29:43 -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=BX9bOVsZg0BWu2svzRpBU6OfdAkcixqgGL7IHuVMD7Y=; b=abeX8F927o+I k4EZgnSgDigekMyOwXzUinnmrlPaWvbA1qq//GvpdKlx/poqSMq/GMLlvPKiKwusF7lOfBCDRu3hr yBNpSFWHL6qcS0JNDnVGdHeS1BaG0A2+VF8F7Ewy0gDBw+eq/bB5E/eW2x4nqewkyvLqOp3JR0Cs0 v8ukeHYYat9jQL7goPufZZU4Ie5HsL0yd7fnoV2XtNc4amj1mQAzmtXKZWCWqcCw9Ck8ecU9POuUw 6mFyZhNNqLuG/Bax9a3sLTiFQiulFSps0BhORbuGqalv3tGHOcfqKvhNcnl9VDeFzVkxesThfaZjT SuVhK+qoz3yjW8eK09EtRA==; In-Reply-To: <87jzc2z9jj.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:297051 Archived-At: merge 74867 74866 thanks > From: toomas@rosin.ee > Date: Sat, 14 Dec 2024 15:19:44 +0200 > > > ----------------8<----------------8<----------------8<---------------- > > In "emacs -Q" under X (I have XFCE), evaluate: > > (defun fit (lin col) > "Try to fit some text (LIN lines and COL columns) in 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 new frame's width is one character short and the lines > do not fit into the new frame any more. This is an exact duplicate of bug#74866, which you filed about 20 minutes earlier, so I'm now merging them.