emacs-devel
[Top][All Lists]
Advanced

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

Re: feature/icomplete-vertical


From: Eli Zaretskii
Subject: Re: feature/icomplete-vertical
Date: Mon, 05 Oct 2020 08:45:55 +0300

> From: João Távora <joaotavora@gmail.com>
> Date: Mon, 5 Oct 2020 00:47:39 +0100
> Cc: Eli Zaretskii <eliz@gnu.org>, Gregory Heytings <ghe@sdf.org>, Yuan Fu 
> <casouri@gmail.com>, 
>       emacs-devel <emacs-devel@gnu.org>, Juri Linkov <juri@linkov.net>
> 
> (defun icomplete-vertical-adjust-minibuffer-height (completions)
>   (let* ((comp completions)
>           (complen (length (split-string comp "\n"))))
>      (if (> complen 1) (enlarge-window (- icomplete-prospects-height (1- 
> (window-height)))))
>      comp))
> (advice-add 'icomplete-completions :filter-return 
> #'icomplete-vertical-adjust-minibuffer-height)

What happens with your solution if you need to enlarge the mini-window
to a height that is greater than the frame's height?



reply via email to

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