unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: 11880@debbugs.gnu.org
Subject: bug#11880: 24.1.50; `even-window-heights' should be nil by default
Date: Sun, 08 Jul 2012 21:03:24 +0400	[thread overview]
Message-ID: <4FF9BD5C.5000403@yandex.ru> (raw)

As mentioned in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11810,
I believe that the behavior enabled by this variable is non-intuitive
and inconsistent.

Many users have become used to it, but looks like the majority just
doesn't know how to disable it. Example:
http://stackoverflow.com/questions/4716855/how-can-i-prevent-emacs-resizing-my-windows

A question to people who like it as it is: what's the idea behind the
window position limitations? Why only resize when the used window is
vertically adjacent to the selected, and only when below it?
Why not resize independent of position, as long as the used window is inside
some vertically split combination?

As alternative to disabling it by default, I propose to
1) Make `window--even-window-heights' resize any window as long as that
would only move the window(s) in the same combination (or something like
that).
2) Restore the original window height on `quit-window'. This amounts to
the following code at the end of `display-buffer-user-some-window':

   (when window
     (prog1
       (window--display-buffer buffer window 'reuse)
       (window--even-window-heights window)))

--Dmitry

GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-07-06





             reply	other threads:[~2012-07-08 17:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 17:03 Dmitry Gutov [this message]
     [not found] ` <handler.11880.B.134176734523092.ack@debbugs.gnu.org>
2012-07-12 18:52   ` bug#11880: Acknowledgement (24.1.50; `even-window-heights' should be nil by default) Dmitry Gutov
2012-08-25 14:57     ` martin rudalics
2012-08-25 14:57 ` bug#11880: 24.1.50; `even-window-heights' should be nil by default martin rudalics
2012-08-25 22:28   ` Dmitry Gutov
2012-08-27  9:16     ` martin rudalics

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FF9BD5C.5000403@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=11880@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 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).