all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 15174@debbugs.gnu.org
Subject: bug#15174: 24.3.50; frame shrinks vertically when enlarge or shrink it horizontally
Date: Fri, 23 Aug 2013 20:22:27 -0700 (PDT)	[thread overview]
Message-ID: <394ec688-cab0-443f-b74e-335c573efca0@default> (raw)

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'





             reply	other threads:[~2013-08-24  3:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-24  3:22 Drew Adams [this message]
2013-08-24  6:54 ` bug#15174: 24.3.50; frame shrinks vertically when enlarge or shrink it horizontally 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

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=394ec688-cab0-443f-b74e-335c573efca0@default \
    --to=drew.adams@oracle.com \
    --cc=15174@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.