[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing height to fit window
From: |
Eli Zaretskii |
Subject: |
Re: Changing height to fit window |
Date: |
Wed, 30 Nov 2022 17:33:58 +0200 |
> Date: Wed, 30 Nov 2022 14:40:20 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> > > Instead of repeating, I want to have a function that adjusts
> > > the scale so that the contents of the buffer fit the window,
> > > based on the longest line. What can I do?
> >
> > Ask Emacs about the pixel-height of the text, then compute the scale you
> > need to make that the same as the pixel-height of the window's body.
>
> Are you discussing line-pixel-height and window-pixel-height ?
No, I thought about window-text-pixel-size and window-body-height.