GNU bug report logs - #12419
Mouse click changes layout

Previous Next

Package: emacs;

Reported by: occitan <at> esperanto.org

Date: Tue, 11 Sep 2012 22:06:01 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #77 received at 12419 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: occitan <at> esperanto.org, 12419 <at> debbugs.gnu.org
Subject: Re: bug#12419: Mouse click changes layout
Date: Sat, 15 Sep 2012 11:54:17 +0200
>> 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)







This bug report was last modified 4 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.