GNU bug report logs -
#38705
26.3; set-frame-size pixelwise makes frame larger
Previous Next
Reported by: ynyaaa <at> gmail.com
Date: Sun, 22 Dec 2019 12:38:01 UTC
Severity: normal
Tags: fixed
Found in version 26.3
Fixed in version 27.1
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> set-frame-size with PIXELWISE=t makes frame larger than specified value.
> (setq frame-resize-pixelwise t) makes no difference.
>
> (progn (set-frame-size nil 500 500 t)
> (list (list (frame-outer-width)
> (frame-pixel-width)
> (frame-inner-width))
> (list (frame-outer-height)
> (frame-pixel-height)
> (frame-inner-height))))
> =>((549 533 533) (595 536 536))
Right. But here
(progn (set-frame-size nil 500 500 t)
(list (list (frame-outer-width)
(frame-pixel-width)
(frame-inner-width)
(frame-text-width))
(list (frame-outer-height)
(frame-pixel-height)
(frame-inner-height)
(frame-text-height))))
=>((540 532 532 500) (583 536 536 500))
This is because 'set-frame-size' sets "the size of the text area of
FRAME" and the size of the text area is returned by 'frame-text-width'
and 'frame-text-height'. Just another Emacs idiosyncrasy ...
martin
This bug report was last modified 5 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.