all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: PierGianLuca <luca@magnaspesmeretrix.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: menu-bar-mode makes frame continuously shrink in height
Date: Thu, 19 Oct 2023 18:33:32 +0800	[thread overview]
Message-ID: <87jzri6gw3.fsf@yahoo.com> (raw)
In-Reply-To: <1557a557-e827-d60f-af1e-48ae7003a6d8@magnaspesmeretrix.org> (PierGianLuca's message of "Thu, 19 Oct 2023 10:29:08 +0200")

PierGianLuca <luca@magnaspesmeretrix.org> writes:

> Hi everyone,
>
> Emacs 29.1 on Ubuntu 20.04 here. Emacs was installed from tarball with options:
> --with-native-compilation --with-json --enable-link-time-optimization --with-x-toolkit=lucid --without-toolkit-scroll-bars
>
>
> I see a curious behaviour from calling "menu-bar-mode" and "tool-bar-mode". Before submitting it as a bug I wanted to ask here if it's something known, or if not how I can track the source of the problem myself.
>
> I have frames set at height=77 in "default-frame-alist", and "menu-bar-mode" and "tool-bar-mode" both set to nil (all via Customize).
>
>
> (A) If I call "M-x menu-bar-mode", the menu bar appears, and the frame
> shrinks vertically by one line. If I call "M-x menu-bar-mode" again,
> the menu bar disappears, and the frame shrinks vertically once
> more. So the more I make the menu bar appear and disappear, the more
> the frame shrinks.
>
> I tried adding and removing "menu-bar-lines" in "frame-inhibit-implied-resize", but the problem remains either way.
>
>
> (B) Exactly the same problem with tool-bar-mode. There's one difference here:
>
> this continuous-shrinking behaviour happens if "tool-bar-lines" is in
> "frame-inhibit-implied-resize". Otherwise, the frame increases in
> vertical size when tool-bar-mode is enabled, and decrease to the
> original size when tool-bar-mode is is disabled. (This seems to me
> contrary to what's explained under "tool-bar-lines".)
>
>
> (C) If I call Emacs with "-Q" (no init file), the continuous shrinking does *not* happen with menu-bar-mode – but it *does* happen with tool-bar-mode.
>
>
> This makes me think that there's both a bug somewhere, but also something strange in my init file.

More likely, your window manager is imposing stringent size requirements
pursuant to the resize increments Emacs has requested.  Do frames
continue to shrink after setting frame-resize-pixelwise to t in
early-init.el?



  reply	other threads:[~2023-10-19 10:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-19  8:29 menu-bar-mode makes frame continuously shrink in height PierGianLuca
2023-10-19 10:33 ` Po Lu [this message]
2023-10-19 11:41   ` 4 pixels missing at startup (was: menu-bar-mode makes frame continuously shrink in height) PierGianLuca
2023-10-19 11:57     ` 4 pixels missing at startup Po Lu
2023-10-19 14:13       ` PierGianLuca

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=87jzri6gw3.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=luca@magnaspesmeretrix.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.