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: Gregory Heytings
Subject: Re: [PATCH] Support "\n" in icomplete-separator
Date: Wed, 11 Nov 2020 11:22:32 +0000
User-agent: Alpine 2.22 (NEB 394 2020-01-19)


If an application has a truly expandable minibuffer window or a normal window at its hands, it can try to show completions vertically. With the default minibuffer window, it should always behave as if only one line were available.

Why? The default value for max-mini-window-height is 0.25 (at least since Emacs 21), which means that in a default 80x24 terminal the minibuffer can be 6 lines tall.

I explained earlier why this is not generally true. Have a look at the code of 'window--resize-root-window-vertically'.


Yes of course, you are correct, it is not always true that the minibuffer can be expanded to 0.25 * frame-height. I should have said "which means that in a default 80x24 terminal the minibuffer can _normally_ be 6 lines tall."

The exceptions are however orthogonal to the request to give applications the control on how the contents of the minibuffer should preferably be displayed: should it preferably start at the beginning of buffer (point-min), or should it preferably start at the beginning of the line on which the cursor is? ATM the latter behavior is the only possibility (except with the code I sent to Andrii yesterday).



reply via email to

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