unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38684: 26.3; toggle menu bar twice may change frame height
@ 2019-12-20  2:44 ynyaaa
  2019-12-20 18:29 ` martin rudalics
  0 siblings, 1 reply; 4+ messages in thread
From: ynyaaa @ 2019-12-20  2:44 UTC (permalink / raw)
  To: 38684


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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38684: 26.3; toggle menu bar twice may change frame height
  2019-12-20  2:44 bug#38684: 26.3; toggle menu bar twice may change frame height ynyaaa
@ 2019-12-20 18:29 ` martin rudalics
  2019-12-22 12:28   ` ynyaaa
  0 siblings, 1 reply; 4+ messages in thread
From: martin rudalics @ 2019-12-20 18:29 UTC (permalink / raw)
  To: ynyaaa, 38684

 > 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38684: 26.3; toggle menu bar twice may change frame height
  2019-12-20 18:29 ` martin rudalics
@ 2019-12-22 12:28   ` ynyaaa
  2019-12-23 10:07     ` martin rudalics
  0 siblings, 1 reply; 4+ messages in thread
From: ynyaaa @ 2019-12-22 12:28 UTC (permalink / raw)
  To: martin rudalics; +Cc: 38684

martin rudalics <rudalics@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38684: 26.3; toggle menu bar twice may change frame height
  2019-12-22 12:28   ` ynyaaa
@ 2019-12-23 10:07     ` martin rudalics
  0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2019-12-23 10:07 UTC (permalink / raw)
  To: ynyaaa; +Cc: 38684

 > 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






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-23 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-20  2:44 bug#38684: 26.3; toggle menu bar twice may change frame height ynyaaa
2019-12-20 18:29 ` martin rudalics
2019-12-22 12:28   ` ynyaaa
2019-12-23 10:07     ` martin rudalics

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).