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: Fri, 03 May 2013 10:12:14 +0300 Message-ID: <834neko7u9.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> <838v3xnpdo.fsf@gnu.org> <51835DBB.1060609@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1367565218 32054 80.91.229.3 (3 May 2013 07:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 May 2013 07:13: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 Fri May 03 09:13: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 1UYABP-0004B5-Ed for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2013 09:13:31 +0200 Original-Received: from localhost ([::1]:49274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYABO-000448-II for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2013 03:13:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYABJ-00042l-S1 for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 03:13:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYABI-0005wl-R4 for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 03:13:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYABI-0005wh-NL for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 03:13:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UYABu-0007rg-IR for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 03:14:02 -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: Fri, 03 May 2013 07:14:02 +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.136756522930165 (code B ref 14326); Fri, 03 May 2013 07:14:02 +0000 Original-Received: (at 14326) by debbugs.gnu.org; 3 May 2013 07:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:56299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYABg-0007qP-Hh for submit@debbugs.gnu.org; Fri, 03 May 2013 03:13:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:33798) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYABd-0007pu-5s for 14326@debbugs.gnu.org; Fri, 03 May 2013 03:13:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MM700M00NXNWK00@a-mtaout20.012.net.il> for 14326@debbugs.gnu.org; Fri, 03 May 2013 10:12:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MM700MXEO0RT040@a-mtaout20.012.net.il>; Fri, 03 May 2013 10:12:28 +0300 (IDT) In-reply-to: <51835DBB.1060609@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:73908 Archived-At: > Date: Fri, 03 May 2013 08:48:27 +0200 > From: martin rudalics > CC: eenliu@gmail.com, 14326@debbugs.gnu.org > > >> 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. > > I see no difference. I was trying to explain why that comment might be of only historical interest, since it describes code that we don't use. > >> 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. > > That's what I thought. Hopefully `set-default-font`' at least resets > the maximized frame parameter. I don't think it does. And I'm not sure it should. > In any case I'd consider it a bug that `set-default-font' is > allowed to resize a maximized frame. That's what your changes are about, I think. > >> > 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. > > That's the routine we're talking about here I understand, but I don't see how it is related to set-default-font. > When I fit the size of a frame to that of its buffer, I ideally would do > this in one `modify-frame-parameters' call to set the size of the new > frame. But if this call shrinks the frame, both the menubar and the > toolbar may wrap and my calculations get ignored. Do we really want to allow resizing that causes this wrap, when what the user wants is to fit frame size to buffer?