unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1291: 23.0.60; 1) resize-mini-windows: customizable, 2) if grow mini, grow Completions
@ 2008-11-02  0:16 Drew Adams
  2008-11-02 14:12 ` martin rudalics
  2014-12-25 19:29 ` martin rudalics
  0 siblings, 2 replies; 21+ messages in thread
From: Drew Adams @ 2008-11-02  0:16 UTC (permalink / raw)
  To: emacs-pretest-bug

This bug appears also in Emacs 22 - please backport the fix.

1. Variable `resize-mini-windows' should be a customizable option. It
is obviously intended to be modified by users.
 
2. 
emacs -Q
M-x load-library tmm
M-x tmm-menubar
 
You'll see that not all candidates in *Completions* are visible. This
is true in spite of the fact that `tmm-menubar' calls
Electric-pop-up-window' which correctly fits the *Completions* window
to the buffer.
 
The problem is that (assuming `resize-mini-window' is non-nil) when
the minibuffer grows to accommodate the default completion candidate
that is inserted in the minibuffer, it takes vertical space away from
*Completions*.
 
Whenever the minibuffer is grown, so should *Completions* be grown to
the same extent (modulo some maximum setting). Otherwise, fitting the
*Completions* window is defeated by the minibuffer resizing.
 
Please fix this in the Lisp code, not the C code, so other libraries
that manipulate the minibuffer differently from vanilla Emacs can also
benefit.
 
 
 
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-10-09 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
 







^ permalink raw reply	[flat|nested] 21+ messages in thread
* bug#1291: 23.0.60; 1) resize-mini-windows: customizable, 2) if grow mini, grow Completions
@ 2008-11-03 19:34 Chong Yidong
  2008-11-03 20:05 ` Drew Adams
  2008-11-04  7:36 ` martin rudalics
  0 siblings, 2 replies; 21+ messages in thread
From: Chong Yidong @ 2008-11-03 19:34 UTC (permalink / raw)
  To: Drew Adams; +Cc: 1291

> > So the only solution I can think of is to convey some information to
> > shrink_window_lowest_first, with the help of a buffer-local
> > variable, telling that a window showing that buffer should not be
> > resized if it is possible to resize another window instead.
>
> Again, I can't speak much to the implementation - I don't see the big
> picture, no doubt. But my suggestion would be, again, not to try to
> deal with this particular minor bug by changing general things. I
> would think that the code that grows the minbuffer could just check
> whether completion is in progress and *Completions* is displayed, and
> if so grow *Completions* by the same amount (modulo some limits).

We might be able to revisit this after the release.  The current
(tentative) plan is to introduce some kind of "window grouping" feature,
which will be needed for CEDET/ECB.  It's possible that window groups
can also be used to handle situations like this.






^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2014-12-25 19:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-02  0:16 bug#1291: 23.0.60; 1) resize-mini-windows: customizable, 2) if grow mini, grow Completions Drew Adams
2008-11-02 14:12 ` martin rudalics
2008-11-02 14:49   ` Drew Adams
2008-11-02 15:12   ` Drew Adams
2008-11-02 18:14     ` martin rudalics
2008-11-02 19:05       ` Drew Adams
2008-11-02 19:45         ` martin rudalics
2008-11-02 20:27           ` Drew Adams
2008-11-03  7:17             ` martin rudalics
2008-11-03  8:21               ` Drew Adams
2008-11-03  8:58                 ` martin rudalics
2008-11-05 10:37               ` Kevin Rodgers
2008-11-05 12:52                 ` martin rudalics
2014-12-25 19:29 ` martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2008-11-03 19:34 Chong Yidong
2008-11-03 20:05 ` Drew Adams
2008-11-04  7:36 ` martin rudalics
2008-11-04 14:28   ` Drew Adams
2008-11-04 16:48     ` martin rudalics
2008-11-04 17:00       ` Drew Adams
2008-11-04 16:56   ` Chong Yidong

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).