GNU bug report logs - #38684
26.3; toggle menu bar twice may change frame height

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Fri, 20 Dec 2019 02:45:01 UTC

Severity: minor

Found in version 26.3

To reply to this bug, email your comments to 38684 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38684; Package emacs. (Fri, 20 Dec 2019 02:45:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to ynyaaa <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 20 Dec 2019 02:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ynyaaa <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; toggle menu bar twice may change frame height
Date: Fri, 20 Dec 2019 11:44:27 +0900
If the frame is narrow enough to display the menu bar for current buffer
in two lines and wide enough to display the menu bar for minibuffer in
one line, toggling menu bar using minibuffer(M-x menu-bar-mode) twice
enlarges the frame height.


In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29 built on CIRROCUMULUS
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor 'Microsoft Corp.', version 6.3.9600
Recent messages:

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
  value of $LANG: JPN
  locale-coding-system: cp932

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(help-mode pp shadow emacsbug network-stream nsm starttls tls gnutls
mailalias smtpmail auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs sendmail sort mail-extr message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib format-spec rfc822 mml
easymenu mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils
gmm-utils mailheader misearch multi-isearch dired dired-loaddefs
elec-pair time-date mule-util japan-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table
term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 121914 19301)
 (symbols 48 22766 0)
 (miscs 40 88 315)
 (strings 32 34258 2198)
 (string-bytes 1 890517)
 (vectors 16 16499)
 (vector-slots 8 618004 12452)
 (floats 8 56 304)
 (intervals 56 2310 214)
 (buffers 992 18))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38684; Package emacs. (Fri, 20 Dec 2019 18:31:01 GMT) Full text and rfc822 format available.

Message #8 received at 38684 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: ynyaaa <at> gmail.com, 38684 <at> debbugs.gnu.org
Subject: Re: bug#38684: 26.3; toggle menu bar twice may change frame height
Date: Fri, 20 Dec 2019 19:29:55 +0100
> If the frame is narrow enough to display the menu bar for current buffer
> in two lines and wide enough to display the menu bar for minibuffer in
> one line, toggling menu bar using minibuffer(M-x menu-bar-mode) twice
> enlarges the frame height.
>
>
> In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
>   of 2019-08-29 built on CIRROCUMULUS
> Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
> Windowing system distributor 'Microsoft Corp.', version 6.3.9600
> Recent messages:

Adding 'menu-bar-lines' to 'frame-inhibit-implied-resize' should be
the second best cure for that (setting 'frame-inhibit-implied-resize'
to t being certainly the best).  Other than that, I strongly doubt
that anyone will fix such corner cases.  Or maybe you want to give it
a try?

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38684; Package emacs. (Sun, 22 Dec 2019 12:29:02 GMT) Full text and rfc822 format available.

Message #11 received at 38684 <at> debbugs.gnu.org (full text, mbox):

From: ynyaaa <at> gmail.com
To: martin rudalics <rudalics <at> gmx.at>
Cc: 38684 <at> debbugs.gnu.org
Subject: Re: bug#38684: 26.3; toggle menu bar twice may change frame height
Date: Sun, 22 Dec 2019 21:28:18 +0900
martin rudalics <rudalics <at> gmx.at> writes:

>> If the frame is narrow enough to display the menu bar for current buffer
>> in two lines and wide enough to display the menu bar for minibuffer in
>> one line, toggling menu bar using minibuffer(M-x menu-bar-mode) twice
>> enlarges the frame height.
>>
>>
>> In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
>>   of 2019-08-29 built on CIRROCUMULUS
>> Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
>> Windowing system distributor 'Microsoft Corp.', version 6.3.9600
>> Recent messages:
>
> Adding 'menu-bar-lines' to 'frame-inhibit-implied-resize' should be
> the second best cure for that (setting 'frame-inhibit-implied-resize'
> to t being certainly the best).  Other than that, I strongly doubt
> that anyone will fix such corner cases.  Or maybe you want to give it
> a try?
>
> martin

I didn't know the variable. Thank you.

Descriptions in info (elisp)Implied Frame Resizing and
in help C-h v frame-inhibit-implied-resize slightly differ.

first paragraph
info: If this option is non-‘nil’, no implied resizing is done.
help: If this option is t, no such resizing is done.

second paragraph
info: The value of this option can be also a list
help: The value of this option can be also be a list




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38684; Package emacs. (Mon, 23 Dec 2019 10:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 38684 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: ynyaaa <at> gmail.com
Cc: 38684 <at> debbugs.gnu.org
Subject: Re: bug#38684: 26.3; toggle menu bar twice may change frame height
Date: Mon, 23 Dec 2019 11:07:59 +0100
> Descriptions in info (elisp)Implied Frame Resizing and
> in help C-h v frame-inhibit-implied-resize slightly differ.
>
> first paragraph
> info: If this option is non-‘nil’, no implied resizing is done.
> help: If this option is t, no such resizing is done.
>
> second paragraph
> info: The value of this option can be also a list
> help: The value of this option can be also be a list

These should be hopefully fixed now.  Many thanks for reading them
carefully.

Note also that in

>>> If the frame is narrow enough to display the menu bar for current buffer
>>> in two lines and wide enough to display the menu bar for minibuffer in
>>> one line, toggling menu bar using minibuffer(M-x menu-bar-mode) twice
>>> enlarges the frame height.

the term "twice" (or merely its position in the text) is misleading.
But, in fact, the bug already appears when you toggle the menu bar off
- the frame should correctly shrink in that case.

Thanks again, martin





Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 25 Aug 2020 22:59:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.