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#74866: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess Date: Sat, 14 Dec 2024 18:16:22 +0100 Message-ID: References: <87msgyzakk.fsf@toomas.mail-host-address-is-not-set> <86zfkytmyt.fsf@gnu.org> 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="34136"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74866@debbugs.gnu.org To: Eli Zaretskii , toomas@rosin.ee Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 18:17: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 1tMVlb-0008hi-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 18:17:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMVlK-0005Oo-7g; Sat, 14 Dec 2024 12:17:06 -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 1tMVlI-0005OV-2l for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 12:17: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 1tMVlH-0001nZ-Qj for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 12:17:03 -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=ZUJjqCt3zwMuzsdZvRxuo1X2O5pg/KgiqTN9czwSNgg=; b=VxWXd7zwmcqNDzTDF8L7WiasZDoO/Pb8ubdmXv9RYM3WdNFLUO3l4eUpKzVe5oUwg9tlcijqPRBhenb6BHw9jTJnmsdlL5vSoyIic64MxUN0FGtBd8f3mrVIMPAjEYlUy6KvU5Gq4eRUrIWst8nXfEgiMdqu+JbqjQtjffBQFY1oCkn3RdAtgsRcUZeItwR0+9AHN8KNG6/AHv27ri/cygDmuTGjOHlt7IbuWbNmPDUj1o+9nwHl7x6kYe2N+tnfYFEuacQ0L8OlXKEO18UacxWPPh2U1lGu1snF/EwFFEsnlY5jesjYCnUqmw5IFUVkI+Ft9qV0gXwKQO2EB4uDvw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMVlG-0004mV-IO for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 12:17: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: Sat, 14 Dec 2024 17:17: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.173419659818331 (code B ref 74866); Sat, 14 Dec 2024 17:17:02 +0000 Original-Received: (at 74866) by debbugs.gnu.org; 14 Dec 2024 17:16:38 +0000 Original-Received: from localhost ([127.0.0.1]:48204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMVkr-0004lb-Mt for submit@debbugs.gnu.org; Sat, 14 Dec 2024 12:16:38 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:56447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMVkp-0004lG-Ae for 74866@debbugs.gnu.org; Sat, 14 Dec 2024 12:16:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1734196585; x=1734801385; i=rudalics@gmx.at; bh=ZUJjqCt3zwMuzsdZvRxuo1X2O5pg/KgiqTN9czwSNgg=; 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=jPWzwyy3smN0+zXTgnpjMSjeAg1rfkwJj6vVbNbK0P/zkYHeVnlKG5Z+GOvqI1FU zZcZIfyZN1Ms6ibKcbJqGXU3Aq0poNfI/uIeVq1QMAA8OkPURQG0+KQbUb2hDh24r MxfzRjDph5ORLxaS4IiqEHnCG7hJDMAymFoUhwv4/vvKJJi/s0lPkWR4pa9SSX18y Y6onfi8Sw3/eeaK8On2FvfAs5WsPulh5WobH4eB7feKuaHznPVFoutVm9AFDM/+Ib Z6xpArlHbElYWCT1OD5uWKqfjmCg1j6pmE9GhFbrZdHxrI4Y38nUukDvJz10IKl52 JIm3xzYSI6G0Jzorhg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.8.232]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N4hvb-1tlyiU1nfz-010N8K; Sat, 14 Dec 2024 18:16:25 +0100 Content-Language: en-US In-Reply-To: <86zfkytmyt.fsf@gnu.org> X-Provags-ID: V03:K1:/Me9CGAMVnOnEPFRh/IVYOsvn5PeYZSOAK7XtCVcyUL7e/Zahxn nwQvT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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:297064 Archived-At: > Martin, any comments? Looks like an idiosyncrasy of 'set-face-attribute'. The following seems to work here. Don't ask me why. (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) (vertical-scroll-bars . nil))))) (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) (set-face-attribute 'default nil :height 57) (fit-frame-to-buffer)))) martin