GNU bug report logs - #19972
24.4; Font size change doesn't update (window-total-width)

Previous Next

Package: emacs;

Reported by: Joost Kremers <joostkremers <at> fastmail.fm>

Date: Sun, 1 Mar 2015 02:32:02 UTC

Severity: normal

Found in version 24.4

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Steve Purcell <steve <at> sanityinc.com>
Cc: 19972 <at> debbugs.gnu.org
Subject: bug#19972: Font size change doesn't update (window-total-width)
Date: Mon, 02 Mar 2015 16:23:13 +0200
> From: Steve Purcell <steve <at> sanityinc.com>
> Date: Mon, 2 Mar 2015 14:07:27 +0000
> 
> Given that window-width returns a number based on both the current frame/window size and the width of the ‘default face, then if the value is going to be stored for later re-use, any change to the default face should also cause it to be recomputed.

That's not how things work in Emacs.  We recompute window metrics when
we resize the window, and frame metrics when we resize the frame.
Changing the default face's font triggers one such resize, and the
values that are supposed to change are recomputed.

> What I’m picking up is that only frame/window size changes currently cause that recomputation, hence this issue.

Maybe you are right, but I'm not yet convinced, because I don't yet
have a clear picture of what causes the frame to be resized back to
the display size.  The OP is on GNU/Linux, so native NS features
cannot be the explanation there.




This bug report was last modified 7 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.