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#14326: 24.3; Conflict of w32-send-sys-command and set-default-font Date: Thu, 02 May 2013 21:08:09 +0200 Message-ID: <5182B999.4050304@gmx.at> 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> 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 1367521719 23434 80.91.229.3 (2 May 2013 19:08:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 19:08:39 +0000 (UTC) Cc: eenliu@gmail.com, 14326@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 02 21:08:34 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 1UXyrp-0001CY-Tk for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 21:08:34 +0200 Original-Received: from localhost ([::1]:55566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyrp-00079V-9V for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 15:08:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyrj-00074g-Jf for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:08:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXyri-0007xC-I2 for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:08:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyri-0007x7-Ec for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:08:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXysH-0002M6-Ri for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 15:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 May 2013 19:09: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.13675217369032 (code B ref 14326); Thu, 02 May 2013 19:09:01 +0000 Original-Received: (at 14326) by debbugs.gnu.org; 2 May 2013 19:08:56 +0000 Original-Received: from localhost ([127.0.0.1]:55626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXysB-0002Lc-5Z for submit@debbugs.gnu.org; Thu, 02 May 2013 15:08:56 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:60615) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXys5-0002LJ-PN for 14326@debbugs.gnu.org; Thu, 02 May 2013 15:08:52 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MbeUV-1Ur1iL1cJR-00J4J2 for <14326@debbugs.gnu.org>; Thu, 02 May 2013 21:08:12 +0200 Original-Received: (qmail invoked by alias); 02 May 2013 19:08:12 -0000 Original-Received: from 62-47-53-91.adsl.highway.telekom.at (EHLO [62.47.53.91]) [62.47.53.91] by mail.gmx.net (mp029) with SMTP; 02 May 2013 21:08:12 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/raes9K/Pr6fh4F4+XfJBk0tfxjXUXiUccmOSI3Q SqdkSAjvIfOhfL In-Reply-To: <83bo8tnre7.fsf@gnu.org> X-Y-GMX-Trusted: 0 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:73899 Archived-At: > The code thus commented is ifdef'ed away... That's what I'm wondering about. > 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? Does this mean the OP could have used `set-frame-parameter' and it would have worked in his sense? > 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. > 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. martin