[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37630: 27.0.50; image-mode-fit-frame doesn't
From: |
Lars Ingebrigtsen |
Subject: |
bug#37630: 27.0.50; image-mode-fit-frame doesn't |
Date: |
Wed, 23 Mar 2022 18:30:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes:
> A silly one. For historical reason, 'set-frame-height' expects a "text
> height" as argument. 'frame-pixel-height' OTOH returns the "native
> height" of the frame. How these relate is explained in sections 30.3.1
> and 30.3.4 of the Elisp Manual. The idempotent operation you have in
> mind is probably
>
> (set-frame-height nil (frame-text-height) nil t)
>
> although with a GTK build you usually won't notice the difference.
Ah, right.
I've poked at the image-mode-fit-frame code some more to see whether we
could use frame-text-height directly without any further changes, but
that makes the frame too short. So there's something not adding up in
the computations it does, but it's not clear what, exactly.
Perhaps somebody else should take a peek at it...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Lars Ingebrigtsen, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Eli Zaretskii, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Lars Ingebrigtsen, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Lars Ingebrigtsen, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Eli Zaretskii, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Lars Ingebrigtsen, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Eli Zaretskii, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, martin rudalics, 2022/03/23
- bug#37630: 27.0.50; image-mode-fit-frame doesn't,
Lars Ingebrigtsen <=
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, martin rudalics, 2022/03/24
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Lars Ingebrigtsen, 2022/03/24