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 20:32:54 +0200 Message-ID: <5182B156.2000100@gmx.at> References: <5180DD2B.3080407@gmx.at> <83a9oepwuu.fsf@gnu.org> <5182307C.6000102@gmx.at> <83mwsdnwc8.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 1367519621 869 80.91.229.3 (2 May 2013 18:33:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 18:33:41 +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 20:33:39 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 1UXyJx-0002xb-HH for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 20:33:33 +0200 Original-Received: from localhost ([::1]:46092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyJx-0002OL-1h for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2013 14:33:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyJr-0002J8-Qh for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:33:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXyJq-0004lg-My for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:33:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXyJq-0004lc-Iv for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:33:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UXyKP-00010F-Nm for bug-gnu-emacs@gnu.org; Thu, 02 May 2013 14:34: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 18:34: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.13675196173807 (code B ref 14326); Thu, 02 May 2013 18:34:01 +0000 Original-Received: (at 14326) by debbugs.gnu.org; 2 May 2013 18:33:37 +0000 Original-Received: from localhost ([127.0.0.1]:55583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXyK1-0000zM-8S for submit@debbugs.gnu.org; Thu, 02 May 2013 14:33:37 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:59607) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXyJy-0000zE-Io for 14326@debbugs.gnu.org; Thu, 02 May 2013 14:33:35 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LxIqi-1UV73525f8-0170zW for <14326@debbugs.gnu.org>; Thu, 02 May 2013 20:32:57 +0200 Original-Received: (qmail invoked by alias); 02 May 2013 18:32:57 -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 (mp035) with SMTP; 02 May 2013 20:32:57 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18d40UozOcdW4TLKyYc5cAWUlK/nQ7i7BsF/6iPbO dIr7kPn4m5/zvA In-Reply-To: <83mwsdnwc8.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:73896 Archived-At: >> Do you mean that `set-default-font' does not cause a WM_SIZE message? > > It does (although not with a maximize request), but that's not what I > meant. I meant that set-default-font immediately causes the internals > to reflect the change, whereas for w32-send-sys-command this only > happens _after_ Emacs receives the maximize request and acts upon it > by resizing the frame. w32term.c contains the following comment text: /* The following mirrors what is done in xterm.c. It appears to be for informing lisp of the new size immediately, while the actual resize will happen asynchronously. But on Windows, the menu bar automatically wraps when the frame is too narrow to contain it, and that causes any calculations made here to come out wrong. The end is some nasty buggy behavior, including the potential loss of the minibuffer. ... */ So we reflect the change internally for `set-default-font', which, when changing the default font to a very small size may easily cause a wrap of the menubar, while we do not reflect the change internally for a maximization which hardly ever will cause the menubar to wrap more than it wrapped before. Something doesn't make sense here :-( martin