X-Loop: help-debbugs@HIDDEN Subject: bug#74867: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess Resent-From: toomas@HIDDEN Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 14 Dec 2024 13:20:02 +0000 Resent-Message-ID: <handler.74867.B.17341823952754 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 74867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 74867 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17341823952754 (code B ref -1); Sat, 14 Dec 2024 13:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2024 13:19:55 +0000 Received: from localhost ([127.0.0.1]:45896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tMS3m-0000iM-4w for submit <at> debbugs.gnu.org; Sat, 14 Dec 2024 08:19:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:48864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <toomas@HIDDEN>) id 1tMS3i-0000i9-Rt for submit <at> debbugs.gnu.org; Sat, 14 Dec 2024 08:19:53 -0500 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 <toomas@HIDDEN>) id 1tMS3i-0006xO-HB for bug-gnu-emacs@HIDDEN; Sat, 14 Dec 2024 08:19:50 -0500 Received: from 92-115-235-80.sta.estpak.ee ([80.235.115.92] helo=rosin.ee) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <toomas@HIDDEN>) id 1tMS3e-0001Zd-Vj for bug-gnu-emacs@HIDDEN; Sat, 14 Dec 2024 08:19:50 -0500 Received: by rosin.ee (Postfix, from userid 1000) id 6373E1AB7B4; Sat, 14 Dec 2024 15:19:44 +0200 (EET) From: toomas@HIDDEN Date: Sat, 14 Dec 2024 15:19:44 +0200 Message-ID: <87jzc2z9jj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=80.235.115.92; envelope-from=toomas@HIDDEN; helo=rosin.ee X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_00=-1.9, FORGED_SPF_HELO=1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, KHOP_HELO_FCRDNS=0.4, NO_DNS_FOR_FROM=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.7 (--) ----------------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. ---------------->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 Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-silent-rules --docdir=/usr/share/doc/emacs-29.4 --htmldir=/usr/share/doc/emacs-29.4/html --libdir=/usr/lib64 --program-suffix=-emacs-29 --includedir=/usr/include/emacs-29 --infodir=/usr/share/info/emacs-29 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --with-pdumper --enable-acl --with-dbus --without-modules --without-gameuser --with-libgmp --without-gpm --without-native-compilation --without-json --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --without-mailutils --without-selinux --without-sqlite3 --with-gnutls --without-libsystemd --with-threads --without-tree-sitter --without-wide-int --with-sound=alsa --with-zlib --with-x --without-pgtk --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-xpm --with-xft --with-cairo --without-harfbuzz --without-libotf --without-m17n-flt --with-x-toolkit=gtk3 --without-xwidgets --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --without-webp --without-imagemagick --with-dumping=pdumper 'CFLAGS=-O2 -pipe -fno-fast-math -ffp-contract=off' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: C.UTF8 locale-coding-system: utf-8-unix Major mode: MH-Folder Minor modes in effect: global-git-commit-mode: t magit-auto-revert-mode: t server-mode: t hl-line-mode: t repeat-mode: t gdb-many-windows: t auto-insert-mode: t shell-dirtrack-mode: t desktop-save-mode: t windmove-mode: t display-time-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t window-divider-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /usr/share/emacs/site-lisp/transient/transient hides /usr/share/emacs/29.4/lisp/transient /usr/share/emacs/site-lisp/seq/seq hides /usr/share/emacs/29.4/lisp/emacs-lisp/seq Features: (shadow emacsbug cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine files-x etags fileloop xref project warnings sort cal-move cl-print mh-search mh-thread cus-start cus-load mh-identity mh-letter mh-comp mh-alias shr-color color textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp mm-archive mail-extr mh-mime mh-gnus dabbrev misearch multi-isearch vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view vc bug-reference magit-bookmark magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit package url-handlers magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff git-commit log-edit pcvs-util add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor server magit-mode transient benchmark magit-git magit-base magit-section cursor-sensor crm compat compat-30 org-clock diary-lib diary-loaddefs face-remap image-file image-converter ttk-mt mh-show goto-addr gnus-cite mh-seq mh-inc hl-line mh-tool-bar mh-acros mh-xface mh-utils mh-folder which-func mh-scan mule-util repeat ttk rst ttk-para-minutes ttk-bookmarks ttk-windows loop bookmark pp ttk-fonts view autorevert vc-git diff-mode vc-dispatcher oc-basic ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range message sendmail yank-media rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi ebuild-mode skeleton mh-e mh-buffers mh-loaddefs dired dired-loaddefs helpful cc-langs cc-vars cc-defs imenu trace edebug debug backtrace info-look info f help-fns radix-tree elisp-refs s dash rect org-agenda org-element org-persist org-id avl-tree generator org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec eww xdg url-queue thingatpt shr pixel-fill kinsoku url-file svg xml dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source eieio eieio-core password-cache url-vars mailcap puny mm-url gnus nnheader gnus-util time-date mail-utils range wid-edit mm-util mail-prsvr generic quail gdb-mi bindat gud autoinsert compile text-property-search term disp-table shell pcomplete ehelp comint ansi-osc ansi-color ring sh-script rx json subr-x map byte-opt smie treesit executable edmacro kmacro desktop frameset windmove cl-macs gv cl-extra help-mode cl-seq time use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core cl-loaddefs cl-lib bytecomp byte-compile site-gentoo pcase rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 851013 144935) (symbols 48 50853 66) (strings 32 231723 13704) (string-bytes 1 6379423) (vectors 16 119695) (vector-slots 8 2709287 152463) (floats 8 554 606) (intervals 56 35068 103) (buffers 976 65))
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: toomas@HIDDEN Subject: bug#74867: Acknowledgement (29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess) Message-ID: <handler.74867.B.17341823952754.ack <at> debbugs.gnu.org> References: <87jzc2z9jj.fsf@HIDDEN> X-Gnu-PR-Message: ack 74867 X-Gnu-PR-Package: emacs Reply-To: 74867 <at> debbugs.gnu.org Date: Sat, 14 Dec 2024 13:20:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 74867 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 74867: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74867 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#74867: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 14 Dec 2024 13:30:02 +0000 Resent-Message-ID: <handler.74867.B74867.17341829924796 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 74867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: toomas@HIDDEN Cc: 74867 <at> debbugs.gnu.org Received: via spool by 74867-submit <at> debbugs.gnu.org id=B74867.17341829924796 (code B ref 74867); Sat, 14 Dec 2024 13:30:02 +0000 Received: (at 74867) by debbugs.gnu.org; 14 Dec 2024 13:29:52 +0000 Received: from localhost ([127.0.0.1]:45947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tMSDO-0001FE-UQ for submit <at> debbugs.gnu.org; Sat, 14 Dec 2024 08:29:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tMSDM-0001Et-9c; Sat, 14 Dec 2024 08:29:49 -0500 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 <eliz@HIDDEN>) 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==; Date: Sat, 14 Dec 2024 15:29:34 +0200 Message-Id: <86y10itmtd.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87jzc2z9jj.fsf@HIDDEN> References: <87jzc2z9jj.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) merge 74867 74866 thanks > From: toomas@HIDDEN > 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.
Received: (at control) by debbugs.gnu.org; 14 Dec 2024 13:29:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 14 08:29:52 2024 Received: from localhost ([127.0.0.1]:45949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tMSDQ-0001FK-4b for submit <at> debbugs.gnu.org; Sat, 14 Dec 2024 08:29:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tMSDM-0001Et-9c; Sat, 14 Dec 2024 08:29:49 -0500 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 <eliz@HIDDEN>) 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==; Date: Sat, 14 Dec 2024 15:29:34 +0200 Message-Id: <86y10itmtd.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: toomas@HIDDEN In-Reply-To: <87jzc2z9jj.fsf@HIDDEN> Subject: Re: bug#74867: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess References: <87jzc2z9jj.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: 74867 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) merge 74867 74866 thanks > From: toomas@HIDDEN > 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.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.