From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.bugs Subject: bug#22298: 25.1.50; Enabling tool-bar-mode caused frame size setting failure Date: Mon, 11 Jan 2016 19:30:53 +0800 Organization: Royau.Me Message-ID: References: <6BAAA567-801D-4F0C-9FBE-98C615B2257B@royau.me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452511944 24917 80.91.229.3 (11 Jan 2016 11:32:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 11:32:24 +0000 (UTC) To: 22298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 11 12:32:12 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 1aIahm-00018l-SF for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 12:32:11 +0100 Original-Received: from localhost ([::1]:53343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIahm-0000SY-6m for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 06:32:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIahh-0000SR-Qr for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIahe-0006S8-Kw for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:32:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIahe-0006S4-Hd for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aIahe-0003Ww-Dw for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:32:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <6BAAA567-801D-4F0C-9FBE-98C615B2257B@royau.me> Resent-From: CHENG Gao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 11:32:02 +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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145251188113520 (code B ref -1); Mon, 11 Jan 2016 11:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jan 2016 11:31:21 +0000 Original-Received: from localhost ([127.0.0.1]:45985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIagz-0003Vz-Jj for submit@debbugs.gnu.org; Mon, 11 Jan 2016 06:31:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41706) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIagx-0003Vm-0F for submit@debbugs.gnu.org; Mon, 11 Jan 2016 06:31:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIagq-0006Ks-UP for submit@debbugs.gnu.org; Mon, 11 Jan 2016 06:31:13 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIagq-0006Km-Qz for submit@debbugs.gnu.org; Mon, 11 Jan 2016 06:31:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIagp-0000Oq-QG for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:31:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIagm-0006KD-Kc for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:31:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIagm-0006K2-DV for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 06:31:08 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aIagf-0000b8-Df for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 12:31:01 +0100 Original-Received: from 122.96.23.174 ([122.96.23.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2016 12:31:01 +0100 Original-Received: from chenggao by 122.96.23.174 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2016 12:31:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 122.96.23.174 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) Cancel-Lock: sha1:YNThvU6md+c+NDSj72k05uy62fc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:111492 Archived-At: *On Mon, 11 Jan 2016 19:08:20 +0800 * Also sprach CHENG Gao : > *On Sun, 10 Jan 2016 21:58:10 +0100 > * Also sprach Anders Lindgren : > >> 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 Anders. > > I played a while and tweaked some settings to do more tests, and found > out that though tool-bar-mode can trigger this bug, the culprit seems > not to be tool-bar-mode. > > Before set-frame-size setting, I have: > ,---- > | (setq frame-resize-pixelwise t) > `---- > > With this setting, tool-bar-mode can not show after set-frame-size. If I > comment it out, location of tool-bar-mode setting does not matter. > > Even I comment out frame-resize-pixelwise setting, if I use > ,---- > | (set-frame-size (selected-frame) 155 38 t) > `---- > that's to use pixelwise setting, same problem as before. > > So it's all about pixelwise setting. I can't decide it's a bug or a > (mis)feature. I'll try to dig a little in C source code > (set-frame-size), but my knowledge of C is very limited. Sorry for my stupidity. ,---- | (set-frame-size (selected-frame) 155 38 t) `---- This explicitly uses pixelwise to set frame size. Please ignore above message. It's false alarm. I need do more tests.