From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#14795: height parameter inconsistent in new vs existing frames when tool-bar is enabled Date: Fri, 5 Jul 2013 11:29:04 +0200 Message-ID: <63EE186A-6215-4594-86C2-87DDF23F9123@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373016612 20376 80.91.229.3 (5 Jul 2013 09:30:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 09:30:12 +0000 (UTC) Cc: 14795@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 05 11:30:11 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 1Uv2LD-0002l1-Ac for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 11:30:11 +0200 Original-Received: from localhost ([::1]:47316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv2LC-00048O-Ul for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 05:30:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv2L8-00045f-94 for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 05:30:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv2L6-00020Z-Vc for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 05:30:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv2L6-0001zo-Sn for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 05:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Uv2L5-0004t4-GA for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 05:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jul 2013 09:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14795-submit@debbugs.gnu.org id=B14795.137301655118669 (code B ref 14795); Fri, 05 Jul 2013 09:30:03 +0000 Original-Received: (at 14795) by debbugs.gnu.org; 5 Jul 2013 09:29:11 +0000 Original-Received: from localhost ([127.0.0.1]:59119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uv2KF-0004r3-4G for submit@debbugs.gnu.org; Fri, 05 Jul 2013 05:29:11 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:36971) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uv2KB-0004qT-V2 for 14795@debbugs.gnu.org; Fri, 05 Jul 2013 05:29:09 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 1CCC9CB12 for <14795@debbugs.gnu.org>; Fri, 5 Jul 2013 11:29:01 +0200 (CEST) Original-Received: (qmail 17850 invoked by uid 89); 5 Jul 2013 09:29:01 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 5 Jul 2013 09:29:01 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id C471B1A1B76; Fri, 5 Jul 2013 09:29:00 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:75935 Archived-At: Hello. 5 jul 2013 kl. 00:52 skrev Juanma Barranquero : > Package: emacs >=20 >=20 > This happens since at least 22.1, and I think has been discussed > before on emacs-devel, but I've been unable to find the reference. >=20 > emacs -Q >=20 > (let ((params '((height . 25)))) > (make-frame params) ;; f1 > (modify-frame-parameters (make-frame) params)) ;; f2 >=20 > f1 =3D 28 lines > f2 =3D 25 lines >=20 > Adding (tool-bar-lines . 0) to params, both frames are 25 lines. >=20 > Obviously, when creating the frame Emacs is allowing three additional > lines as space for the toolbar. tool-bar-mode defaults to 3 in a newly > created frame, at least once it has been displayed: >=20 > (let ((f (make-frame))) > (cons (frame-parameter f 'tool-bar-lines) > (progn > (sit-for 0) > (frame-parameter f 'tool-bar-lines)))) >=20 > =3D> (1 . 3) >=20 > Does that happen in all platforms? If so, shouldn't we make the > meaning of the height frame parameter consistent in all its uses? It does not happen in all platforms. NS and Gtk+ does not include = toolbar or menubar, so your f1 and f2 are equal size (25). Lucid/Motif on the other hand inlcude both menubar (1 line) and tool bar = (2 lines) so you get different sizes for f1 and f2. I would expect than = X without toolkit behaves like Lucid/Motif. IMHO, frame parameter like height should not include tool bar and menu = bar. Also, we should really not be talking about lines when specifying = the height of the tool/menu bar, there is no need to. The problem to fix this is you have to have access and knowledge of all = ports, and modify them in parallel. Not an easy task. Also, this has = been kind of low priority, it does not seem to lead to many user bug = reports. Jan D.