muffinmad / emacs-mini-frame

Show minibuffer in child frame on read-from-minibuffer
GNU General Public License v3.0
314 stars 20 forks source link

Display matches on no input for vertico #45

Open BooAA opened 3 years ago

BooAA commented 3 years ago

Below is what I used to reproduce the bug:

  1. (setq mini-frame-standalone t) ;; this is a buggy option and I enable it intentionally
  2. Call something with many candidates, for example: describe-function or describe-variable, then you may see something like this: Screenshot_2021-05-24_22-45-27

This is not 100% reproducible, you might have to try several times.

  1. After 2 is success, now invoke find-file, then you'll get no candidate displayed when no input. Screenshot_2021-05-24_22-48-47

I use edebug to trace mini-frame--display and find problem occurs at this line. Actually, child frame displays normally at first but shrinks to height 1 immediately, so this may be a bug related to mini-frame-resize.

Reference: https://github.com/minad/vertico/issues/34

agenbite commented 2 years ago

This happens too with selectrum. Single line shown with no input, populated as it should upon introducing a character.

aaronjensen commented 2 years ago

This is fixed in Emacs 29. It can be worked around on older Emacsen: https://github.com/minad/vertico/issues/115#issuecomment-973753577