From: martin rudalics <rudalics@gmx.at>
To: ynyaaa@gmail.com, 38705@debbugs.gnu.org
Subject: bug#38705: 26.3; set-frame-size pixelwise makes frame larger
Date: Mon, 23 Dec 2019 11:08:14 +0100 [thread overview]
Message-ID: <40c9e794-3873-a4a4-eaea-8a7d2f6bacc7@gmx.at> (raw)
In-Reply-To: <8636dcr0yl.fsf@gmail.com>
> 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
next prev parent reply other threads:[~2019-12-23 10:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-22 12:36 bug#38705: 26.3; set-frame-size pixelwise makes frame larger ynyaaa
2019-12-23 10:08 ` martin rudalics [this message]
2019-12-24 13:49 ` ynyaaa
2019-12-25 9:49 ` martin rudalics
2020-01-02 8:52 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40c9e794-3873-a4a4-eaea-8a7d2f6bacc7@gmx.at \
--to=rudalics@gmx.at \
--cc=38705@debbugs.gnu.org \
--cc=ynyaaa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.