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: Tue, 03 Mar 2015 20:02:05 +0200 Message-ID: <83zj7uot7m.fsf@gnu.org> References: <874mq5o3di.fsf@fastmail.fm> <2B9A60CD-AAAA-40E8-B116-8A75A78B0DDC@sanityinc.com> <83bnkbsf5u.fsf@gnu.org> <54F4A120.2060506@swipnet.se> <83r3t7qo5b.fsf@gnu.org> <54F4B4CF.90905@swipnet.se> <83lhjfqira.fsf@gnu.org> <837fuyqcx5.fsf@gnu.org> <54F5F3A9.1090108@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425405809 13139 80.91.229.3 (3 Mar 2015 18:03:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 18:03:29 +0000 (UTC) Cc: steve@sanityinc.com, 19972@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 19:03:19 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 1YSrA7-00056L-6S for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 19:03:19 +0100 Original-Received: from localhost ([::1]:40224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSrA5-0004hB-Uj for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 13:03:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSrA1-0004bI-0d for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 13:03:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSr9q-00060A-Dy for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 13:03:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSr9q-000604-B8 for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 13:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YSr9q-0005vm-4I for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 13:03: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 18:03: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.142540574722749 (code B ref 19972); Tue, 03 Mar 2015 18:03:02 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 3 Mar 2015 18:02:27 +0000 Original-Received: from localhost ([127.0.0.1]:34195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSr9D-0005uj-Ka for submit@debbugs.gnu.org; Tue, 03 Mar 2015 13:02:27 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:45910) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSr98-0005u6-Sk for 19972@debbugs.gnu.org; Tue, 03 Mar 2015 13:02:22 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NKN00M00DJFJQ00@mtaout27.012.net.il> for 19972@debbugs.gnu.org; Tue, 03 Mar 2015 19:56:44 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKN00H94DUKRJ60@mtaout27.012.net.il>; Tue, 03 Mar 2015 19:56:44 +0200 (IST) In-reply-to: <54F5F3A9.1090108@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:100026 Archived-At: > Date: Tue, 03 Mar 2015 18:47:21 +0100 > From: martin rudalics > CC: steve@sanityinc.com, 19972@debbugs.gnu.org > > > But I don't see anything like that on MS-Windows: we do have a call to > > change_frame_size when we receive a WM_SIZE message, but running the > > recipe in this thread doesn't cause WM_SIZE to be received, > > There should be one for a normally sized frame. We don't do anything with it, probably because the frame was already resized. > > Martin, can you tell what is the equivalent of the above X processing > > on MS-Windows? Does Emacs implement a similar logic internally? > > I'm not sure I understand what you mean. Basically, on Windows we > process the sizes immediately when issuing a size request. "Process" in > this context means to store the sizes in the frame structure and resize > the frame's windows accordingly. > > We do that in the change_frame_size call on line 6173 of w32term.c > (because Drew wanted to see the possible future effect immediately in > the frame sizes). When Windows gets back to us via a WM_SIZE message we > might eventually call change_frame_size too (on line 5180 of w32term.c) > but do so only if the requested sizes differ from the already stored > ones. The sizes usually differ when the request was initiated by > Windows (like when the user clicks at the maximize button or mouse-drags > a frame edge) and usually do not differ when the request was initiated > by Lisp code before. IOW, we don't wait with a resize until we get a notification, but instead resize the frame itself, and then might resize again when we receive WM_SIZE. Question: why not wait for WM_SIZE, and only resize after it arrives? That would emulate better what X does, and also prevent the second resize. No? > When I asked you back then whether we could implement something similar > to the X code on Windows you told me that Windows doesn't have anything > comparable to ConfigureNotify so I didn't pursue the idea any further. I don't remember saying that (and don't know X well enough to make such assertions to begin with), but in any case, you just explained that I was wrong, and there is a Windows message equivalent to ConfigureNotify.