From: Michael Heerdegen <michael_heerdegen@web.de>
To: martin rudalics <rudalics@gmx.at>
Cc: 19869@debbugs.gnu.org
Subject: bug#19869: 25.0.50; default-frame-alist: width versus fullheight
Date: Sun, 15 Feb 2015 21:55:27 +0100 [thread overview]
Message-ID: <87k2ziuc74.fsf@web.de> (raw)
In-Reply-To: <87oaouud94.fsf@web.de> (Michael Heerdegen's message of "Sun, 15 Feb 2015 21:32:39 +0100")
Hello again,
I forgot to mention that this is all reproducible here with emacs -Q.
Apparently the frame is created with the correct width, then the width
changes while calling `face-set-after-frame-default'. This happens
before the frame is actually displayed.
Here is what I evaluated in emacs -Q:
--8<---------------cut here---------------start------------->8---
(progn
(set-face-attribute 'default nil :height 175)
(setq default-frame-alist
'((width . 100)
(fullscreen . fullheight)))
(advice-add
'face-set-after-frame-default :around
(lambda (f frame &rest args)
(message "Width before face-set-after-frame-default: %S" (frame-width frame))
(apply f frame args)
(message "Width after face-set-after-frame-default: %S" (frame-width frame))))
(make-frame))
--8<---------------cut here---------------end--------------->8---
In *Messages* I get
Width before face-set-after-frame-default: 98
Width after face-set-after-frame-default: 63
#<frame emacs@drachen 0xf99350>
next prev parent reply other threads:[~2015-02-15 20:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-14 23:24 bug#19869: 25.0.50; default-frame-alist: width versus fullheight Michael Heerdegen
2015-02-15 11:35 ` martin rudalics
2015-02-15 16:31 ` Michael Heerdegen
2015-02-15 20:32 ` Michael Heerdegen
2015-02-15 20:55 ` Michael Heerdegen [this message]
2015-02-15 21:05 ` Michael Heerdegen
2015-02-15 21:37 ` Michael Heerdegen
2015-02-16 18:36 ` 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=87k2ziuc74.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=19869@debbugs.gnu.org \
--cc=rudalics@gmx.at \
/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).