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: Wed, 04 Mar 2015 20:59:30 +0200 Message-ID: <838ufcpp0t.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> <83zj7uot7m.fsf@gnu.org> <54F5FF12.10401@gmx.at> <83sidmoria.fsf@gnu.org> <54F72070.8040709@gmx.at> <83fv9kpsd7.fsf@gnu.org> <54F752D3.7050800@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425495623 32050 80.91.229.3 (4 Mar 2015 19:00:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 19:00:23 +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 Wed Mar 04 20:00: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 1YTEWh-00072I-W9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 20:00:12 +0100 Original-Received: from localhost ([::1]:46002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEWh-000571-2b for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 14:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEWd-000536-Mr for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 14:00:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTEWa-0004dU-Bg for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 14:00:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEWa-0004bT-8x for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 14:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YTEWZ-0003mX-CB for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 14:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Mar 2015 19:00:03 +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.142549558514483 (code B ref 19972); Wed, 04 Mar 2015 19:00:03 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 4 Mar 2015 18:59:45 +0000 Original-Received: from localhost ([127.0.0.1]:35263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTEWG-0003lW-Sc for submit@debbugs.gnu.org; Wed, 04 Mar 2015 13:59:45 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:44765) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTEWD-0003lI-OD for 19972@debbugs.gnu.org; Wed, 04 Mar 2015 13:59:43 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NKP00B00BDOZ000@a-mtaout20.012.net.il> for 19972@debbugs.gnu.org; Wed, 04 Mar 2015 20:59:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKP00BY3BFALAD0@a-mtaout20.012.net.il>; Wed, 04 Mar 2015 20:59:34 +0200 (IST) In-reply-to: <54F752D3.7050800@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:100068 Archived-At: > Date: Wed, 04 Mar 2015 19:45:39 +0100 > From: martin rudalics > CC: jan.h.d@swipnet.se, steve@sanityinc.com, 19972@debbugs.gnu.org > > > Feel free to ignore, btw. But to clarify, what I had in mind was call > > MoveWindow, and wait for WM_SIZE before we call change_frame_size. I > > have no idea whether this is a good idea, though. > > It's not the idea that bothers me but the implementation. Looking at > what Jan did in x_wait_for_event it seems very unlikely that I could > come up with an equivalent solution. Think of the input un-/blocking > part: > > int level = interrupt_input_blocked; > ... > while (f->wait_event_type) > { > pending_signals = true; > totally_unblock_input (); > /* XTread_socket is called after unblock. */ > block_input (); > interrupt_input_blocked = level; > > Would this work on Windows? And on Gtk he does > > (void)gtk_events_pending (); > gdk_flush (); > > before calling x_wait_for_event. Would we have to flush old messages on > Windows and if so how? All this is probably over my head. I don't see why do we have to block and wait. Why not simply go about our business, and let the WM_SIZE message come in when it does, and be handled?