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 18:11:02 +0200 Message-ID: <837fuyqcx5.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425399143 23096 80.91.229.3 (3 Mar 2015 16:12:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 16:12:23 +0000 (UTC) Cc: steve@sanityinc.com, 19972@debbugs.gnu.org To: "Jan D." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 17:12: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 1YSpQa-0007AS-Ba for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 17:12:12 +0100 Original-Received: from localhost ([::1]:39533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSpQZ-0001f0-FD for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 11:12:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSpQU-0001aL-NB for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 11:12:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSpQQ-0003f7-Fr for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 11:12:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSpQQ-0003ez-Cr for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 11:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YSpQQ-0003BM-0P for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 11:12: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 16:12:01 +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.142539907912174 (code B ref 19972); Tue, 03 Mar 2015 16:12:01 +0000 Original-Received: (at 19972) by debbugs.gnu.org; 3 Mar 2015 16:11:19 +0000 Original-Received: from localhost ([127.0.0.1]:34086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSpPi-0003AI-Fg for submit@debbugs.gnu.org; Tue, 03 Mar 2015 11:11:18 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:56588) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSpPf-0003A3-Lw for 19972@debbugs.gnu.org; Tue, 03 Mar 2015 11:11:16 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NKN005008XEFQ00@a-mtaout21.012.net.il> for 19972@debbugs.gnu.org; Tue, 03 Mar 2015 18:11:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKN005UD8YKFE00@a-mtaout21.012.net.il>; Tue, 03 Mar 2015 18:11:09 +0200 (IST) In-reply-to: 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:100017 Archived-At: > From: "Jan D." > Date: Mon, 2 Mar 2015 21:19:14 +0100 > Cc: "steve@sanityinc.com" , > "19972@debbugs.gnu.org" <19972@debbugs.gnu.org> > > > I meant where/how does Emacs know that its request to resize was > > denied? > > When an X window is resized, it gets a ConfigureNotify event. When the resize is denied, no event arrives. That is why Emacs on X only considers ConfigureNotify as resizes. If lisp code tries to resize, we make the request, but nothing is updated until we get a ConfigureNotify. OK, thanks. 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, and the call to change_frame_size, if it is done, comes via internal-set-lisp-face-attribute and modify-frame-parameters, i.e. directly from Lisp. (When the frame is maximized, change_frame_size is not called at all.) Martin, can you tell what is the equivalent of the above X processing on MS-Windows? Does Emacs implement a similar logic internally?