From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#11880: 24.1.50; `even-window-heights' should be nil by default Date: Sun, 08 Jul 2012 21:03:24 +0400 Message-ID: <4FF9BD5C.5000403@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341767100 5169 80.91.229.3 (8 Jul 2012 17:05:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 17:05:00 +0000 (UTC) To: 11880@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 19:05:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Snuup-0005TU-Ar for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 19:04:59 +0200 Original-Received: from localhost ([::1]:54125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snuun-0003jt-UX for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 13:04:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snuuk-0003jm-PL for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:04:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Snuuj-00066E-0G for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:04:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snuui-000665-OW for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:04:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Snuzi-00062E-Hs for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jul 2012 17:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11880 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134176734523092 (code B ref -1); Sun, 08 Jul 2012 17:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 17:09:05 +0000 Original-Received: from localhost ([127.0.0.1]:56922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Snuym-00060N-IS for submit@debbugs.gnu.org; Sun, 08 Jul 2012 13:09:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39226) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Snuyi-0005zv-Sf for submit@debbugs.gnu.org; Sun, 08 Jul 2012 13:09:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Snuth-00061X-0a for submit@debbugs.gnu.org; Sun, 08 Jul 2012 13:03:50 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:35456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snutg-00061T-Oo for submit@debbugs.gnu.org; Sun, 08 Jul 2012 13:03:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snutf-0003id-5I for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:03:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Snutd-00061E-21 for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:03:46 -0400 Original-Received: from forward14.mail.yandex.net ([95.108.130.92]:33322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snutc-000615-Ja for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 13:03:44 -0400 Original-Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward14.mail.yandex.net (Yandex) with ESMTP id 984F019812E2 for ; Sun, 8 Jul 2012 21:03:42 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1341767022; bh=iH9kcTws2Xim+uRM7JYObrs6/xoYcrWY94SmIpK4rwc=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=BWNuiZCT5SCsmzYCMf6qcMuNSdBEU02O4gRBfYSmdswdz6Ddkki7c8/50hY+i7RvD ebsJPDkHpP/dnZhyEvLiZR/7XuceFRh0wP8KHTladDGjrqIgV5Svnvx2lxgjUgz4vV RPULruFPQdHEraz1PF3ZGJhsfziVnLaOCpdQk9zI= Original-Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 85DCD1B604FC for ; Sun, 8 Jul 2012 21:03:42 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3g7erqp0-3g7GlJAn; Sun, 8 Jul 2012 21:03:42 +0400 X-Yandex-Rcpt-Suid: bug-gnu-emacs@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1341767022; bh=iH9kcTws2Xim+uRM7JYObrs6/xoYcrWY94SmIpK4rwc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=dO2y+VDNhqi47CXEQaQIHASfjpgJz+N6X8eSr7QvF6mKLFtWhPZ4f9xZgvPjPebd1 v4ne/jvrvFjqyMI70pOT0YOE+ELiSRLKgf6038ceLqHGy8C+aAftNpBBYbVGrlWeLF f7qagv93jmiYlbLmTSfiOmjNuT7NSWocFKD1liIg= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61729 Archived-At: 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