GNU bug report logs -
#28915
Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels)
Previous Next
Reported by: Bob Weiner <rsw <at> gnu.org>
Date: Fri, 20 Oct 2017 17:43:01 UTC
Severity: normal
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28915 in the body.
You can then email your comments to 28915 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28915
; Package
emacs
.
(Fri, 20 Oct 2017 17:43:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Bob Weiner <rsw <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 20 Oct 2017 17:43:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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))
Bob
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28915
; Package
emacs
.
(Sat, 21 Oct 2017 08:06:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28915 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28915
; Package
emacs
.
(Sat, 21 Oct 2017 08:17:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 28915 <at> debbugs.gnu.org (full text, mbox):
I forgot to present the necessary code adjustments for this. Use
(setq frame-resize-pixelwise t)
(progn (set-frame-width nil (frame-text-width) nil t)
(frame-native-width))
(progn (set-frame-height nil (frame-text-height) nil t)
(frame-native-height))
martin
Reply sent
to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
(Tue, 31 Oct 2017 08:43:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Bob Weiner <rsw <at> gnu.org>
:
bug acknowledged by developer.
(Tue, 31 Oct 2017 08:43:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 28915-done <at> debbugs.gnu.org (full text, mbox):
> 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.
Closing this bug.
martin
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 28 Nov 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 263 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.