From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19972: Font size change doesn't update (window-total-width) Date: Mon, 02 Mar 2015 16:23:13 +0200 Message-ID: <831tl7scku.fsf@gnu.org> References: <874mq5o3di.fsf@fastmail.fm> <2B9A60CD-AAAA-40E8-B116-8A75A78B0DDC@sanityinc.com> <83bnkbsf5u.fsf@gnu.org> <8B7604B9-1637-4C35-B03D-BABE7D5271FA@sanityinc.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1425306260 15872 80.91.229.3 (2 Mar 2015 14:24:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2015 14:24:20 +0000 (UTC) Cc: 19972@debbugs.gnu.org To: Steve Purcell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 15:24:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YSRGV-0000Zu-3T for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 15:24:11 +0100 Original-Received: from localhost ([::1]:57400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRGT-0005Tp-ST for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 09:24:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRGP-0005Rv-Ag for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 09:24:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSRGM-0001vO-GJ for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 09:24:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRGM-0001vK-6R for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 09:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YSRGL-0003HN-O3 for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 09:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Mar 2015 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19972 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19972-submit@debbugs.gnu.org id=B19972.142530621212569 (code B ref 19972); Mon, 02 Mar 2015 14:24:01 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 2 Mar 2015 14:23:32 +0000 Original-Received: from localhost ([127.0.0.1]:33986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSRFs-0003Gf-GS for submit@debbugs.gnu.org; Mon, 02 Mar 2015 09:23:32 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45419) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSRFp-0003GQ-RV for 19972@debbugs.gnu.org; Mon, 02 Mar 2015 09:23:30 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NKL00D00980O300@a-mtaout20.012.net.il> for 19972@debbugs.gnu.org; Mon, 02 Mar 2015 16:23:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKL00DYB9AZLV30@a-mtaout20.012.net.il>; Mon, 02 Mar 2015 16:23:23 +0200 (IST) In-reply-to: <8B7604B9-1637-4C35-B03D-BABE7D5271FA@sanityinc.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99957 Archived-At: > From: Steve Purcell > 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.