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: Tue, 03 Mar 2015 05:36:00 +0200 Message-ID: <83ioeirbvj.fsf@gnu.org> References: <874mq5o3di.fsf@fastmail.fm> <54F32CDE.9080308@gmx.at> <83pp8sspn2.fsf@gnu.org> <87zj7wmysq.fsf@fastmail.fm> <83lhjgsj96.fsf@gnu.org> <87y4ngmoso.fsf@fastmail.fm> <83k2z0rs8o.fsf@gnu.org> <87d24srqw2.fsf@fastmail.fm> <834mq3sdf8.fsf@gnu.org> <87a8zvrq6l.fsf@fastmail.fm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425353844 30060 80.91.229.3 (3 Mar 2015 03:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 03:37:24 +0000 (UTC) Cc: 19972@debbugs.gnu.org To: Joost Kremers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 04:37:13 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 1YSddv-0005vj-Fg for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 04:37:11 +0100 Original-Received: from localhost ([::1]:33174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSddu-0001AU-Hc for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 22:37:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSddq-00016y-O7 for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 22:37:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSddm-0004UA-MF for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 22:37:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSddm-0004U4-Il for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 22:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YSddm-0000Kg-5D for bug-gnu-emacs@gnu.org; Mon, 02 Mar 2015 22:37: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: Tue, 03 Mar 2015 03:37: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.14253537801231 (code B ref 19972); Tue, 03 Mar 2015 03:37:02 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 3 Mar 2015 03:36:20 +0000 Original-Received: from localhost ([127.0.0.1]:33264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSdd6-0000Jm-62 for submit@debbugs.gnu.org; Mon, 02 Mar 2015 22:36:20 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:59044) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSdd2-0000JW-Uv for 19972@debbugs.gnu.org; Mon, 02 Mar 2015 22:36:18 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NKM00D009EN4M00@a-mtaout22.012.net.il> for 19972@debbugs.gnu.org; Tue, 03 Mar 2015 05:36:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKM00DMNA087310@a-mtaout22.012.net.il>; Tue, 03 Mar 2015 05:36:08 +0200 (IST) In-reply-to: <87a8zvrq6l.fsf@fastmail.fm> 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:99998 Archived-At: > From: Joost Kremers > Cc: rudalics@gmx.at, 19972@debbugs.gnu.org > Date: Mon, 02 Mar 2015 23:26:58 +0100 > > >> Sorry, forgot that. `window-width' doesn't have the same issue. On my > >> system, with a maximised Emacs frame (Emacs version 25.0.50.1), it > >> returns 236 before `custom-push-theme' + `face-spec-recalc', and 188 > >> after it, even without doing `C-x 3' followed by `C-x 1'. > > > > In that case, I guess if you call (window-total-width 'round), you > > will see the correct value even before "C-x 3", right? > > No, it doesn't. It still returns 240, i.e., the same value returned by > (window-total-width). > > (window-width) returns 188. That's very strange, since they use the same data. But if Martin's patch fixes the issue for you (does it?), we don't need to pursue this further. > > Joost, could you find out where does w->pixel_size change in your > > recipe (where 'w' is the pointer to the window displaying *scratch*)? > > I'd be happy to, but... > > > If my guess is correct, it should change twice: once as shown below in > > the backtrace I produced, and then once more, where it changes back to > > the dimensions of your display. We are interested to know where is > > that second time, and who calls that code. > > > > One way of finding this out is to put a watchpoint in GDB on > > w->pixel_size. Let me know if you need more detailed instructions for > > how to do it. > > That would be great, since I have only basic knowledge of GDB. Given Jan's explanation of the issue, I don't think this is needed anymore. Thanks.