From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#19972: Font size change doesn't update (window-total-width) Date: Thu, 05 Mar 2015 19:14:39 +0100 Message-ID: <54F89D0F.9000205@gmx.at> 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> <838ufcpp0t.fsf@gnu.org> <54F80E7D.8050303@gmx.at> <834mpzpfm8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1425579319 17438 80.91.229.3 (5 Mar 2015 18:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2015 18:15:19 +0000 (UTC) Cc: steve@sanityinc.com, 19972@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 05 19:15:09 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 1YTaIf-00019i-DO for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Mar 2015 19:15:09 +0100 Original-Received: from localhost ([::1]:53508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTaIe-0007HU-CO for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Mar 2015 13:15:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTaIa-0007EG-Dc for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 13:15:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTaIZ-0004go-Kr for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 13:15:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTaIZ-0004gU-HZ for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 13:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YTaIY-0001dE-Uw for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 13:15:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Mar 2015 18:15: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.14255792966243 (code B ref 19972); Thu, 05 Mar 2015 18:15:02 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 5 Mar 2015 18:14:56 +0000 Original-Received: from localhost ([127.0.0.1]:36244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTaIR-0001cd-FI for submit@debbugs.gnu.org; Thu, 05 Mar 2015 13:14:55 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:60335) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTaIP-0001cN-7s for 19972@debbugs.gnu.org; Thu, 05 Mar 2015 13:14:53 -0500 Original-Received: from [194.166.87.46] ([194.166.87.46]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MTSmp-1Y5D9t2NCp-00SSEK; Thu, 05 Mar 2015 19:14:46 +0100 In-Reply-To: <834mpzpfm8.fsf@gnu.org> X-Provags-ID: V03:K0:9cTAlW8xd1PEkXU04tsYr3oVazxyZqrsoh6O/xDIiZJAyNOJ7VQ HlzUBQhNVI+Jm64wiy0zq3cSUebG+oev8p1p2e/ezMtjNJLyWfQzsf76XoE6NtbiCg/DHRn rM+e/Qx0+G/3wFVxp7rEzj5CCAWTN83+LzFBZFpj9dDp6Fn1/AjK6jzFsbNVzOL4SF8IeRj 1UzofVv1lQiC5prrbMRUQ== X-UI-Out-Filterresults: notjunk:1; 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:100100 Archived-At: >> > 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? >> >> Because of Bug#16028 :-( > > Which part of that bug disallows the above? Well, before the "fix" of bug#16028 Emacs behaved as you described above. Suppose an application wants to add 5 lines and 5 columns to a frame. It can do that in one call (set-frame-size nil (+ (frame-width) 5) (+ (frame-height) 5)) or via (progn (set-frame-width nil (+ (frame-width) 5)) (set-frame-height nil (+ (frame-height) 5))) I suppose that most people would consider these forms idempotent. However, before the fix, `set-frame-height' could fail because Emacs has to tell Windows (via AdjustWindowRect) what the desired window width is. But the width Emacs knows about at that time is still that from before the `set-frame-width' call. On X this scenario doesn't fail because Emacs usually loops long enough until the width value has been updated. I don't know how NS handles it. Similar scenarios can be devised when changing any of the values affected by `frame-inhibit-implied-resize'. martin