From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#12733: 24.2.50; Disabling menu bar doesn't resize frame correctly --with-x-toolkit=motif Date: Mon, 29 Oct 2012 12:53:02 +0100 Message-ID: <20622.28190.808960.297381@a1i15.kph.uni-mainz.de> References: <20617.22453.530059.496403@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351511626 8817 80.91.229.3 (29 Oct 2012 11:53:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2012 11:53:46 +0000 (UTC) To: 12733@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 12:53:54 2012 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 1TSnug-0004UN-Bq for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2012 12:53:50 +0100 Original-Received: from localhost ([::1]:38290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSnuX-0002Pr-MU for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2012 07:53:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSnuU-0002P7-7E for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 07:53:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSnuT-0008Os-8i for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 07:53:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSnuT-0008Ol-5o for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 07:53:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TSnwo-0000Vt-73 for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 07:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Oct 2012 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12733 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12733-submit@debbugs.gnu.org id=B12733.13515117331925 (code B ref 12733); Mon, 29 Oct 2012 11:56:02 +0000 Original-Received: (at 12733) by debbugs.gnu.org; 29 Oct 2012 11:55:33 +0000 Original-Received: from localhost ([127.0.0.1]:37552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSnwL-0000Uy-Fd for submit@debbugs.gnu.org; Mon, 29 Oct 2012 07:55:33 -0400 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:43288) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSnwI-0000Uq-PW for 12733@debbugs.gnu.org; Mon, 29 Oct 2012 07:55:32 -0400 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id q9TBr3jW021491 for <12733@debbugs.gnu.org>; Mon, 29 Oct 2012 12:53:03 +0100 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.5/8.14.2) with ESMTP id q9TBr3Z5021951; Mon, 29 Oct 2012 12:53:03 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.5/8.14.5/Submit) id q9TBr2aY021949; Mon, 29 Oct 2012 12:53:02 +0100 In-Reply-To: <20617.22453.530059.496403@a1i15.kph.uni-mainz.de> X-Mailer: VM 8.2.0b under 23.4.2 (x86_64-pc-linux-gnu) 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 (newer, 2) 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:66186 Archived-At: >>>>> On Thu, 25 Oct 2012, Ulrich Mueller wrote: > With Emacs from BZR (revision 110662) linked against the Motif toolkit > (version 2.3.4), I observe that after disabling the menu bar, the > frame doesn't have the correct height. The result is that the modeline > and the minibuffer are no longer visible. > Steps to reproduce: > $ emacs -Q > ;; Lisp Interaction Mode: > (frame-pixel-height) > 608 In fact, there's already an inconsistency here. The documentation of frame-pixel-height says: With the Motif or Lucid toolkits, it also includes the tool bar (but not the menu bar). However, if I measure the height on my screen, it is 608 pixels in total, i.e. including _both_ the tool bar and the menu bar. (I see the same inconsistency if configured --with-x-toolkit=lucid, BTW.) Is it an error in the code or in the documentation? > (frame-height) > 38 > (menu-bar-mode -1) > nil > ;; At this point, the X window shrinks by the height of the menu bar. > ;; However, the bottom of the frame contents (containing modeline and > ;; minibuffer) are no longer visible. > (frame-pixel-height) > 608 This value is definitely wrong. Measured height is only 572 pixels. > ;; Number of lines is _larger_ than before: > (frame-height) > 40