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#14326: 24.3; Conflict of w32-send-sys-command and set-default-font Date: Thu, 02 May 2013 22:38:43 +0300 Message-ID: <838v3xnpdo.fsf@gnu.org> References: <5180DD2B.3080407@gmx.at> <83a9oepwuu.fsf@gnu.org> <5182307C.6000102@gmx.at> <83mwsdnwc8.fsf@gnu.org> <5182B156.2000100@gmx.at> <83bo8tnre7.fsf@gnu.org> <5182B999.4050304@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1367523578 11053 80.91.229.3 (2 May 2013 19:39:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 19:39:38 +0000 (UTC) Cc: eenliu@gmail.com, 14326@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 02 21:39:36 2013 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 1UXzLp-0003xp-AZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 21:39:33 +0200 Original-Received: from localhost ([::1]:33017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXzLo-0004Jt-WA for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 15:39:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXzLk-0004Jb-R2 for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:39:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXzLi-00012M-9F for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:39:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXzLi-00012F-5j for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:39:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXzMH-0003Qy-Q3 for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 May 2013 19:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14326 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 14326-submit@debbugs.gnu.org id=B14326.136752356413137 (code B ref 14326); Thu, 02 May 2013 19:40:01 +0000 Original-Received: (at 14326) by debbugs.gnu.org; 2 May 2013 19:39:24 +0000 Original-Received: from localhost ([127.0.0.1]:55675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXzLg-0003Pq-Bw for submit@debbugs.gnu.org; Thu, 02 May 2013 15:39:24 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63250) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXzLd-0003Pg-QR for 14326@debbugs.gnu.org; Thu, 02 May 2013 15:39:23 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MM600K00RW61700@a-mtaout22.012.net.il> for 14326@debbugs.gnu.org; Thu, 02 May 2013 22:38:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MM600JQ8RWJOQ80@a-mtaout22.012.net.il>; Thu, 02 May 2013 22:38:43 +0300 (IDT) In-reply-to: <5182B999.4050304@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:73901 Archived-At: > Date: Thu, 02 May 2013 21:08:09 +0200 > From: martin rudalics > CC: eenliu@gmail.com, 14326@debbugs.gnu.org > > > The code thus commented is ifdef'ed away... > > That's what I'm wondering about. You cannot just call change_frame_size on Windows anyway. It doesn't do what you'd expect. > > That's not the issue here. The issue here is that, when > > w32-send-sys-command is used, Emacs doesn't have any way of knowing > > that this call is going to change the frame's size. The argument to > > w32-send-sys-command is just some mumbo-jumbo as far as Emacs is > > concerned. Only when the WM_SIZE message comes in as result of that, > > do we know that the frame size is about to change. > > So w32-send-sys-command is handled differently from setting the > fullscreen frame parameter to maximized? Not really: the latter is implemented by calling the former (or actually doing the same independently). > Does this mean the OP could have used `set-frame-parameter' and it > would have worked in his sense? No, see above. > > By contrast, set-default-font works in the opposite direction: Emacs > > _does_ understand what that means, it does know how to load a font and > > get its metrics, and it does know how to resize the frame as result. > > But when x_set_window_size tells Windows that it wants to resize the > frame, it stumbles into some away-defined code. Not sure what x_set_window_size has to do with all this. > > So even if the actual resize involves some messages that need to come > > to our window procedure, that doesn't matter, because we are already > > ready for the resize. Not so when w32-send-sys-command is used. > > > > Or at least this is my understanding, admittedly very limited in this > > area. > > > > Btw, try "M-: (set-default-font "David-8") RET" in "emacs -Q", and you > > will see that the tool bar (not the menu bar) will wrap, but I see no > > adverse effects of that. So I really don't see why we should be > > afraid of such wrapping. > > We do our own toolbar wrapping. But the menubar is wrapped by Windows. And that is a problem because...?