From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#12419: Mouse click changes layout Date: Sat, 15 Sep 2012 11:54:17 +0200 Message-ID: <50545049.40101@gmx.at> References: <504FB55D.5030405@t-online.de> <5050432C.4060203@gmx.at> <5052450F.8030001@t-online.de> <5052F242.4060303@gmx.at> <83a9wsvqk6.fsf@gnu.org> <50533344.2030000@gmx.at> <831ui4veny.fsf@gnu.org> <50534A48.5080805@gmx.at> <83zk4stuf1.fsf@gnu.org> <50538260.40900@gmx.at> <83wqzwtl57.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347702908 27834 80.91.229.3 (15 Sep 2012 09:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 09:55:08 +0000 (UTC) Cc: occitan@esperanto.org, 12419@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 15 11:55:09 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 1TCp5g-0003Yl-FF for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 11:55:08 +0200 Original-Received: from localhost ([::1]:54976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCp5c-0001LF-Gs for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 05:55:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCp5Z-0001JL-0R for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:55:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCp5Y-0002lX-5i for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:55:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCp5Y-0002lT-2l for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:55:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCp6X-0007cN-Vx for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Sep 2012 09:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12419 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12419-submit@debbugs.gnu.org id=B12419.134770292329216 (code B ref 12419); Sat, 15 Sep 2012 09:56:01 +0000 Original-Received: (at 12419) by debbugs.gnu.org; 15 Sep 2012 09:55:23 +0000 Original-Received: from localhost ([127.0.0.1]:34763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCp5v-0007bB-9B for submit@debbugs.gnu.org; Sat, 15 Sep 2012 05:55:23 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:46078) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TCp5s-0007az-JG for 12419@debbugs.gnu.org; Sat, 15 Sep 2012 05:55:21 -0400 Original-Received: (qmail invoked by alias); 15 Sep 2012 09:54:17 -0000 Original-Received: from 62-47-47-87.adsl.highway.telekom.at (EHLO [62.47.47.87]) [62.47.47.87] by mail.gmx.net (mp030) with SMTP; 15 Sep 2012 11:54:17 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX187uStdfIc7EY3U8FQl5slLSk89aEO3jxBH5bzZx0 pkOHjPOhbZqYZZ In-Reply-To: <83wqzwtl57.fsf@gnu.org> X-Y-GMX-Trusted: 0 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:64347 Archived-At: >> The example I gave should have told you. Think of the bottom window as >> the minibuffer window. > > I did. And I see no problems with that. You see no problem with minibuffer window resizing not restoring the initial configuration? >> I use ediff with the control panel on the bottom of the frame. How can >> I resize the minibuffer in this case? > > Why, by resizing the window above the control panel, of course. And how would you size the minibuffer back? > I > didn't say it won't happen, I just said it will be rare, and therefore > not a reason not to have that behavior. OK. Please try the patch below and tell me whether it does what you want. Thanks, martin === modified file 'lisp/window.el' --- lisp/window.el 2012-09-09 06:43:47 +0000 +++ lisp/window.el 2012-09-15 09:26:32 +0000 @@ -2413,7 +2413,9 @@ ;; So, in practice, we'd need a history variable to record how to ;; proceed. But I'm not sure how such a variable could work with ;; repeated minibuffer window growing steps. - (window--resize-this-window window delta nil ignore t) + (window--resize-this-window + window delta nil ignore t 'before + (+ (window-top-line window) (window-total-size window))) delta))) (defun adjust-window-trailing-edge (window delta &optional horizontal)