GNU bug report logs - #11276
minibuffers windows can no longer be explicitly resized

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 19 Apr 2012 01:05:01 UTC

Severity: normal

Found in version 24.0.95

Fixed in version 24.0.96

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11276 in the body.
You can then email your comments to 11276 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 01:05:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: minibuffers windows can no longer explictly be resized
Date: Wed, 18 Apr 2012 21:04:05 -0400
Package: emacs
Version: 24.0.95

The Elisp manual "Introduction to Minibuffers" says:

    The minibuffer's window is normally a single line[...]. You can
    explicitly resize it temporarily with the window sizing commands; it
    reverts to its normal size when the minibuffer is exited.

In Emacs 23.4, it works to do:

emacs -Q
M-x C-x ^ C-x ^
   (the minibuffer window gets one line taller each time)

But in the current trunk, that has no effect.


(The manual also says:

   You can resize it permanently by using the window sizing commands in
   the frame's other window, when the minibuffer is not active.

I don't know what this means. It doesn't seem to work in any version of
Emacs that I can find.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 06:58:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 08:56:54 +0200
> In Emacs 23.4, it works to do:
>
> emacs -Q
> M-x C-x ^ C-x ^

Which command does this run?  I can't reasonably input "^" from the
command prompt here.

>    (the minibuffer window gets one line taller each time)
>
> But in the current trunk, that has no effect.

Does it work if you set `resize-mini-windows' to nil?  If I do that
here, I can, for example, drag the divider between the emacs -Q main
window and the minibuffer window with the mouse.

> (The manual also says:
>
>    You can resize it permanently by using the window sizing commands in
>    the frame's other window, when the minibuffer is not active.
>
> I don't know what this means. It doesn't seem to work in any version of
> Emacs that I can find.)

The terminology "in the frame's other window" seems to indicate that
this was written in an earlier century.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 07:13:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 03:12:35 -0400
martin rudalics wrote:

>> M-x C-x ^ C-x ^
>
> Which command does this run?  I can't reasonably input "^" from the
> command prompt here.

C-x ^ runs enlarge-window

> Does it work if you set `resize-mini-windows' to nil?

No.

>  If I do that here, I can, for example, drag the divider between the
> emacs -Q main window and the minibuffer window with the mouse.

I can't seem to do that (GNU/Linux, lucid toolkit), no matter what the
value of resize-mini-windows is. Works in 23.4, not in trunk.

> The terminology "in the frame's other window" seems to indicate that
> this was written in an earlier century.

I didn't get that impression the first time I read it, but you could be
right.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 10:43:01 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 12:42:06 +0200
[Message part 1 (text/plain, inline)]
> C-x ^ runs enlarge-window

Silly binding.

>> Does it work if you set `resize-mini-windows' to nil?
>
> No.

First bug.  I forgot that one can invoke `enlarge-window' and
`shrink-window' in the minibuffer window.  I'm not sure though whether these
should have any effect when `resize-mini-windows' is non-nil.

>>  If I do that here, I can, for example, drag the divider between the
>> emacs -Q main window and the minibuffer window with the mouse.
>
> I can't seem to do that (GNU/Linux, lucid toolkit), no matter what the
> value of resize-mini-windows is. Works in 23.4, not in trunk.

Second bug (though it should work with >= 2 windows).  I misinterpreted
the semantics of `one-window-p'.

Please test the attached patch.  Resizing miniwindows was hardly tested,
unfortunately.

martin
[resize-mini-window.diff (text/plain, inline)]
=== modified file 'lisp/mouse.el'
--- lisp/mouse.el	2012-01-19 07:21:25 +0000
+++ lisp/mouse.el	2012-04-19 08:24:05 +0000
@@ -408,7 +408,7 @@
 	  (and (eq line 'mode)
 	       (not resize-mini-windows)
 	       (eq (window-frame minibuffer-window) frame)
-	       (not (one-window-p t frame))
+	       (not (one-window-p t))
 	       (= (nth 1 (window-edges minibuffer-window))
 		  (nth 3 (window-edges window)))))
 	 (which-side

=== modified file 'lisp/window.el'
--- lisp/window.el	2012-04-11 02:36:04 +0000
+++ lisp/window.el	2012-04-19 10:22:56 +0000
@@ -2102,6 +2102,8 @@
    ((zerop delta))
    ((window-size-fixed-p nil horizontal)
     (error "Selected window has fixed size"))
+   ((and (window-minibuffer-p) (not horizontal))
+    (window--resize-mini-window (selected-window) delta))
    ((window--resizable-p nil delta horizontal)
     (window-resize nil delta horizontal))
    (t
@@ -2124,6 +2126,8 @@
    ((zerop delta))
    ((window-size-fixed-p nil horizontal)
     (error "Selected window has fixed size"))
+   ((and (window-minibuffer-p) (not horizontal))
+    (window--resize-mini-window (selected-window) (- delta)))
    ((window--resizable-p nil (- delta) horizontal)
     (window-resize nil (- delta) horizontal))
    (t



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 14:30:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 17:28:32 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Wed, 18 Apr 2012 21:04:05 -0400
> 
> (The manual also says:
> 
>    You can resize it permanently by using the window sizing commands in
>    the frame's other window, when the minibuffer is not active.

This is inaccurate to the degree that it's exactly the other way
around: when the minibuffer _is_ active, you can use, e.g., the mouse
to drag the mode line above the minibuffer window and thus resize that
window.  When the minibuffer is not active, you can only do that if
resize-mini-windows (a misnomer, see my other mail) is nil.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 14:33:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 17:31:50 +0300
> Date: Thu, 19 Apr 2012 08:56:54 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> Cc: 11276 <at> debbugs.gnu.org
> 
> Does it work if you set `resize-mini-windows' to nil?  If I do that
> here, I can, for example, drag the divider between the emacs -Q main
> window and the minibuffer window with the mouse.

This doesn't work for me, neither on the trunk nor on the emacs-24
branch.

>  > (The manual also says:
>  >
>  >    You can resize it permanently by using the window sizing commands in
>  >    the frame's other window, when the minibuffer is not active.
>  >
>  > I don't know what this means. It doesn't seem to work in any version of
>  > Emacs that I can find.)
> 
> The terminology "in the frame's other window" seems to indicate that
> this was written in an earlier century.

How would you rephrase this for this century?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 14:40:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 17:37:58 +0300
> Date: Thu, 19 Apr 2012 12:42:06 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> Cc: 11276 <at> debbugs.gnu.org
> 
> First bug.  I forgot that one can invoke `enlarge-window' and
> `shrink-window' in the minibuffer window.  I'm not sure though whether these
> should have any effect when `resize-mini-windows' is non-nil.

For compatibility with previous versions of Emacs, I think it
shouldn't, at least not on the emacs-24 branch.

resize-mini-windows is a misnomer: it actually means "mini-window size
is controlled by display engine".  That's why window-sizing commands
in previous versions never paid heed to it, only redisplay did.  And
that's why, quite counter-intuitively, setting it to _nil_ allows the
user to resize the mini-window.

We could make the implementation more in line with the name in future
versions, if we want, of course.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 15:14:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>, "'martin rudalics'" <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org
Subject: RE: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 08:13:03 -0700
> resize-mini-windows is a misnomer: it actually means "mini-window size
> is controlled by display engine".  That's why window-sizing commands
> in previous versions never paid heed to it, only redisplay did.  And
> that's why, quite counter-intuitively, setting it to _nil_ allows the
> user to resize the mini-window.
> 
> We could make the implementation more in line with the name in future
> versions, if we want, of course.

1. The right way to go is to decide first on the behavior you want.  Then base
the name on what it actually does.  If it needs to be renamed based on the
desired behavior then rename it, deprecating and temporarily aliasing the old
name.

It does not make much sense to instead design the behavior based on what the
name happens to be - unless that behavior is what you want anyway.  IOW, design
and name together; don't constrain the design to an existing name.

2. Wrt naming something that happens automatically (and possibly prevents or
overrides manual change by a user - in this case resizing): Use "auto" or
"automatic".  In this case, call it "autosize", "autoresize",
"automatic-(re)size", or some such.  That suggests that (a) the behavior is
automatic and (b) you might not be able to override it manually.

If the behavior of this option should be to allow automatic resizing (which
might or might not prevent manual resizing, depending on the design), then call
it something like "auto-resize-minibuffer" or "auto-resize-minibuf-window".

3. I've already said before that it is wrong to use only "mini" here.  This is
not just a mini-window, i.e., a small window - it is a minibuffer window.  See
bug #3320, deemed "wont-fix" by Lars:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3320.  Perhaps now that others
consider that `resize-mini-windows' is a misnomer (for additional reasons), this
misuse of "mini" can be reconsidered.

4. It might also be wrong (unnecessary for users) to refer here to minibuffer
window_s_ (plural).  In most contexts users do not need to know or care about
the existence of multiple minibuffer windows.  And in this case, unless the
option behavior does something specific that needs to call user attention to
multiple windows, Occam advises to just use the singular in the name.  Nuances,
if need be, can be pointed out in the doc.

5. And in this case it would perhaps not be inappropriate to refer to
auto-resizing of the minibuffer and not bother to add "window".  True, someone
using apropos for "window" would not find it, but a search for "minibuf" would:
`auto-resize-minibuffer'.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 17:18:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 19:18:21 +0200
[Message part 1 (text/plain, inline)]
>> First bug.  I forgot that one can invoke `enlarge-window' and
>> `shrink-window' in the minibuffer window.  I'm not sure though whether these
>> should have any effect when `resize-mini-windows' is non-nil.
>
> For compatibility with previous versions of Emacs, I think it
> shouldn't, at least not on the emacs-24 branch.

Sorry, my formulation was probably unclear.  In Emas 23 you can often
resize the active minibuffer window manually (via `enlarge-window' or
`adjust-window-trailing-edge') regardless of the setting of
`resize-mini-windows'.  So should we keep that behavior or allow manual
resizing only when `resize-mini-windows' is nil?

> resize-mini-windows is a misnomer: it actually means "mini-window size
> is controlled by display engine".  That's why window-sizing commands
> in previous versions never paid heed to it, only redisplay did.  And
> that's why, quite counter-intuitively, setting it to _nil_ allows the
> user to resize the mini-window.

The passive mini-window IIUC.

> We could make the implementation more in line with the name in future
> versions, if we want, of course.

That's another issue.

Please try the new patch I attached.  It should mimic the behavior of
Emacs 23 as close as possible.

martin
[resize-mini-window.diff (text/plain, inline)]
=== modified file 'lisp/mouse.el'
--- lisp/mouse.el	2012-01-19 07:21:25 +0000
+++ lisp/mouse.el	2012-04-19 17:09:19 +0000
@@ -406,9 +406,11 @@
 		       (mouse-on-link-p start)))
 	 (enlarge-minibuffer
 	  (and (eq line 'mode)
-	       (not resize-mini-windows)
-	       (eq (window-frame minibuffer-window) frame)
-	       (not (one-window-p t frame))
+	       ;; Enlarge the minibuffer window iff it's either selected
+	       ;; or `resize-mini-windows' is nil.
+	       (or (not resize-mini-windows)
+		   (eq minibuffer-window (selected-window)))
+	       (not (one-window-p))
 	       (= (nth 1 (window-edges minibuffer-window))
 		  (nth 3 (window-edges window)))))
 	 (which-side

=== modified file 'lisp/window.el'
--- lisp/window.el	2012-04-11 02:36:04 +0000
+++ lisp/window.el	2012-04-19 17:09:12 +0000
@@ -1991,17 +1991,21 @@
 the left.  If the edge can't be moved by DELTA lines or columns,
 move it as far as possible in the desired direction."
   (setq window (window-normalize-window window))
-  (let ((frame (window-frame window))
-	(right window)
-	left this-delta min-delta max-delta)
+  (let* ((frame (window-frame window))
+	 (minibuffer-window (minibuffer-window frame))
+	 (right window)
+	 left this-delta min-delta max-delta)
     ;; Find the edge we want to move.
     (while (and (or (not (window-combined-p right horizontal))
 		    (not (window-right right)))
 		(setq right (window-parent right))))
     (cond
-     ((and (not right) (not horizontal) (not resize-mini-windows)
-	   (eq (window-frame (minibuffer-window frame)) frame))
-      (window--resize-mini-window (minibuffer-window frame) (- delta)))
+     ((and (not right) (not horizontal)
+	   ;; Resize the minibuffer window iff it's either active or
+	   ;; `resize-mini-windows' is nil. 
+	   (or (not resize-mini-windows)
+	       (eq minibuffer-window (selected-window))))
+      (window--resize-mini-window minibuffer-window (- delta)))
      ((or (not (setq left right)) (not (setq right (window-right right))))
       (if horizontal
 	  (error "No window on the right of this one")
@@ -2102,6 +2106,8 @@
    ((zerop delta))
    ((window-size-fixed-p nil horizontal)
     (error "Selected window has fixed size"))
+   ((and (window-minibuffer-p) (not horizontal))
+    (window--resize-mini-window (selected-window) delta))
    ((window--resizable-p nil delta horizontal)
     (window-resize nil delta horizontal))
    (t
@@ -2124,6 +2130,8 @@
    ((zerop delta))
    ((window-size-fixed-p nil horizontal)
     (error "Selected window has fixed size"))
+   ((and (window-minibuffer-p) (not horizontal))
+    (window--resize-mini-window (selected-window) (- delta)))
    ((window--resizable-p nil (- delta) horizontal)
     (window-resize nil (- delta) horizontal))
    (t



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Thu, 19 Apr 2012 17:23:01 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Thu, 19 Apr 2012 19:23:02 +0200
>> Does it work if you set `resize-mini-windows' to nil?  If I do that
>> here, I can, for example, drag the divider between the emacs -Q main
>> window and the minibuffer window with the mouse.
>
> This doesn't work for me, neither on the trunk nor on the emacs-24
> branch.

With a split frame you should be able to do that.

>>  > (The manual also says:
>>  >
>>  >    You can resize it permanently by using the window sizing commands in
>>  >    the frame's other window, when the minibuffer is not active.
>>  >
>>  > I don't know what this means. It doesn't seem to work in any version of
>>  > Emacs that I can find.)
>>
>> The terminology "in the frame's other window" seems to indicate that
>> this was written in an earlier century.
>
> How would you rephrase this for this century?

Maybe "in a window adjacent to it"?

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 07:45:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 10:43:47 +0300
> Date: Thu, 19 Apr 2012 19:18:21 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: rgm <at> gnu.org, 11276 <at> debbugs.gnu.org
> 
>  >> First bug.  I forgot that one can invoke `enlarge-window' and
>  >> `shrink-window' in the minibuffer window.  I'm not sure though whether these
>  >> should have any effect when `resize-mini-windows' is non-nil.
>  >
>  > For compatibility with previous versions of Emacs, I think it
>  > shouldn't, at least not on the emacs-24 branch.
> 
> Sorry, my formulation was probably unclear.

No, it was perfectly clear.  It's my wording that is confusing.  What
I meant to say is that, for compatibility, resize-mini-windows should
have no effect on "C-x ^" typed from the minibuffer window.

>  > resize-mini-windows is a misnomer: it actually means "mini-window size
>  > is controlled by display engine".  That's why window-sizing commands
>  > in previous versions never paid heed to it, only redisplay did.  And
>  > that's why, quite counter-intuitively, setting it to _nil_ allows the
>  > user to resize the mini-window.
> 
> The passive mini-window IIUC.

Yes.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 07:48:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 10:47:05 +0300
> Date: Thu, 19 Apr 2012 19:23:02 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: rgm <at> gnu.org, 11276 <at> debbugs.gnu.org
> 
>  >> Does it work if you set `resize-mini-windows' to nil?  If I do that
>  >> here, I can, for example, drag the divider between the emacs -Q main
>  >> window and the minibuffer window with the mouse.
>  >
>  > This doesn't work for me, neither on the trunk nor on the emacs-24
>  > branch.
> 
> With a split frame you should be able to do that.
> 
>  >>  > (The manual also says:
>  >>  >
>  >>  >    You can resize it permanently by using the window sizing commands in
>  >>  >    the frame's other window, when the minibuffer is not active.
>  >>  >
>  >>  > I don't know what this means. It doesn't seem to work in any version of
>  >>  > Emacs that I can find.)
>  >>
>  >> The terminology "in the frame's other window" seems to indicate that
>  >> this was written in an earlier century.
>  >
>  > How would you rephrase this for this century?
> 
> Maybe "in a window adjacent to it"?

What's the difference?

Is your problem with the "window", in singular, or with something
else, like "the frame"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 10:02:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 12:01:22 +0200
>>  >> First bug.  I forgot that one can invoke `enlarge-window' and
>>  >> `shrink-window' in the minibuffer window.  I'm not sure though whether these
>>  >> should have any effect when `resize-mini-windows' is non-nil.
>>  >
>>  > For compatibility with previous versions of Emacs, I think it
>>  > shouldn't, at least not on the emacs-24 branch.
>>
>> Sorry, my formulation was probably unclear.
>
> No, it was perfectly clear.  It's my wording that is confusing.  What
> I meant to say is that, for compatibility, resize-mini-windows should
> have no effect on "C-x ^" typed from the minibuffer window.

OK

>>  > resize-mini-windows is a misnomer: it actually means "mini-window size
>>  > is controlled by display engine".  That's why window-sizing commands
>>  > in previous versions never paid heed to it, only redisplay did.  And
>>  > that's why, quite counter-intuitively, setting it to _nil_ allows the
>>  > user to resize the mini-window.
>>
>> The passive mini-window IIUC.
>
> Yes.

I checked in a fix similar to the one I posted earlier.  Please test it
with C-x ^ and modeline dragging.

Thanks, martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 10:03:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 12:01:57 +0200
>>  >>  > (The manual also says:
>>  >>  >
>>  >>  >    You can resize it permanently by using the window sizing commands in
>>  >>  >    the frame's other window, when the minibuffer is not active.
>>  >>  >
>>  >>  > I don't know what this means. It doesn't seem to work in any version of
>>  >>  > Emacs that I can find.)
>>  >>
>>  >> The terminology "in the frame's other window" seems to indicate that
>>  >> this was written in an earlier century.
>>  >
>>  > How would you rephrase this for this century?
>>
>> Maybe "in a window adjacent to it"?
>
> What's the difference?
>
> Is your problem with the "window", in singular, or with something
> else, like "the frame"?
>

What does a term like "the frame's other window" mean?  A frame can have
a couple of "other windows".  It took me some while to find out that the
other window must be a full height live window.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 10:18:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 13:16:44 +0300
> Date: Fri, 20 Apr 2012 12:01:22 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: rgm <at> gnu.org, 11276 <at> debbugs.gnu.org
> 
> I checked in a fix similar to the one I posted earlier.  Please test it
> with C-x ^ and modeline dragging.

Seems to work fine, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 10:52:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 13:49:49 +0300
> Date: Fri, 20 Apr 2012 12:01:57 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: rgm <at> gnu.org, 11276 <at> debbugs.gnu.org
> 
>  >>  >>  > (The manual also says:
>  >>  >>  >
>  >>  >>  >    You can resize it permanently by using the window sizing commands in
>  >>  >>  >    the frame's other window, when the minibuffer is not active.
>  >>  >>  >
>  >>  >>  > I don't know what this means. It doesn't seem to work in any version of
>  >>  >>  > Emacs that I can find.)
>  >>  >>
>  >>  >> The terminology "in the frame's other window" seems to indicate that
>  >>  >> this was written in an earlier century.
>  >>  >
>  >>  > How would you rephrase this for this century?
>  >>
>  >> Maybe "in a window adjacent to it"?
>  >
>  > What's the difference?
>  >
>  > Is your problem with the "window", in singular, or with something
>  > else, like "the frame"?
>  >
> 
> What does a term like "the frame's other window" mean?  A frame can have
> a couple of "other windows".

Would it be better if we said "the frame's other windows", in plural?

> It took me some while to find out that the other window must be a
> full height live window.

??? I can resize the minibuffer window like this:

  emacs -Q
  M-: (setq resize-mini-windows nil) RET
  C-x 2
  drag the mode line of the lowest window with the mouse

What is the recipe where you must have a full-height window above the
minibuffer?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 12:07:01 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 14:05:57 +0200
>> What does a term like "the frame's other window" mean?  A frame can have
>> a couple of "other windows".
>
> Would it be better if we said "the frame's other windows", in plural?

No.

> ??? I can resize the minibuffer window like this:
>
>   emacs -Q
>   M-: (setq resize-mini-windows nil) RET
>   C-x 2
>   drag the mode line of the lowest window with the mouse
>
> What is the recipe where you must have a full-height window above the
> minibuffer?

Unplug your mouse ;-)

For example,

  emacs -Q
  M-: (setq resize-mini-windows nil) RET
  C-x 2
  C-x o
  M-x shrink-window

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 14:19:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 17:17:12 +0300
> Date: Fri, 20 Apr 2012 14:05:57 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: rgm <at> gnu.org, 11276 <at> debbugs.gnu.org
> 
>  >> What does a term like "the frame's other window" mean?  A frame can have
>  >> a couple of "other windows".
>  >
>  > Would it be better if we said "the frame's other windows", in plural?
> 
> No.

Why not?

>  > ??? I can resize the minibuffer window like this:
>  >
>  >   emacs -Q
>  >   M-: (setq resize-mini-windows nil) RET
>  >   C-x 2
>  >   drag the mode line of the lowest window with the mouse
>  >
>  > What is the recipe where you must have a full-height window above the
>  > minibuffer?
> 
> Unplug your mouse ;-)
> 
> For example,
> 
>    emacs -Q
>    M-: (setq resize-mini-windows nil) RET
>    C-x 2
>    C-x o
>    M-x shrink-window

OK, but that's just the side effect of how shrink-window works, the
mouse way proves that it _is_ possible to resize the minibuffer window
even if the window above it is not full-height.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Fri, 20 Apr 2012 15:33:01 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11276 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 17:31:32 +0200
>>  > Would it be better if we said "the frame's other windows", in plural?
>>
>> No.
>
> Why not?

Because the other windows might be of no help here, see below.

> OK, but that's just the side effect of how shrink-window works, the
> mouse way proves that it _is_ possible to resize the minibuffer window
> even if the window above it is not full-height.

We know that resizing the minibuffer window works because the display
code does it all the time.  The mouse way doesn't prove anything
additional because modeline dragging works regardless of the window I'm
in.  The idea of the original text

   You can resize it permanently by using the window sizing commands in
   the frame's other window, when the minibuffer is not active.

was that there is only _one_ other window and in that case shrinking or
enlarging that window via `enlarge-window' indeed resizes the minibuffer
window.  If, however, I'm not in a full-height window, shrinking or
enlarging that window will not resize the minibuffer window.  So the
original text is misleading.  Programmatically, it's obviously more
simple to use

(window-resize (minibuffer-window) 1)

martin




bug marked as fixed in version 24.0.96, send any further explanations to 11276 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 20 Apr 2012 18:31:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11276; Package emacs. (Sat, 21 Apr 2012 01:02:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 11276 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#11276: minibuffers windows can no longer explictly be resized
Date: Fri, 20 Apr 2012 21:01:20 -0400
martin rudalics wrote:

> I checked in a fix similar to the one I posted earlier.  Please test it
> with C-x ^ and modeline dragging.

Works for me; thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 May 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 191 days ago.

Previous Next


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