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: martin rudalics
Subject: Re: [PATCH] Support "\n" in icomplete-separator
Date: Wed, 11 Nov 2020 18:06:31 +0100

> Alas, it is practically impossible to create a text that you can be
> sure will fit / be displayed entirely in the minibuffer window.

Yet it has to be done.  For a default-minibuffer-based solution

(1) get the available size via 'max-mini-window-height' and
    'window-sizable' for the root window,

(2) calculate the prompt size (if it does not fit, shorten it),

(3) distribute the remaining height among the most suitable completion
    candidates or whatever else you want to show.

martin



reply via email to

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