From: Joost Kremers <joostkremers@fastmail.fm>
To: martin rudalics <rudalics@gmx.at>
Cc: 19972@debbugs.gnu.org
Subject: bug#19972: 24.4; Font size change doesn't update (window-total-width)
Date: Mon, 02 Mar 2015 04:18:23 +0100 [thread overview]
Message-ID: <87egp8rssg.fsf@fastmail.fm> (raw)
In-Reply-To: <54F32CDE.9080308@gmx.at>
On Sun, Mar 01 2015, martin rudalics <rudalics@gmx.at> wrote:
> > In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
> > of 2014-10-22 on IdeaPad
>
> Could you try with current master/trunk? Lots of things changed in this
> area recently.
I cloned the git master branch and compiled Emacs (version says it's
25.0.50.1) and still see the same problem.
After Eli's comments, it's now clear that the problem is slightly
different than what I initially thought, though. The issue is not with
font size changes in general, because the frame is usually adjusted to
match. The problem arises when a font size change takes place *without*
the frame changing its size accordingly. In this case, the number of
columns on a frame is changed, but this is not reflected in the return
value of `window-total-width`.
This happened in my case because I ran the test on a maximised Emacs
frame, which wasn't adjusted. (Though I don't know whether that's due to
Emacs not resizing its frame or due to the window manager preventing
it.)
Here are the results from the calls to `window--dump-frame` (done on
Emacs 25.0.50.1):
========== one ==============================
right before `face-spec-recalc'
frame pixel: 1920 x 971 cols/lines: 240 x 57 units: 8 x 17
frame text pixel: 1888 x 971 cols/lines: 236 x 57
tool: 0 scroll: 16/0 fringe: 16 border: 0 right: 0 bottom: 0
#<window 3 on *ielm*> parent: nil
pixel left: 0 top: 0 size: 1920 x 954 new: 0
char left: 0 top: 0 size: 240 x 56 new: 0
normal: 1.0 x 1.0 new: 0
body pixel: 1888 x 937 char: 236 x 55
width left fringe: 8 left margin: 0 right margin: 0
width right fringe: 8 scroll-bar: 16 divider: 0
height header-line: 0 mode-line: 17 divider: 0
#<window 4 on *Minibuf-0*> parent: nil
pixel left: 0 top: 954 size: 1920 x 17 new: 0
char left: 0 top: 56 size: 1920 x 1 new: 0
normal: 1.0 x 1.0 new: 0
body pixel: 1888 x 17 char: 236 x 1
width left fringe: 8 left margin: 0 right margin: 0
width right fringe: 8 scroll-bar: 16 divider: 0
height header-line: 0 mode-line: 0 divider: 0
=============================================
========== two ==============================
right after `face-spec-recalc`
frame pixel: 1920 x 971 cols/lines: 192 x 46 units: 10 x 21
frame text pixel: 1888 x 971 cols/lines: 188 x 46
tool: 0 scroll: 16/0 fringe: 16 border: 0 right: 0 bottom: 0
#<window 3 on *ielm*> parent: nil
pixel left: 0 top: 0 size: 1920 x 950 new: 950
char left: 0 top: 0 size: 240 x 45 new: 56
normal: 1.0 x 1.0 new: ignore
body pixel: 1888 x 929 char: 188 x 44
width left fringe: 8 left margin: 0 right margin: 0
width right fringe: 8 scroll-bar: 16 divider: 0
height header-line: 0 mode-line: 21 divider: 0
#<window 4 on *Minibuf-0*> parent: nil
pixel left: 0 top: 950 size: 1920 x 21 new: 0
char left: 0 top: 45 size: 1920 x 1 new: 0
normal: 1.0 x 1.0 new: 0
body pixel: 1888 x 21 char: 188 x 1
width left fringe: 8 left margin: 0 right margin: 0
width right fringe: 8 scroll-bar: 16 divider: 0
height header-line: 0 mode-line: 0 divider: 0
=============================================
========== three ============================
after doing `C-x 3` + `C-x 1`
frame pixel: 1920 x 971 cols/lines: 192 x 46 units: 10 x 21
frame text pixel: 1888 x 971 cols/lines: 188 x 46
tool: 0 scroll: 16/0 fringe: 16 border: 0 right: 0 bottom: 0
#<window 3 on *ielm*> parent: nil
pixel left: 0 top: 0 size: 1920 x 950 new: 960
char left: 0 top: 0 size: 192 x 45 new: 96
normal: 1.0 x 1.0 new: 0.5
body pixel: 1888 x 929 char: 188 x 44
width left fringe: 8 left margin: 0 right margin: 0
width right fringe: 8 scroll-bar: 16 divider: 0
height header-line: 0 mode-line: 21 divider: 0
#<window 4 on *Minibuf-0*> parent: nil
pixel left: 0 top: 950 size: 1920 x 21 new: 0
char left: 0 top: 45 size: 192 x 1 new: 192
normal: 1.0 x 1.0 new: 0
body pixel: 1888 x 21 char: 188 x 1
width left fringe: 8 left margin: 0 right margin: 0
width right fringe: 8 scroll-bar: 16 divider: 0
height header-line: 0 mode-line: 0 divider: 0
=============================================
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2015-03-02 3:18 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-01 2:31 bug#19972: 24.4; Font size change doesn't update (window-total-width) Joost Kremers
2015-03-01 15:14 ` martin rudalics
2015-03-01 15:28 ` Eli Zaretskii
2015-03-01 15:54 ` martin rudalics
2015-03-01 17:07 ` Joost Kremers
2015-03-01 17:46 ` Eli Zaretskii
2015-03-01 20:43 ` Joost Kremers
2015-03-02 3:30 ` Eli Zaretskii
2015-03-02 3:59 ` Joost Kremers
2015-03-02 14:04 ` Eli Zaretskii
2015-03-02 17:08 ` martin rudalics
2015-03-02 17:35 ` Eli Zaretskii
2015-03-02 18:12 ` martin rudalics
2015-03-02 18:25 ` Eli Zaretskii
2015-03-02 18:43 ` martin rudalics
2015-03-02 18:46 ` Eli Zaretskii
2015-03-02 22:26 ` Joost Kremers
2015-03-03 3:36 ` Eli Zaretskii
2015-03-03 8:07 ` martin rudalics
2015-03-03 9:06 ` Jan Djärv
2015-03-03 10:17 ` martin rudalics
2015-03-03 11:05 ` Jan D.
2015-03-03 11:26 ` martin rudalics
2015-03-03 12:08 ` Jan D.
2015-03-03 12:08 ` Joost Kremers
2015-03-03 8:06 ` martin rudalics
2015-03-02 17:08 ` martin rudalics
2015-03-02 17:07 ` martin rudalics
2015-03-02 17:06 ` martin rudalics
2015-03-01 17:06 ` Joost Kremers
2015-03-02 3:18 ` Joost Kremers [this message]
2015-03-02 17:09 ` martin rudalics
2015-03-02 17:24 ` Eli Zaretskii
2015-03-02 18:12 ` martin rudalics
2015-03-02 18:26 ` Eli Zaretskii
2015-03-03 10:38 ` martin rudalics
2015-03-03 12:23 ` Joost Kremers
2015-03-04 15:10 ` martin rudalics
2017-10-02 8:48 ` martin rudalics
2015-03-02 7:57 ` bug#19972: " Steve Purcell
2015-03-02 13:27 ` Eli Zaretskii
2015-03-02 14:07 ` Steve Purcell
2015-03-02 14:09 ` Steve Purcell
2015-03-02 14:24 ` Eli Zaretskii
2015-03-02 17:37 ` Jan D.
2015-03-02 14:23 ` Eli Zaretskii
2015-03-02 17:42 ` Jan D.
2015-03-02 17:56 ` Eli Zaretskii
2015-03-02 19:06 ` Jan D.
2015-03-02 19:52 ` Eli Zaretskii
2015-03-02 20:19 ` Jan D.
2015-03-03 16:11 ` Eli Zaretskii
2015-03-03 17:47 ` martin rudalics
2015-03-03 18:02 ` Eli Zaretskii
2015-03-03 18:36 ` martin rudalics
2015-03-03 18:38 ` Eli Zaretskii
2015-03-04 15:10 ` martin rudalics
2015-03-04 17:47 ` Eli Zaretskii
2015-03-04 18:45 ` martin rudalics
2015-03-04 18:59 ` Eli Zaretskii
2015-03-04 19:25 ` Jan D.
2015-03-05 8:06 ` martin rudalics
2015-03-05 16:34 ` Eli Zaretskii
2015-03-05 18:14 ` martin rudalics
2015-03-05 20:22 ` Eli Zaretskii
2015-03-05 21:15 ` martin rudalics
2015-03-06 8:09 ` Eli Zaretskii
2015-03-06 9:21 ` martin rudalics
2015-03-06 10:58 ` Eli Zaretskii
2015-03-02 14:44 ` Drew Adams
2015-03-02 15:02 ` Steve Purcell
2015-03-02 17:10 ` martin rudalics
2015-03-02 17:23 ` Steve Purcell
2015-03-02 18:12 ` 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=87egp8rssg.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=19972@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 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.