emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] completions-max-height


From: Ergus
Subject: Re: [PATCH] completions-max-height
Date: Tue, 8 Mar 2022 14:29:10 +0100

On Tue, Mar 08, 2022 at 08:47:13AM +0000, Philip Kaludercic wrote:
Ergus <spacibba@aol.com> writes:

I understand your intention, but in practice making this more complex
is useless. The mini buffer is always down and making the completions
to move somewhere else is uncomfortable and may require more
lisp/emacs knowledge to change the default behavior from the
user. Which is completely the opposite to my intention. Actually this
same result may be reached with an advise as I discussed on yesterday
on emacs help. But a simple custom is better.

I am totally fine if you propose something else more general if that don't 
forces the user to write a function to change a simple height.

What I proposed would just require something like

   (setq completion-display-buffer-option '(display-buffer-at-bottom 
(window-height . 10)))


This just works:

(setq display-buffer-alist '(("^\\*Completions\\*$" .
                              (display-buffer-at-bottom
                               (window-height . 10)))))

For the simplest case this works... But there is not a way to handle the
conditionals without affecting some users. For example when using inline
completion or the ones using resize-temp-buffer-window

We can use a function instead, but in that case the user customization
may need a more complex approach instead of just a setq.

Maybe a better lisper could propose something better that allows to set
this without a defun, an advise or defining a tricky alist that may
conflict with something else?



reply via email to

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