GNU bug report logs -
#37630
27.0.50; image-mode-fit-frame doesn't
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sat, 5 Oct 2019 09:11:01 UTC
Severity: normal
Found in version 27.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #79 received at 37630 <at> debbugs.gnu.org (full text, mbox):
martin rudalics <rudalics <at> 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
This bug report was last modified 3 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.