[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37630: 27.0.50; image-mode-fit-frame doesn't
From: |
martin rudalics |
Subject: |
bug#37630: 27.0.50; image-mode-fit-frame doesn't |
Date: |
Wed, 23 Mar 2022 18:07:48 +0100 |
>>>> (set-frame-height nil (frame-pixel-height) nil t)
>>>
>>> Yes, it does here: the resulting frame is 2 lines taller.
>>
>> So it does here (with a non-toolkit build); I didn't notice. (It does
>> nothing in a Gtk build.)
>>
>> I guess that's a bug in `set-frame-height'?
>
> It could also be a feature. Martin?
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.
martin
- 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 <=
- 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, martin rudalics, 2022/03/24
- bug#37630: 27.0.50; image-mode-fit-frame doesn't, Lars Ingebrigtsen, 2022/03/24