From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#22298: 25.1.50; Enabling tool-bar-mode caused frame size setting failure Date: Sun, 10 Jan 2016 21:58:10 +0100 Message-ID: References: <6BAAA567-801D-4F0C-9FBE-98C615B2257B@royau.me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114406ea021028052901149a X-Trace: ger.gmane.org 1452459562 29357 80.91.229.3 (10 Jan 2016 20:59:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jan 2016 20:59:22 +0000 (UTC) To: CHENG Gao , 22298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 10 21:59:11 2016 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 1aIN4w-0008KF-He for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 21:59:10 +0100 Original-Received: from localhost ([::1]:49354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIN4v-0005lP-Fm for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 15:59:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIN4r-0005lI-B7 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 15:59:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIN4o-0007Nv-59 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 15:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIN4o-0007Nq-1J for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 15:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aIN4n-00052l-Q0 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 15:59:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <6BAAA567-801D-4F0C-9FBE-98C615B2257B@royau.me> Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2016 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22298-submit@debbugs.gnu.org id=B22298.145245949819332 (code B ref 22298); Sun, 10 Jan 2016 20:59:01 +0000 Original-Received: (at 22298) by debbugs.gnu.org; 10 Jan 2016 20:58:18 +0000 Original-Received: from localhost ([127.0.0.1]:45759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIN46-00051k-C4 for submit@debbugs.gnu.org; Sun, 10 Jan 2016 15:58:18 -0500 Original-Received: from mail-vk0-f42.google.com ([209.85.213.42]:36800) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIN44-00051X-Ml for 22298@debbugs.gnu.org; Sun, 10 Jan 2016 15:58:17 -0500 Original-Received: by mail-vk0-f42.google.com with SMTP id n1so61014496vkb.3 for <22298@debbugs.gnu.org>; Sun, 10 Jan 2016 12:58:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=c00v2dSP+/FKSYHKuybqNu3020ekCx/frsnpAYdKEuA=; b=U0Z+hC9nu6X56cO3sDjSMnK8SdmzenvzQvsaiJvIrQwUZXTeYzJv/9dR5yjZDEz4N+ AhDrspcrUktm1/9ZhVywMzqk/necScVRgJ2x8diqaYJVpRh9GCeBUcaJ/Nb0vavkwLvQ dXvvMT/QtrjND5RdB5WedXvkE0NtRuxlBH0UnBS9rv4GHowFe5qh9lATBB/HIZdS5KKp ro8+2pE7DPNuoVH7zqhgiez6/CzJGsqsQHdHUGKxHuaafetzJpp8vzKhdlXFX/c+rSWa VVcgINTK8GOlmHBlO+S+uTx2vmXHL31IkYG5QQfz2Pn/lN1+Ef/aSbEiQPsUquWVqwqQ uviw== X-Received: by 10.31.162.3 with SMTP id l3mr21150228vke.68.1452459490936; Sun, 10 Jan 2016 12:58:10 -0800 (PST) Original-Received: by 10.31.214.131 with HTTP; Sun, 10 Jan 2016 12:58:10 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:111469 Archived-At: --001a114406ea021028052901149a Content-Type: text/plain; charset=UTF-8 Hi Cheng! Ah, it was the information that the expressions should be placed in the init file that I was missing. I can confirm that I can reproduce the problem using the following recipe. Place the following lines in a file, say bug22298.el: (when window-system (set-frame-size (selected-frame) 155 38 nil) (tool-bar-mode 1)) emacs -Q -l bug22298.el Here, Emacs use its standard frame size whereas it should use the newly specified size (155x38). -- Anders Lindgren > Thank you for looking into this. > In my bug report I listed two snippets that can be put into init.el. > When (tool-bar-mode 1) is set before set-frame-size, it works. When set > after set-frame-size, it won't. > Using C-x C-e to eval them, it works. So I think "emacs -Q" can not help > here. It's only about order of settings. > Later after reporting, I found tool-bar-mode is defaulted to "t" when > window-system is detected (in C source code), so I just removed it and > it works now. So it does not bother me any more, but I can not say this > bug is fixed. --001a114406ea021028052901149a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Cheng!

Ah, it was the inf= ormation that the expressions should be placed in the init file that I was = missing.

I can confirm that I can reproduce the pr= oblem using the following recipe.

Place the follow= ing lines in a file, say bug22298.el:

=C2=A0 = =C2=A0 (when window-system
=C2=A0 =C2=A0 =C2=A0 (set-frame-size (= selected-frame) 155 38 nil)
=C2=A0 =C2=A0 =C2=A0 (tool-bar-mode 1= ))

=C2=A0 =C2=A0 emacs -Q -l bug22298.el

Here, Emacs use its standard frame size whereas it sh= ould use the newly specified size (155x38).

=C2=A0= =C2=A0 -- Anders Lindgren


> Thank you for l= ooking into this.

> In my bug report I listed two snippets that c= an be put into init.el.
> When (tool-bar-mode 1) is set before set-fr= ame-size, it works. When set
> after set-frame-size, it won't.
> Using C-x C-e to eval them, it works. So I think "emacs -Q&q= uot; can not help
> here. It's only about order of settings.
<= br>> Later after reporting, I found tool-bar-mode is defaulted to "= t" when
> window-system is detected (in C source code), so I jus= t removed it and
> it works now. So it does not bother me any more, b= ut I can not say this
> bug is fixed.
--001a114406ea021028052901149a--