emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Support "\n" in icomplete-separator


From: Eli Zaretskii
Subject: Re: [PATCH] Support "\n" in icomplete-separator
Date: Fri, 13 Nov 2020 14:59:15 +0200

> Date: Fri, 13 Nov 2020 12:40:13 +0000
> From: Gregory Heytings <ghe@sdf.org>
> cc: rudalics@gmx.at, spacibba@aol.com, monnier@iro.umontreal.ca,
>         andreyk.mad@gmail.com, emacs-devel@gnu.org
> 
> > The important aspect is that in the browsers the lists are as wide or as 
> > narrow as the fields from which they drop; in Emacs it is always as wide 
> > as the frame, and that is many times way too wide.
> >
> 
> Now I'm not sure anymore what we are talking about.  I was not talking 
> about lists in browsers in general; of course a combo box in a webpage for 
> example is not larger than the field from which it drops.  I was talking 
> about what is, in a browser, the equivalent of the minibuffer in Emacs 
> (because it is there that you enter your "commands") : the address bar. 

The search box is also the equivalent of the minibuffer.  And both
show the same picture: the width of the dropped down list is the same
as the field from which it drops.  It can be wide, if the field is
wide, but if you have enough stuff like tool-bar buttons on the same
screen line, it will be much more narrow.  That it sometimes is almost
as wide as the frame is just a coincidence, and is not relevant to the
issue at hand.  In fact, the entire width issue is not very important:
it is just a sign I used to demonstrate that we have a specialized GUI
widget here, whereas the Emacs features that try to emulate that don't
use any such GUI widgets.  And the looks are accordingly much less
pretty.

> > More importantly, in Emacs the list doesn't drop down, it pushes the 
> > mode line up instead. Which is counter-intuitive for those who expect 
> > the drop-down list or combo-box UI which drops from the field for which 
> > it shows the possible completion candidates.  So our emulation of that 
> > UI is poor and looks unprofessional.
> 
> So it's the fact that the mode line is pushed up to display the completion 
> candidates in a drop-down way that worries you?

No, it's the fact that we use a window that displays a buffer, and not
a vertical list widget.

> > Imagine that we would do something like that when other applications use 
> > menus, for example -- this is very similar.
> 
> What do you mean?  That the eternal nature of menus is to work top-down? 

No, I mean what would happen if we displayed a menu simulation by
showing menu items one below the other in a buffer, instead of using
the toolkit menus, or even instead of the TTY menus we have nowadays.

> > Of course, if some people like this, I don't see why we shouldn't have 
> > it.  It's just a pity that we waste so much energy on these poor-man 
> > emulations instead of providing the "real thing".
> >
> 
> But what is "the real thing"?  What macOS does?  What Windows does?  What 
> Chrome does?  What ... does?

The combo-like vertical list widget, of course.

> > No, it is not redundant: the address bar is for addresses, the search 
> > box is for typing search strings.  The difference becomes apparent when 
> > you look at the completion candidates each one offers.  But that's an 
> > aside.
> >
> 
> That might have been the case some years ago, but browsers are now clever 
> enough to make a distinction between URLs and queries.

Like I said, this is not relevant to the issue at hand.  What's
relevant is that you _can_ arrange for a browser to display that
search box, and then the completion candidates will be much narrower
than the frame.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]