unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Bob Weiner <rsw@gnu.org>, 28915@debbugs.gnu.org
Subject: bug#28915: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels)
Date: Sat, 21 Oct 2017 10:05:17 +0200	[thread overview]
Message-ID: <59EAFFBD.7060908@gmx.at> (raw)
In-Reply-To: <m0r2tx7m3r.rsw@gnu.org>

 > Each time the following two expressions are called, they increase the
 > width or height respectively of the selected frame by 4 pixels rather
 > than leaving the dimension unchanged.  Even if this is a rounding error
 > due to use of column/line math, shouldn't there be a special case test
 > for this that prevents the size change?  It would simplify coding.
 >
 > (progn (set-frame-width nil (frame-pixel-width) nil t)
 >         (frame-pixel-width))
 >
 > (progn (set-frame-height nil (frame-pixel-height) nil t)
 >         (frame-pixel-height))

This is not a bug.  For historic reasons, the second arguments of
‘set-frame-width’ and ‘set-frame-height’ must specify the width and
height of the _text area_ of the frame and not its native width and
height.  You can rely on this to never ever change.  Section 29.3.4
Frame Size of the Elisp manual should explain everything.

martin






  reply	other threads:[~2017-10-21  8:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20 17:41 bug#28915: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels) Bob Weiner
2017-10-21  8:05 ` martin rudalics [this message]
2017-10-31  8:42   ` martin rudalics
2017-10-21  8:16 ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59EAFFBD.7060908@gmx.at \
    --to=rudalics@gmx.at \
    --cc=28915@debbugs.gnu.org \
    --cc=rsw@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).