From: Markus Triska <triska@metalevel.at>
To: 38146@debbugs.gnu.org
Subject: bug#38146: 26.1; set-frame-width sometimes does not work on OSX
Date: Sat, 09 Nov 2019 10:21:13 +0100 [thread overview]
Message-ID: <m2v9rtjth2.fsf@metalevel.at> (raw)
When I do:
$ emacs -Q -l frame.el
where frame.el consists of the forms:
(defface item-frame
'((((class color))
(:family "DejaVu Sans Mono"
:height 151)))
"Face for frame to demonstrate the issue.")
(progn
(set-frame-font (face-font 'item-frame))
(set-frame-width nil 102)
(set-frame-position nil
(/ (- (display-pixel-width) (frame-pixel-width)) 2)
(cdr (frame-position))))
and then, in the resulting Emacs instance, do:
M-: (frame-width) RET
I get: 80.
However, the expected result is 102, because the form
(set-frame-width nil 102) above sets the frame width to 102.
I get the expected value of 102 if I remove the call to
set-frame-position. This is unexpected, because whether
set-frame-position is called should not influence the frame width.
When I evaluate the form (set-frame-width nil 102) in the resulting
Emacs instance, the frame width is set to 102 as expected.
Thank you for looking into this!
All the best,
Markus
In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars)
of 2018-09-22 built on mt-mb
Windowing system distributor 'The X.Org Foundation', version 11.0.11502000
Configured using:
'configure --prefix=/opt/local --without-ns --without-dbus
--without-gconf --without-libotf --without-m17n-flt --without-gpm
--with-gnutls --with-xml2 --with-modules --infodir
/opt/local/share/info/emacs --with-x-toolkit=lucid --without-xaw3d
--without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif
--with-png --with-lcms2 --without-rsvg --with-xft 'CFLAGS=-pipe -Os
-arch x86_64' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib
-Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie
-arch x86_64''
Configured features:
XPM JPEG TIFF GIF PNG GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LCMS2
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
next reply other threads:[~2019-11-09 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-09 9:21 Markus Triska [this message]
2019-11-10 10:01 ` bug#38146: 26.1; set-frame-width sometimes does not work on OSX martin rudalics
2021-01-30 7:03 ` Lars Ingebrigtsen
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=m2v9rtjth2.fsf@metalevel.at \
--to=triska@metalevel.at \
--cc=38146@debbugs.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).