unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15174: 24.3.50; frame shrinks vertically when enlarge or shrink it horizontally
@ 2013-08-24  3:22 Drew Adams
  2013-08-24  6:54 ` Eli Zaretskii
  2014-10-21  7:35 ` martin rudalics
  0 siblings, 2 replies; 6+ messages in thread
From: Drew Adams @ 2013-08-24  3:22 UTC (permalink / raw)
  To: 15174

This bug is very old.  Dunno whether I have reported it before (e.g.,
before the bug tracker was added).  Dunno whether it is related to the
recently reported bug #14627, which reminded me of it.

emacs -Q

Just to make it easier:

(defun enlarge-frame-horizontally (&optional increment frame)
  "Increase the width of FRAME (default: selected-frame) by INCREMENT.
INCREMENT is in columns (characters).
Interactively, it is given by the prefix argument."
  (interactive "p")
  (set-frame-width frame (+ (frame-width frame) increment)))

(global-set-key [(control meta right)] 'enlarge-frame-horizontally)

Choose any frame that is showing a menu bar.  Doesn't matter whether it
is also showing a tool bar.

Use the mouse to make the frame narrow enough that the menu bar wraps to
a second line.

Now try C-M-<right> one or more times.  The frame widens each time, but
it also shrinks vertically (the bug).

The same thing happens if you shrink the frame horizontally - same
uncalled-for vertical shrinking.

Dunno whether this is MS Windows-specific.  It is quite annoying for
someone who both (a) has multiple menu-bar menus and (b) adjusts frame
sizes using the keyboard, which I do.  I guess I've adjusted to the
annoyance over the years - I probably automatically avoid resizing
frames horizontally when they are already narrow enough to make the
menu-bar wrap.

FWIW - There used to be a somewhat similar bug that made the frame move
downward when you resized it.  That was finally fixed long ago.  Dunno
whether this problem or its solution might be related to that one.  That
one too was old enough that there was no bug number for it.

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-08-23 on ODIEONE
Bzr revision: 113986 rgm@gnu.org-20130823185841-zoy6h1qk433ibrlf
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'





^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <<394ec688-cab0-443f-b74e-335c573efca0@default>]

end of thread, other threads:[~2014-12-31 18:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-24  3:22 bug#15174: 24.3.50; frame shrinks vertically when enlarge or shrink it horizontally Drew Adams
2013-08-24  6:54 ` Eli Zaretskii
2014-10-21  7:35 ` martin rudalics
2014-10-21 14:27   ` Drew Adams
2014-12-31 18:37     ` martin rudalics
     [not found] <<394ec688-cab0-443f-b74e-335c573efca0@default>
     [not found] ` <<8338pzino6.fsf@gnu.org>
2013-08-24  8:39   ` Drew Adams

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