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: 24.4; Font size change doesn't update (window-total-width) Date: Sun, 01 Mar 2015 17:28:49 +0200 Message-ID: <83pp8sspn2.fsf@gnu.org> References: <874mq5o3di.fsf@fastmail.fm> <54F32CDE.9080308@gmx.at> 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 1425223826 28097 80.91.229.3 (1 Mar 2015 15:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2015 15:30:26 +0000 (UTC) Cc: joostkremers@fastmail.fm, 19972@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 16:30:15 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 1YS5or-0005iD-Tl for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2015 16:30:14 +0100 Original-Received: from localhost ([::1]:52941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS5or-0004T6-3I for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2015 10:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS5om-0004RF-T5 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 10:30:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YS5oh-0001wx-Sn for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 10:30:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS5oh-0001wG-PR for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 10:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YS5og-0005Ol-FM for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2015 10:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Mar 2015 15:30:02 +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.142522375220668 (code B ref 19972); Sun, 01 Mar 2015 15:30:02 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 1 Mar 2015 15:29:12 +0000 Original-Received: from localhost ([127.0.0.1]:33432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS5ns-0005NI-57 for submit@debbugs.gnu.org; Sun, 01 Mar 2015 10:29:12 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:41731) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS5np-0005N1-2C for 19972@debbugs.gnu.org; Sun, 01 Mar 2015 10:29:10 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NKJ00K00HK9M400@a-mtaout22.012.net.il> for 19972@debbugs.gnu.org; Sun, 01 Mar 2015 17:29:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKJ00KN1HOEG640@a-mtaout22.012.net.il>; Sun, 01 Mar 2015 17:29:02 +0200 (IST) In-reply-to: <54F32CDE.9080308@gmx.at> 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:99928 Archived-At: > Date: Sun, 01 Mar 2015 16:14:38 +0100 > From: martin rudalics > > > ELISP> (face-spec-recalc 'default (selected-frame)) > > nil > > ELISP> (window-total-width) > > 240 (#o360, #xf0, ?ð) > > > > ;; now press `C-x 3` followed by `C-x 1' > > > > ELISP> (window-total-width) > > 192 (#o300, #xc0, ?À) > > ELISP> > > > > The second call to `window-total-width` returns 240, but it should have > > returned 192. > > I must admit that I don't have the faintest idea what `face-spec-recalc' > is supposed to do. For the purposes of this discussion, I think the only thing that matters is that it applies the change in the default face's font. > Anyway. Why do you think that `window-total-width' should return 192 in > the first call? In principle, face/font changes are supposed to keep > the number of columns/lines unchanged so returning 240 seems reasonable > to me. Indeed. It does for me. Could this be something specific to GTK or the window manager? Also, I don't understand why the initial value is 240 in the first place. By default, "emacs -Q" creates a 80-column window, so I'd expect window-total-width to return a value slightly larger than 80 (I get 84 here). So it sounds like some additional factors are at work here.