all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: 12733@debbugs.gnu.org
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	[thread overview]
Message-ID: <20622.28190.808960.297381@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <20617.22453.530059.496403@a1i15.kph.uni-mainz.de>

>>>>> 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





  reply	other threads:[~2012-10-29 11:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-25 15:16 bug#12733: 24.2.50; Disabling menu bar doesn't resize frame correctly --with-x-toolkit=motif Ulrich Mueller
2012-10-29 11:53 ` Ulrich Mueller [this message]
2012-10-30 18:42   ` Jan Djärv
2012-10-30 20:10     ` Ulrich Mueller
2012-10-30 21:08       ` Jan Djärv
2012-10-31 10:26         ` martin rudalics
2012-11-01  7:22           ` Jan Djärv
2012-11-01  9:12             ` Ulrich Mueller
2012-11-02 17:26               ` Jan Djärv
2012-11-02 18:44                 ` Ulrich Mueller
2012-11-03 11:38                   ` Jan Djärv
2012-11-01 13:50             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20622.28190.808960.297381@a1i15.kph.uni-mainz.de \
    --to=ulm@gentoo.org \
    --cc=12733@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.