Subject: Re: bug#38705: 26.3; set-frame-size pixelwise makes frame larger

From: martin rudalics <[email-masked]>
Date: Mon, 23 Dec 2019 11:08:14 +0100

> 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