From: Eli Zaretskii <eliz@gnu.org>
To: toomas@rosin.ee
Cc: 74867@debbugs.gnu.org
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 [thread overview]
Message-ID: <86y10itmtd.fsf@gnu.org> (raw)
In-Reply-To: <87jzc2z9jj.fsf@toomas.mail-host-address-is-not-set>
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.
prev parent reply other threads:[~2024-12-14 13:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-14 13:19 bug#74867: 29.4; fit-frame-to-window + no vertical scroll bar + changed face height = mess toomas
2024-12-14 13:29 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86y10itmtd.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=74867@debbugs.gnu.org \
--cc=toomas@rosin.ee \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.